BHI accleration sensor sometimes does not send updates
I've modified menu.py and g-watch/_init.py a bit:
- Reduce timeout in menu.py to 3 seconds
- Exit g-watch once a sample from the accelerometer comes in
This puts the card10 into a loop where it repeatedly starts the g-watch. After a few hours it stops doing so because the g-watch does not receive new sensor data anymore.
(gdb) task_backtrace bhi160_task_id FPU is off #0 0x10023f30 in vPortExitCritical () at ../lib/./FreeRTOS/./Source/portable/GCC/ARM_CM4F/portmacro.h:229 #1 0x100234de in ulTaskNotifyTake (xClearCountOnExit=536920208, xClearCountOnExit@entry=1, xTicksToWait=536920196, xTicksToWait@entry=2000) at ../lib/FreeRTOS/Source/tasks.c:4599 #2 0x100114bc in vBhi160Task (pvParameters=<optimized out>) at ../epicardium/modules/bhi.c:530 #3 0x10023e20 in ?? () at ../lib/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c:703 Backtrace stopped: previous frame identical to this frame (corrupt stack?)