This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GDB programming verify error

Hi, I have troubles programming my blinky in a nRF51DK. I have S110 v8 loaded and can flash blinky with nrfStudio. Not with GDB. It seems that the flash is not erased. After programming with studio gdb gdb reports verify ok. Blinky starts at 0x18000. Debugging with gdb also works I tried everything i could, like 4.92 / 4.98 of jlink server , different gdb launchers etc. I use Window 8 Armembedded 4.9 / Eclipse luna ( latest updates ) / keppler. What am i missing? Dig

Parents
  • I tried running JLinkGDBServer with the flags -select USB -device nrf51 -if SWD in linux with the arm-none-eabi-gdb, and it seems to work. My .gdbinit that is loaded with the arm-none-eabi-gdb looks like this:

    target remote localhost:2331
    monitor endian little
    monitor speed 1000
    monitor reset
    monitor sleep 100
    monitor speed 2000
    monitor flash device = nrf51
    load
    break main
    continue
    

    I don't know if this helps.

    I haven't tried this in windows though. Can try to set it up there if you still struggle.

Reply
  • I tried running JLinkGDBServer with the flags -select USB -device nrf51 -if SWD in linux with the arm-none-eabi-gdb, and it seems to work. My .gdbinit that is loaded with the arm-none-eabi-gdb looks like this:

    target remote localhost:2331
    monitor endian little
    monitor speed 1000
    monitor reset
    monitor sleep 100
    monitor speed 2000
    monitor flash device = nrf51
    load
    break main
    continue
    

    I don't know if this helps.

    I haven't tried this in windows though. Can try to set it up there if you still struggle.

Children
Related