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

regarding DFU

Hi. I'm using nRF52832, SDK13, S132V4.0.2. I'm trying to test DFU. I have 2 questions.

Q1. How can I make image for merged files? I can see it works very well when I make zip files as below.

BOOT : nrfutil pkg generate --hw-version 52 --sd-req 0x98 --bootloader-version 0x11 --bootloader boot.hex --key-file priv_0407.pem boot_dfu_package.zip

APPLICATION : nrfutil pkg generate --hw-version 52 --sd-req 0x98 --application-version 0x11 --application application.hex --key-file priv_0407.pem app_dfu_package.zip

SOFT DEVICE : nrfutil pkg generate --hw-version 52 --sd-req 0x98 --softdevice s132_nrf52_4.0.2_softdevice.hex --key-file priv_0407.pem sd_dfu_package.zip

Each DFU operations are very good.

But how can I make zip files merged. for example, boot+application or application + soft device or boot+soft device or boot+application+soft device?

Q2. What if DFU fails? If communication is disconnected during DFU or Something could be happend. Does DFU program save old program? I want to know how it works. Can you give me an advise for it?

I hope your reply.

Parents
  • Hello,

    For Q1, you can use the mergehex utility that Nordic provides as part of its nRF5 toolset installation.

    For Q2, the answer is a bit more nebulous. If you have the memory, you can use the DFU in its dual bank mode in which case the new application is downloaded before the old application is erased so a failure usually results in the old application remaining available. If you don't have the memory, you have to use single bank mode and the old application is erased before the new application is transferred to your device. Note, soft device DFU erases the application IIRC.

Reply
  • Hello,

    For Q1, you can use the mergehex utility that Nordic provides as part of its nRF5 toolset installation.

    For Q2, the answer is a bit more nebulous. If you have the memory, you can use the DFU in its dual bank mode in which case the new application is downloaded before the old application is erased so a failure usually results in the old application remaining available. If you don't have the memory, you have to use single bank mode and the old application is erased before the new application is transferred to your device. Note, soft device DFU erases the application IIRC.

Children
  • Thank you so much for your help.

    For Q1, How can I make image files(*.zip file)? I want to know about NRFUTIL's Option after [nrfutil pkg generate].

    For Q2, I'm using DFU example code. I think it's supporting dual bank mode. Right? And there should be memory area to save old files. Could you tell me the size and the area of memory for saving old files? I actually want to know how big size files can be downloaded through OTA.

    I need your help.

Related