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

Please check DFU.

Hi. i'm using nRF51822AC, SDK12.2.0, S130 v2.0.1 as central.

I want to make sure that how to operate DFU. Please check there is missing point or wrong point.

Step 1. Make PK as below.

nrfutil keys generate priv.pem nrfutil keys display --key pk --format code priv.pem --out_file public_key.c

then I copy pk[] in public_key.c to dfu_public_key.c

Setp 2. make micro_ecc_lib_nrf51.lib. I got ARM's Launchpad and copied as below.

infocenter.nordicsemi.com/index.jsp

then I do "make" as below.

F:\BLE-N\nRF5_SDK_12.2.0_f012efa-boot\external\micro-ecc\nrf51_keil\armgcc>make F:\BLE-N\nRF5_SDK_12.2.0_f012efa-boot\external\micro-ecc\nrf51_keil\armgcc>make Compiling file: uECC.c Creating library: ../../nrf51_keil/armgcc/micro_ecc_lib_nrf51.lib C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q3\bin\arm-none-eabi-ar.ex e: creating ../../nrf51_keil/armgcc/micro_ecc_lib_nrf51.lib Done

Now I can see lib file.

Step 3. compile bootloader_secure

Step 4. download (SD,App,boot)

Step 5. Make image file as below. nrfutil pkg generate --hw-version 51 --sd-req 0x87 --application-version 5 --application nrf51422_xxac.hex --key-file priv.pem app_dfu_package.zip Now I get image file(app_dfu_package.zip)

Step 6. Download image file to smartphone

Step 7. Start DFU using Smartphone. nRF51822 started booting for DFU(I can see the board is advertising). Start nRF Toolbox on Smartphone. Choose DFU. Select file(app_dfu_package.zip). Select Device(DfuTarg) Press Upload button.

But it doesn't work. Is there any wrong?

And 1 more question. DFU may have data for communication. As I checked, it makes connction. After conection I don't know what they communicate. I want to debug communication. If it reveives well, soft device will return something event I think. If not, soft device will return some error message I think. Which function can I debug?

I need your help. It's very urgent!!!

Related