device_reboot failed
Posted: Fri Aug 09, 2019 12:16 pm
I am developing a project now, but I have a very strange problem, about device_reboot.
A brief description is as follows:
In the project, there are two threads. 1. I2S send data part 2. Button detection
When the button detects a certain state, the XMOS device needs to be automatically restarted.In most cases, device_reboot works fine. But in a special case, device_reboot fails.
This special case is: when a certain burst condition, the MCLK clock is disconnected.At this time, the Audio thread is blocked.Then, due to the triggering of the button detection, the device needs to be restarted,restart failed.From the situation of my test, Only the MCLK clock is normal to restart successfully.I understand that device_reboot should be similar to a hardware reset operation, but the actual situation does not seem to be the case.It seems to have a big difference with the hardware reboot.Is there a way to force XMOS to reset, similar to manually pressing the reset button?
A brief description is as follows:
In the project, there are two threads. 1. I2S send data part 2. Button detection
When the button detects a certain state, the XMOS device needs to be automatically restarted.In most cases, device_reboot works fine. But in a special case, device_reboot fails.
This special case is: when a certain burst condition, the MCLK clock is disconnected.At this time, the Audio thread is blocked.Then, due to the triggering of the button detection, the device needs to be restarted,restart failed.From the situation of my test, Only the MCLK clock is normal to restart successfully.I understand that device_reboot should be similar to a hardware reset operation, but the actual situation does not seem to be the case.It seems to have a big difference with the hardware reboot.Is there a way to force XMOS to reset, similar to manually pressing the reset button?