You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I use JLinkGDBServer too and my gdbinit is something like this:

    target extended-remote :4242
    file espruino_1v92.12_nrf52832.elf
    break Reset_Handler
    break HardFault_Handler
    

    If you edit boards/PUCKJS.py and rip out some of the libraries you don't want like NET and GRAPHICS, you can then build with DEBUG=1 which will help you loads :)

    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.

About

Avatar for Gordon @Gordon started