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

DFU with secure bootloader for nRF52805

I've developed a custom service and DFU using secure bootloader. I've started developing it for nRF52832 and all was working. I was able to generate .zip file and update the firmware buttonlessly.

I used the following command to generate the zip:  "nrfutil pkg generate --hw-version 52 --application-version 2 --application Tstat_pca10040.hex --sd-req 0x0101 --key-file private.key dfu_package.zip"

using Softdevice 7.2.0 -  S132

I'm trying to convert the firmware to nRF52805. I've changed all the memory locations necessary and the MACROS to fit S112 and nRF52805. It is compiling and loading correctly into DK and the firmware seems to be working fine.

I tried to generate a zip file to test the update system and it initialize the bootloader and starts loading but the an error occur and it does not update the firmware.

it shows Unknown (1030) - I couldn't figure out what is that error.

I've used this commands to attempt:

"nrfutil pkg generate --hw-version 52 --application-version 2 --application Tstat_pca10040.hex --sd-req 0x0103 --key-file private.key dfu_package.zip" - this one not only does not update the firmware, but also crashes the firmware that is loaded in a way that DK does not go back to work when reset button is pressed.

"nrfutil pkg generate --hw-version 52810 --application-version 2 --application Tstat_pca10040.hex --sd-req 0x0103 --key-file private.key dfu_package.zip" - this one does not update the firmware and after ~2min it reboots and restart advertising with old firmware

"nrfutil pkg generate --hw-version 52805 --application-version 2 --application Tstat_pca10040.hex --sd-req 0x0103 --key-file private.key dfu_package.zip" - this one does not update the firmware and after ~2min it reboots and restart advertising with old firmware.

What am I missing?

Thank you

Parents
  • Hi Johann, 

    Could you show the log where you saw the error 1030 ? 

    Do you have any log from the bootloader ? 

    Note that for the hw-version, you just need to match it with the NRF_DFU_HW_VERSION defined in sdk_config.h in the bootloader project. 

    Could you try to do a DFU update of a very simple program on the nRF52805, blinking LED for example ? 

Reply
  • Hi Johann, 

    Could you show the log where you saw the error 1030 ? 

    Do you have any log from the bootloader ? 

    Note that for the hw-version, you just need to match it with the NRF_DFU_HW_VERSION defined in sdk_config.h in the bootloader project. 

    Could you try to do a DFU update of a very simple program on the nRF52805, blinking LED for example ? 

Children
Related