Example doesnt work without debug

Sysprogs forums Forums VisualGDB Example doesnt work without debug

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29628
    Jose Cazarin
    Participant

    Hello!

    Trying to follow this example on a custom board with an NRF52840 device: https://visualgdb.com/tutorials/arm/cmake/

    If I program the board using the “Start Debugging with GDB” I can see the LEDs blinking on the board, everything works fine

    However, if I program the board using the “Program and start without debugging” nothing happens.

    What’s the difference between those two ways of programming the board?

     

    Thanks!

    #29633
    support
    Keymaster

    Hi,

    Normally both options should work the same way. Please try double-checking whether the LEDs start blinking after you power cycle the board after it has been programmed.

    #29644
    Jose Cazarin
    Participant

    It still doesn’t work after power cycling the board

    And if I program the board with the “Program and start without debugging” option and then attach to it using the “Attach to running embedded firmware” (even after a power cycle) I can see in the stack trace that it received some signal handler that sends the board to the hard fault handler, that’s showed in the attached picture

     

    Attachments:
    You must be logged in to view attached files.
    #29646
    support
    Keymaster

    Hi,

    This looks more like a broken board than anything else. You can try erasing the FLASH memory and programming the image using the Nordic JTAG tools to see if there is any difference.

    If it still doesn’t work, please try modifying one of the Nordic samples from their SDK to work with your board, and then build it using the original Make scripts and program it outside VisualGDB. If that works and an equivalent project built with VisualGDB doesn’t, please try comparing their memory layout via Memory Explorer. Most likely, some fine setting, like memory size or some peripheral configuration, is off.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.