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,

    From the snippet I can see that you are configuring for a nrf52dk_nrf52805. 

    But you said that you have only a nrf52840DK? (And in the connected devices section it shows that you have connected a nrf52840DK)

    I guess that you are still not familiar with the basics and I would emphasize on building ad running a normal DK first before moving onto the BC805 (I understand that this is a crucial module).

    Every application has a set of DK that it supports. For the peripheral_uart sample, when you begin the VS Code page, and give the build configuration, you cannot select a different board name other than the one you are using, for eg, if you are using an nrf52840DK, then you have to select somewhat like this:

    Only if you have an nrf52dk_nrf52805 (an nrf52dk with a nrf52805 chip on it) can you select the board as nrf52dk_nrf52805. Also, in the peripheral_uart example, this board is not supported, hence I am not sure whether it will work either. 

    You should try using the nrf52840DK and learn how this works and also learn a few basics which can be helpful in future. 

    Regards,

    Priyanka

Children
No Data
Related