Hello,
Firmware issue:
We have a custom board and sensors connected together, when the sensor is removed the device performs a software reset, after software reset it tries to setup the system from start and it goes into forever idle loop (the firmware stops functioning), and this issue happens ones in 400 - 500 tries to remove the sensor and then plug back in.
We suspect following issues: timing problem of tasks, or semaphore loses argument, semaphores looses counts, semaphore not called anymore, it goes into forever idle loop.
The following shows the firmware timing diagram. after 40 ads packets it sends it to the PC, that is why the time after the second red dashed line is used up.

- Is there a way to debug these errors, because of 1 in 500 occurrence?