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

Custom uart bootloader doesn't jump to application

Hi!

This is what I'm using:

-SoftDevice S113 v7.0.1

-SDK v17.0.0.0

-SES v4.52c

-nRF52840

I've created a custom buttonless uart bootloader based on the "secure_bootloader_uart" for the nRF52480 without any of the security and encryption functions because I just don't need them for my application.

I've debbuged the bootloader and it seems that is working, but I cannot make it to jump to my application once the application is received and flashed.

The flash mapping is:

MBR --> 0x0000 0000 to 0x0000 1000

SoftDevice  --> 0x0000 1000 to 0x0001 C000

Application --> 0x0001 C000 to 0x0008 9000

Bootloader --> 0x000F 8000 to 0x000F E000

Bootloader settings --> 0x000F F000 to 0x0010 0000   (Custom bootloader info)

When the bootloader checks that all code placed in flash, SoftDevide and Application, are valid, then it calls the function "nrf_bootloader_app_start()"

After calling this function it should jump to SoftDevice and then to my application, but the system reboots and executes again the bootloader and it tries to jump again in an endless loop.

I've tested my application with the orignal "secure_bootloader_uart" and it works, so afaik the application is ok. I've also checked that flash addresses on where the application and SoftDevice are placed are the same that the ones used by my Bootloader.

Is there anyone who can help me? Thank you

 

Regards,

David