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

How to make it run application when there is a bootloader in the nRF52

Hi,

I'm using the bootloader in nRF5_SDK V12.0 with nRF52832. I have some problems want to know:

  1. How to make it run application first after I program softdevice,bootloader and application? I found that it runs the bootloader and broadcast as "DfuTarg". I know it can set m_boot_settings in nRF5_SDK V11.

  2. After I finish the OTA, it can run the application. However, if I just do a little modification in my application and then program it, it would neve run the application,it runs the bootloader. Is it normal?

  3. I want to use AT command received by the UART to make it switch to bootloader instead of using a button. I do that like this: In my application,when received the AT command, I will write a value to the flash(the last page in the flash) using fstorage then do a reset. In the bootloader, I add some code to read the flash to check the value. So my question is I should use the fstorage or do it like flashwrite example in SDK? Which way would you suggest? Thanks.

Parents
  • Hi Alice, as far as I know there are no issues with the compute crc function. I have never seen that the CRC is calculated incorrectly. Would it be possible for you to attach the application hex file you're using to create the setting page and the firmware image to the question so that I can check if I see the same issue?

    You should only use the application.hex and not the merged application+settings page hex to create the firmware image.

Reply
  • Hi Alice, as far as I know there are no issues with the compute crc function. I have never seen that the CRC is calculated incorrectly. Would it be possible for you to attach the application hex file you're using to create the setting page and the firmware image to the question so that I can check if I see the same issue?

    You should only use the application.hex and not the merged application+settings page hex to create the firmware image.

Children
Related