cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ST67W61 in w61_at_common.c

Shirovaty
Associate

Greetings,

I'm trying to run an application using X-CUBE-ST67W61, but I'm encountering a problem at this line in w61_at_common.c:

int32_t W61_AT_ModemInit(W61_Object_t *Obj)
{
(...)
xReturned = xSemaphoreTake(mdm->sem_if_ready, pdMS_TO_TICKS(4000));
(...)
}

everytime, xReturned equals 0, which means that sem_if_ready is not received.

My setup consists of STM32N6570-DK with X-NUCLEO-67W61M1, and the code I'm trying to run is mostly ble_p2p_server app from X-CUBE-ST67W61.

Some of the SPI communication starts, as seen below:

Shirovaty_0-1765976870783.png

but these are the only signals that are appearing.

1 REPLY 1
EPASZ.1
ST Employee

The fact that sem_if_ready is not received means the first message coming from the NCP is not "\r\nready\r\n" as it should be. Which is also true based on the SPI trace you shared - the first three characters are correct (in the second frame) but the rest seem to be incorrect.

Aside from making sure the HW connection is good, there are a few points to check.

  • Which X-CUBE version are you using (ideally, should be the latest 1.2)?
  • Have you updated the NCP FW binary (using Projects\ST67W6X_Scripts\Binaries\NCP_update_mission_profile_t01.bat)?
  • Are you using an example project (with some modifications) or did you start from scratch? This mainly concerns the GPIO settings, SPI parameters, etc.