Closed sandro2pinto closed 5 years ago
I managed to trigger a fault. Here were my steps:
robot 1
in the telnet windowstats
in the UART while the robot is dancingstats
in the telnet while the robot is dancing:
Z1 > robot 1
cycles min/med/max = 120567/584967/1069883 time min/med/max = 1854/8999/16460 us
ctx sw instr min/med/max = 129/137/137 ctx sw cycles min/med/max = 263/451/492 Load access fault : 0x00000005 0x0000000b 0x204141d2 Load access fault : 0x00000005 0x00000007 0x204141d6 Illegal instruction : 0x00000002 0x0000fcf4 0x204141da
Press any key to restart
Seems I can reproduce by just running stats in the telnet window while the robot is dancing.
Seems the issues is fixed in https://github.com/hex-five/multizone-sdk/pull/21/commits/41f9f5589530e71cb04b7e449f893e9bcc2bc446. Good job, guys!
Stabilize FreeRTOS by increasing the stack and heap sizes as needed. Also don't use soft timers and change Semaphores to xTaskNotify, a lightweight mechanism for notifications.