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

How to generate Hex files for nRF 5340?

Hello,

In nRF52832, we use nRF Connect to read the board, save the program data into a hex file, and send the file to other developers. They can use nRF Connect to write the hex file into new board and run it.

My question is: how can I generate the hex file in nRF5340? It seems the board is protected and we can not read the program data from the board using nRF connect.

Do I have to use command line tools? If yes, what is the command line tools?

Thanks.

Carl

Parents
  • Hello Carl, 

    I'm not sure I understand. The hex file is generated by building a project. Why do you need to read the nRF5340 to generate a file?

    Kind regards,
    Øyvind

  • Hello, thanks,

    Can we reopen this case?

    In nRF5340 project, I have two projects, one is Net core, the other is app core. I use SEGGER to build these two projects, flash the images into the development board. Net core is a elf file and app core is a hex file. There is no problem.

    Now I want to send the files to my friends and ask them to flash it in to their dev board. They can use nRF connect Programmer to load the hex file and write it into the board, but the programmer does not support to write elf file. What should I do ?

    It seems that I have to use some tools to build the elf file and hex file into one big hex file?

    Thanks,

    Carl.

Reply
  • Hello, thanks,

    Can we reopen this case?

    In nRF5340 project, I have two projects, one is Net core, the other is app core. I use SEGGER to build these two projects, flash the images into the development board. Net core is a elf file and app core is a hex file. There is no problem.

    Now I want to send the files to my friends and ask them to flash it in to their dev board. They can use nRF connect Programmer to load the hex file and write it into the board, but the programmer does not support to write elf file. What should I do ?

    It seems that I have to use some tools to build the elf file and hex file into one big hex file?

    Thanks,

    Carl.

Children
Related