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

Combining SD, DFU and Application .hex and Programming

Hi guys,

First issue: is that the mergehex.exe fails everytime when trying to Write the merged file. The Error is ERROR: An error occured while writing the file. this has occurred on every attempted combination of SD, DFU and Application.

Second issue: If I try and simply program all three .hex files with nrfjprog.exe I get several warnings. "WARNING: Since the option "--dfu" was not given, the SoftDevice will include UICR settings. Please be aware that Device Firmware Update of the SoftDevice will be possible with these settings." This does not occur if I program the two with nRFgo Studio and I can update the SD just fine.

Third issue: When trying to use nrfjprog.exe the DFU does not detect a valid application. I know this question has been address before, but all references to solutions were based on older code which I don't use. I am using bootloader_util_gcc which is coded differently that bootloader_util_arm. Therefore I don't know how to apply any of the solutions to have the DFU validation the application when programmed.

  • Hello. On the topic of the nRF52832 variation, I am using gcc and DFU keys, and the final part of my merged hex (SD+BL+APP) looks like this:

    :10D6300000300800AD8507000000000085A8070045
    :04D64000E9A707004F
    :10F000000100000000000000FE000000FFFFFFFF05
    :10F010000000000000000000146B01009EE2ED59AA
    :10F0200001000000000000000000000000000000DF
    :10F0300000000000000000000000000000000000D0
    :10F0400000000000000000000000000000000000C0
    :0CF05000000000000000000000000000B4
    :020000041000EA
    :081014000080070000E0070066
    :00000001FF

    I have tried replacing the info on just address F000, as well as replacing in F000 and removing the info in addresses F010-F050.
    None of the options worked.

    Is this due to the use of signing keys?

Related