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
  • Hi Markus,

    I compared and debugged the same code on NCS1.5.0 and NCS1.8.0, and found some differences in workqueue. As shown in the following two screenshots:

    On NCS 1.8.0 there was a workqueue that was not executed (name not shown) due to -35 error and the priority of ipm_work_q is also different.

    I'm not sure if the code is not working properly because of workqueue differences, I'm not very familiar with zephyr, and I'm still checking the documentation. 

    Do you have some comments on the workqueue difference between different NCS versions?

    Best regards,
    Devin

Reply
  • Hi Markus,

    I compared and debugged the same code on NCS1.5.0 and NCS1.8.0, and found some differences in workqueue. As shown in the following two screenshots:

    On NCS 1.8.0 there was a workqueue that was not executed (name not shown) due to -35 error and the priority of ipm_work_q is also different.

    I'm not sure if the code is not working properly because of workqueue differences, I'm not very familiar with zephyr, and I'm still checking the documentation. 

    Do you have some comments on the workqueue difference between different NCS versions?

    Best regards,
    Devin

Children
No Data
Related