I have a question about debugging with cc2538 on Contiki-NG.
I’m testing the 6LoWPAN function on both RIOT and Contiki-NG. While stepping through the code during debugging, RIOT works fine, but Contiki-NG fails – the application is just hello-world example.
I’m using the same debugging method for both:
- First, I connect JLink to the SmartRF06+cc2538EM.
- Then, I open JLinkDebugServer in one session and gdb in another.
When the gdb connection is established for Contiki-NG, it shows that the code steps into 0xdeadbeef. The JLinkDebugExe outputs:
Reading common registers: ERROR: Cannot read register 0 (R0) while CPU is running
Read register 'r0' (4 bytes) from hardware: 0xEFBEADDE
ERROR: Cannot read register 1 (R1) while CPU is running
Has anyone encountered this problem?
Any insights related to this problem or helpful information would be greatly appreciated.
Thanks,
Dingisoul
how to fix contiki-ng to support stepping debugging? Are there any other debugging method? what part of configuration influence this problem? Why RIOT can success but Contiki-NG not?