Open elsevers opened 2 years ago
Supposedly solved in #278, but according to @GnomeTek there are still issues.
See upcoming new ticket from @GnomeTek for more details.
I ran into the same issue that was reported here. Does anyone know where the reference from @GnomeTek is indicated to provide more details?
@mslaffin thanks for reporting this.
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. https://github.com/Severson-Group/AMDC-Firmware/blob/34e5cc6114574cdc6aae188c72c4cf4c26112a56/sdk/app_cpu1/user/usr/blink/app_blink.c#L8-L17When 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