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

Single Binary file containing Application, Softdevice, Bootloader and setting file for production purpose.

Hi,

We are using nRF52833 chip for our development. We need to combine Application, Softdevice, Bootloader and setting file for production purpose. 

In project merging of all above files is done and production hex file created. hex2bin convert the file into production bin file and we were successfully able to run our application. 

J-link  j-Flash Lite application used for production bin file download.

The problem occurs when we trying to do DFU process. It doesn't respond DFU command.

When we used same downloading software with production hex file it works perfectly fine.

Could please you guide us what will be issue?

Thanks,

Swapnil

Parents
  • Writing to UICR is only possible from hex and not from bin file. The bootloader start address has to be put in UICR.

    Reason is very simple, just look at the addresses where flash ends and where UICR starts.

    J-Flash Lite supports hex files directly. Just don't use bin files.

  • Hi,

    Thanks for the response.

    But i didn;t understand why UICR register written only using hex file?

    J-Flash Lite supports both hex and bin file, if it writes UICR using hex then why can't we use bin file?

    what is the diff between hex and bin files wrt UICR?

    Is there any way to get it working using bin file?

  • Hi,

    Swapnil Karkare said:
    Is there any way to get it working using bin file?

    I do not think so. One of the fundamental differences between bin files and hex files is that bin files does not have address information. So that only works if it covers one "region" and you provide the start address. The "normal" flash is consecutive, so you can put everything in a bin file, except UICR, as that is mapped to a different address region.

    As already suggested you can use hex files with your programmer, so that is the most logical solution. Alternatively you could program everything except the UICR from the bin file, and then UICR separately. I do not see any benefits with that, though.

Reply
  • Hi,

    Swapnil Karkare said:
    Is there any way to get it working using bin file?

    I do not think so. One of the fundamental differences between bin files and hex files is that bin files does not have address information. So that only works if it covers one "region" and you provide the start address. The "normal" flash is consecutive, so you can put everything in a bin file, except UICR, as that is mapped to a different address region.

    As already suggested you can use hex files with your programmer, so that is the most logical solution. Alternatively you could program everything except the UICR from the bin file, and then UICR separately. I do not see any benefits with that, though.

Children
Related