What binary is suitable for debugging #2216
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2017-05-24 by @gfwilliams I use JLinkGDBServer too and my gdbinit is something like this:
If you edit It should work fine - the real gotcha is that the softdevice has a watchdog timer in it, and if you break into something with GDB, the watchdog will fire. The second you then try and continue execution the CPU will restart. As far as I know there's no real way around that - it's just one of the nightmares of trying to develop embedded stuff. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-05-24 by AntiCat
Hi
I'm trying to investigate the NFC issues on my Puck. So I've attached a J-Link using SWD.
The connection is stable and I can flash and debug using JLinkExe.
However I'd prefare a more advanced interface with symbol names and so on ;-).
So I switched to JLinkGDBServer and arm-gdb. I'm using the espruino built by
DFU_UPDATE_BUILD=1 BOARD=PUCKJS RELEASE=1 make
. (I've tried ELFs built byDFU_UPDATE_BUILD=1 BOARD=PUCKJS DEBUG=1 make
, but do not fit into flash.)For some reason gdb always tries to accesses the SoftDevice area and in particular 0x00000000 and fails (read protection?) instead of 0x1f000 and up. I assume I'm missing some magic Switch. Any suggestions or a working gdbinit are welcome.
Beta Was this translation helpful? Give feedback.
All reactions