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

Bootloader and application both running at the same time?

Hello,

I want to import DFU bootloader to my project. Now i got DFU working with "hrm" example. I can upload .zip file to my nRF and everything works perfect.

When i want to upload with DFU .zip file with my apllication, module (nRF) doesn't advertise or anything. When i tried to debug, i could see that my application started and later bootloader started too ( i presume, since i don't initiate RED LED anywhere in my application). Now my addresses for RAM and ROM are exacly the same as addresses from working example.

Now my question is, is it possible that both applications (my application and bootloader) could be starting? If so how can i make bootloader see there already is an application in memory?

I'm using S130.

Best regards, Nejc

Parents
  • Hello,

    The bootloader will always be executed first on startup (reset behavior), and it will determine whether it should go into DFU mode, or forward execution to the application given that it's valid.

    When doing DFU of application the bootloader will mark the application as valid once finished by setting a flag in bootloader settings, othwerwise the bootlaoder will fall back into DFU mode.

    In your case it sounds like there may be problem with the application itself. Assume it doesn't advertise if your are loading it directly through the SWD interface either? Have you tried to attach a debugger and see if the application is asserting or hanging somewhere in the code?

  • Nevermind, i checked again if there is a problem with my app, and it didn't seem to be working properly. I don't know why is that, since i didn't change anything, but luckily i had backup. Everything works great now.

    Thanks for your help. Best regards, Nejc

Reply Children
No Data
Related