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

On NRF SDK11 DFU

Hello

Previous projects used SDK11 protocol stacks with BootLoader and DFU

About the BootLoader of sdk11, DFU is different from sdk15. Please consult me. Thank you.

Sdk11

Softdevice

D: Lianxi sdk11 components software device s132 hex\ s132_nrf52_2.0.0_software device.hex

Bootloader

D: Lianxi sdk11 examples dfu bootloader pca10040 dual_bank_ble_s132 iar DFU ble_dual_bank_s132_pca10040.ewt

App

D: Lianxi sdk11 examples ble_peripheral ble_app_hrs pca10040\ s132_with_dfu iar\ ble_app_hrs_s132_with_dfu_pca10040.ewt

1. BootLoader and app have overlapping ROM addresses. How to merge software device, BootLoader and app? What commands do you use?

After trying the DFU merge mode in sdk15, settings can't pass, and then changing the app address 0x1c000 - 0x7a000, it can be set and merged, but downloaded to the development board, run in BootLoader, and enter app.

Merge hex.exe -- merge dfu_dual_bank_ble_s132_pca10040.hex s132_nrf52_2.0.0_software device.hex -- output production_final 1.hex

Merge hex. exe -- merge production_final1. hex nSmart. hex -- output production_final2. hex

Merge hex.exe -- merge production_final2.hex bootloader_settings.hex -- output production_final.hex

2. When generating OTA packages, the OTA packages generated by commands in sdk15 can not be upgraded.

Nrfutil PKG generate -- Application ble_app_hrs_s132_with_dfu_pca10040.hex -- application-version 3 -- hw-version 52 -- sd-req 0x81 hrss_DFUtest.zip

Use

Nrfutil.exe DFU genpkg hrs_ota_52832.zip--application_app_hrs_s132_with_dfu_pca10040.bin--application-version 0xFFFFFFFFFF--dev-revision 0xffff--dev-type 0xffff--sd-req 0xfffe

Error: No such command "genpkg".

Is there any way to solve it? I look forward to your reply. Thank you very much.

Parents Reply
  • Hello

    On the first point, you gave me a high-level version of SDK15. I have tested the DFU sample program. No problem. But on the above SDK11, if you merge app, BootLoader, Softdevice to app segment address 0x1c000-0x79fff BootLoader segment address is 0x7a000-0x7ffff, it will burn to write. In the development board, the program only runs in BootLoader and can't enter app. Thank you for your reply. Thank you.

Children
No Data
Related