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

Problems with HEX and DAT file

I have built a application with IAR, and made a hex file with Intel extended. It’s works fine with nRFgo Studio. But I got problems with dfu updating from my android. I hope the problems are the DAT-file. When I put the app-hexfile trough hex2bin and then crc, I get 0xFD66. So my dat file then looks like this. Is this right?

ffff ffff ffff ffff 0200 4f00 5a00 66df

Parents
  • Changing the dat-file doesn’t help. Thanks Oceanide, this link would make it easier with later releases. The S110 release that I'm using is 7.0.0, and I get IC revision 2 of 51822 The DFU bootloader is built from nRF51_SDK_7.1.0_372d17a with dfu_single_bank I tested the bootloader with the ble_app_hrs_dfu_s110_v7_1_0 who comes default with nRF Master Control Panel, and this is downloaded, and I can inspect it in flash on my unit. But when I try my own built app, the flash is empty. And I get Remote DFU error: REMOTE DFU NOT SUPPORTED. I have added the hex, dat and the Master Control Panel log. The hex file is Intel extended, IAR. I hope this is not an IAR problem. Any suggestion?

    LinkLoad.hex application.dat log.pdf

    Solved this with what I get from colton and Matt Barr,Thanks.

  • I don't know if you're still working on this issue, but in this question I added an answer that contains an IAR port of the dual bank BLE bootloader and an example application with DFU capability. It is based on the 7.2.0 SDK and 7.1.0 softdevice. I have not had any problems running this bootloader and softdevice combination on nrf51422 and nrf51822 rev 2 silicon.

    One other comment, DFU fails using the IAR-built bootloader with optimizations enabled. I've had success building the bootloader at -On and locating it at 0x3A000. This address shows up in the .icf and in dfu_types.h.

Reply
  • I don't know if you're still working on this issue, but in this question I added an answer that contains an IAR port of the dual bank BLE bootloader and an example application with DFU capability. It is based on the 7.2.0 SDK and 7.1.0 softdevice. I have not had any problems running this bootloader and softdevice combination on nrf51422 and nrf51822 rev 2 silicon.

    One other comment, DFU fails using the IAR-built bootloader with optimizations enabled. I've had success building the bootloader at -On and locating it at 0x3A000. This address shows up in the .icf and in dfu_types.h.

Children
No Data
Related