You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the code is compiled with time quantum checking and logging turned on, it causes the AMDC code to error out upon boot up with this message displayed on the UART: ERROR: OVERRUN SCHEDULER TIME QUANTUM! This happens immediately upon completion of the initialization code.
Interestingly, if I run this in a debug environment, where I hit the go button on CPU 0 and then CPU 1, I do not have this issue. So there does seem to be some element of a race condition here.
If you are interested in trying to track this down, this PR (#281 or #106) provides a code profiling timer API which will help figure out what is taking so long. Since the system has only one single interrupt, it should be straight forward to debug and find the slow element.
The VSI task is initialized by
app_blink_init()
(should it be?) in the AMDC v1.0.3 firmware.AMDC-Firmware/sdk/app_cpu1/user/usr/blink/app_blink.c
Lines 8 to 17 in 34e5cc6
When the code is compiled with time quantum checking and logging turned on, it causes the AMDC code to error out upon boot up with this message displayed on the UART:
ERROR: OVERRUN SCHEDULER TIME QUANTUM!
This happens immediately upon completion of the initialization code.Interestingly, if I run this in a debug environment, where I hit the go button on CPU 0 and then CPU 1, I do not have this issue. So there does seem to be some element of a race condition here.
user_config.h
compile options:Printout of UART terminal
The text was updated successfully, but these errors were encountered: