UART interrupt call k_fifo_put does not take effect

cpu info:nrf5340

software:nrf connect sdk 1.6.1

hi professor,

In the uart interrupt I call k_fifo_put to trigger rx process thread but it is not take effect.What person cause this question?

Parents Reply
  • I added a global variable to record the code execution process.Now I show u.

    In uart irq I set the global variable 9.

    In gpio irq I set the global variable 10.

    In rx process thread I set SENSOR_GPS_TS_TOGGLE 1 and SENSOR_GPS_REV_DONE value 12.

    The SENSOR_GPS_TS_TOGGLE is triggered by gpio irq and the SENSOR_GPS_REV_DONE is triggered by uart irq.

    The code execution sequence is 9->12->10->1.But actually the code execution sequence is 9->10->12->1.

Children
Related