Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

It couldn't startup application after move application from region2 to region1

Hi all,

I try to create a new project to update my firmware using twi(I2C) interface.

In my test case, first i download firmware to region2 via keil, then copy the firmware from region2 to region1, but after erase region2, it couldn't startup.

If i don't erase region2, application could startup success.

Any suggestions or pointers are very much appreciated. Thanks.

Parents
  • Hi Kevin, 

     

    How do you do DFU update ? Do you have a bootloader ? Do you use our bootloader ? 

    How do you start your application at region 2 ? Do you have any kind of vector table forwarding ? Do you use our softdevice ? 

     

     

     

     

     

     

  • Hi Hung Bui,

    I used the SDK12.2(52832), and modify the example Nordic 52832\nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure.

    I remove the ble dfu and firmware check function, only save boot function.

    This is my test step:

    1. Erase region 1
    2. Copy region 2 to region 1
    3. Erase region 2

    In this case, it could not startup success. If do not to do setp 3, it will startup success.

    And I found some difference if changed keil download address and build it, the build hex file will difference.

    So I want to build a firmware that the download address is region 1 but download the firmware to region 2 address.

    Is there another(not keil or nRFgo studio) way can I download the appilcation(build address is region 1) to region 2 address?

    Thanks!!

Reply
  • Hi Hung Bui,

    I used the SDK12.2(52832), and modify the example Nordic 52832\nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure.

    I remove the ble dfu and firmware check function, only save boot function.

    This is my test step:

    1. Erase region 1
    2. Copy region 2 to region 1
    3. Erase region 2

    In this case, it could not startup success. If do not to do setp 3, it will startup success.

    And I found some difference if changed keil download address and build it, the build hex file will difference.

    So I want to build a firmware that the download address is region 1 but download the firmware to region 2 address.

    Is there another(not keil or nRFgo studio) way can I download the appilcation(build address is region 1) to region 2 address?

    Thanks!!

Children
No Data
Related