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

How to add bootloader in my custom project

Hi,

so far I have been programming my custom nrf52840 device through the debug out connector of the nRF52840 DK and a custom programming connector.

Now I would like to add bootloader functionality so I can use only the usb cable for programming, I checked the open bootloader example in the dfu folder of the sdk

and re-programmed the hex file to a spare nrf52 dongle I have for testing. 

Then I  programmed my custom board with the open_bootloader .hex  file so that I can modify its memory with nRF Connect  by adding my custom code, the softdevice and the bootloader again.

But it seems that the blocks of memory of the softdevice and my custom code , overlap at some point. How can I move the custom code memory block to another location in flash?

Thank you

Parents
  • It sounds like you need to adjust the application's linker script to place things in the right location. Look through the example projects for one that uses DFU and take a look at the linker script and adjust yours accordingly. Also, check out the bootloader documentation on infocenter as it explains the memory layout for applications with a bootloader, application, and softdevice.

Reply
  • It sounds like you need to adjust the application's linker script to place things in the right location. Look through the example projects for one that uses DFU and take a look at the linker script and adjust yours accordingly. Also, check out the bootloader documentation on infocenter as it explains the memory layout for applications with a bootloader, application, and softdevice.

Children
Related