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

Segmentation fault SIGSEGV occurs when running Openbootloader DFU USB

Hi guys,

I compiled the openbootloader example and when I try to run it on NRF52840, It gives segmentation fault:

(gdb) load nrf52840_xxaa_debug.hex
Loading section .sec1, size 0xe1f0 lma 0xe0000
Loading section .sec2, size 0x8 lma 0x10001014
Start address 0xe02b4, load size 57848
Transfer rate: 19 KB/sec, 948 bytes/write.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program:
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()

but If i use the existing provided hex file it works fine

(gdb) load open_bootloader_usb_mbr_pca10059_debug.hex
Loading section .sec1, size 0xa18 lma 0x0
Loading section .sec2, size 0x10000 lma 0xe0000
Loading section .sec3, size 0x10c lma 0xf0000
Loading section .sec4, size 0x8 lma 0x10001014
Start address 0x0, load size 68396
Transfer rate: 19 KB/sec, 949 bytes/write.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program:
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
^C
Program received signal SIGINT, Interrupt.
0x000e6daa in ?? ()

why is the one that i compiled failing? I havent made any changes to the files.

your help would be appreciated

Update 1: I checked with secure USB bootloader, secure BLE bootloader, the production version of these as well and same thing happens.

Parents Reply Children
Related