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

secure bootloader switch to application

Hi,

I'm trying to program the bootloader together with an application+SD132 3.0 on the nrf52, but my device gets stuck with the bootloader when I finish programming it.

The steps I've done are those:

1-Program the SD132 3.0. 2-Prepare the settings file for the bootloader with my app.hex and merge it (app+settings+bootloader). 3-Program the secure_bootloader_debug: it starts correctly and I can connect to it without problems. 4- Program the app+settings+bootloader file. 5- The DFU advertising is working, but when timeout is reached it stops emitting...

I checked the 0x7f020 flag and is set to '1'... I don't know if the bootloader size is wrong (starts 0x78000, size: 0x6000), the timeout doesn't work properly or maybe I'm doing anything else wrong. If I understand correctly the bootloader_debug accepts the "debug" firmware packages bypassing the key checking, no?

Thank you!

Parents
  • Well It was a problem with the size... I played with the test package dfu_hrm application and the .hex bootloader that is provided with the examples and both work perfectly. My bootloader was set to start at 0x78000, but the size and start position of the bootloader_debug are different from the non debug version, now this is fixed (bootloader start: 0x73000, size: 0x0B000, app start: 0x1F000, size: 0x54000). Now the error that shows the app from the iphone is "Operation not permitted"...

Reply
  • Well It was a problem with the size... I played with the test package dfu_hrm application and the .hex bootloader that is provided with the examples and both work perfectly. My bootloader was set to start at 0x78000, but the size and start position of the bootloader_debug are different from the non debug version, now this is fixed (bootloader start: 0x73000, size: 0x0B000, app start: 0x1F000, size: 0x54000). Now the error that shows the app from the iphone is "Operation not permitted"...

Children
No Data
Related