ERROR: The file specified is not a valid hex file, has data outside valid areas

Hello, when i try to flash my card, (nrf52840) in visual studio code i have those errors

ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 52: nrfjprog --program 'c:\Users\l.marcos\Documents\nordictests\peripheral_uart\build_1\zephyr\zephyr.hex' --sectoranduicrerase -f NRF52 --snr 683372301 

Thank you in advance for the help 

best regards

Parents Reply
  • Hi,

    I would suggest you to try using the nrf52dk_nrf52805. It  is a modified version of the nRF52 DK that focuses on the limitations imposed by the nRF52805 IC (the flash size mainly), which is a cost-reduced variant of the original nRF52832. Since Nordic does not offer a development kit for the nRF52805, you can use this board to develop for 52805SoC while using the nRF52 Development Kit (PCA10040).

    But, in order to program the BC805 module, you will need to connect to the 52840DK via Debug Out and build the "perpheral_uart" project. Then go to the build->zephyr->zephyr.hex and flash this hex file onto the DK via the Programmer App in nRF Connect for Desktop. You can find the guide to the Programmer app helpful. This is a guide to program the Dongle, but you can try the same steps for this case.

    But first I would suggest you to familiarize yourself with Nordic Products and ways of programming these. We have various Development Kits and modules which can be programmed using the nrf5 SDK or the nRF Connect SDK.

    Regards,

    Priyanka

Children
Related