This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sdk 13.1 DFU (bootloader_secure_ble)

Dear Nordic: I have transplanted my code from sdk 10.0(nrf51422+S310) to sdk 13.1(nrf52832 + s332(v4.0.2)). I program softdevice and application to my board by nRFgo_Studio , it runs ok. I use example :sdk13.1\examples\dfu\bootloader_secure_ble\pca10040_debug to build my bootloader .I have changed s132 related to s332 related in makefile. It successed and i get a hex file. I program S332 hex file,then bootloader hex file,then application to my board .It can not run.

1.what's the right IROM and RAM configration for( 52832 and S332 (v4.0.2)) bootloader?

2.Is this right to build my bootloader hex file use example :sdk13.1\examples\dfu\bootloader_secure_ble\pca10040_debug .Or can you guide me to build the right bootloader for S332 in sdk 13.1.

Thanks . image description

  • Q1: The correct Keil memory settings for the Secure Bootloader project are

    IROM1 Start: 0x78000     Size: 0x6000
    IRAM1 Start: 0x20002060  Size: 0xDA70
    

    The correct memory settings for the ble_ant_app_hrm example are

      IROM1 Start: 0x29000    Size: 0x57000
      IRAM1 Start: 0x20002560 Size: 0xDAA0
    

    Q2: Yes, you only need to compile the bootloader against the headers of the S332 and add S332 to the compiler flags.

    The reason to why the bootloader does not jump to the application is because it calculates the CRC of the application and compares it to the CRC stored on the bootloader settings flash page, if they match, then the bootloader jumps to the application. The bootloader settings page is default set to 0s unless a bootloader settings page is flashed to the device. You can create a bootloader settings page

    nrfutil.exe settings generate --family NRF52 --application <name of application hex> --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloader_settings.hex
    

    The resulting bootloader_settings.hex file should be merged with the bootloader hex file using mergehex and then flashed to the nRF52 together with the S332 SoftDevice and the application.

  • Thanks for your support . Q1: What are the correct IROM and RAM settings for bootloader and applicationn project respectively, in Keil Target setting.

Related