2025-01-04 09:38 AM
Hello,
can anyone tell me what I am doing wrong?
For example, I can't get app_mems.c (eCompass) to debug.
The debugger does not stop when I set a breakpoint on subsequent function calls because, for whatever reason, the “SensorReadRequest” always has the value 0.:
RTC_Handler(&msg_dat);
Accelero_Sensor_Handler(&msg_dat);
Gyro_Sensor_Handler(&msg_dat);
Magneto_Sensor_Handler(&msg_dat);
Humidity_Sensor_Handler(&msg_dat);
Temperature_Sensor_Handler(&msg_dat);
Pressure_Sensor_Handler(&msg_dat);
I also need direct access to the variable “heading”.
2025-01-05 11:24 AM
Perhaps instrument your code so you understand what's happening, and the internal dynamics.
Instrument Error_Handler() and HardFault_Handler() or anywhere it could get stuck or hung-up.
Disassemble what was built, make sure you understand what's in the image that's on the part and why it might not be getting to your break point.
Add more break points and instrumentation to understand where it does go, and how far it gets.