This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3135MOD: Code stuck in simplelink driver _SlDrvRxHdrRead()

Part Number: CC3135MOD
Other Parts Discussed in Thread: CC3135

My hardware has STM32L496 and TI CC3135 wifi module, i have ported simplelink driver to the mcu,

At some point _SlDrvRxHdrRead() is not returning, i stepped through the code and found code is not coming out of the while loop refer below,

_SlDrvIsTimeoutExpired() always returns false

  • Hi,

    This indicates a problem on the SPI interface.

    The data read from the SPI is not as expected.

    Reading the code, you can see what is the expected pattern.

    This function is triggered in 2 cases:

    1. in response to the NWP interrupt (i.e. within the sl_Task thread that should have been created by you before accessing the driver)

    2. whenever you call an sl command, after sending the command over the SPI, this function is called to parse (the header of) the NWP response.

    Br,

    Kobi