k_msgq_get() function return -35

Hello,

I run a piece of code on NCS1.8.0 on nRF5340-DK, and it returns -35 when executing k_msgq_get(),but the same code runs on NCS1.5.0 and the k_msgq_get() function works normally.

I checked -35 error code should be " No message of the desired type".

Are there any aspects that need special attention when porting the code of NCS1.5.0 to NCS1.8.0?

From debugging, I know that this function returns an error, but I can't find out why this error occurs. 

Parents Reply Children
  • Update:

    After careful inspection, it was found that the k_msgq_get() function was called in the interrupt handling function of i2s (using nrfx_i2s), and the timeout parameter was set to K_NO_WAIT, which should finally be the error reported at this location -35.

    The previous information is wrong, in the actual thread The k_msgq_get() function called is normal. Sorry for misleading you.

    BR,
    Devin

Related