nrfjprog.exe with bin files

Hi, I'm trying to program my nrf52811 by using nrfjprog.exe with a bin file. It seems to work with a .hex but when I run the .hex through srecord to create a .bin and using nrfjprog.exe with .bin file, the device gets flashed but doesn't actually function as it does with .hex. What could be the issue?

NRF5 SDK

Parents Reply
  • Bin files don't contain any addresses like hex files do. So your SoftDevice and application start from 0x00 and contain data up to somewhere like 0x2d000. But the UICR starts at 0x10001000. So if you have UICR settings then now you get a bunch of padding between the end of your real data and the UICR. A quick test here spits out a 256MB bin file when I take one of your UICR dumps and add data at address 0x00. If you want to use bins though you could have two files: one for the SD + app and another for the UICR.

Children
Related