This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to generate the .hex file for nRF52840.??

Hi everyone

I'm trying to generate the .hex file for examples like Tx and Rx or for my project but I'm not able to do that, please can anyone suggest me how can i do that

Thank you in advance

Regards

Kalmesh

Parents Reply Children
  • No no no not at all this are different files 

    I tried to run the simple hello_world using nRF connect SDK

    and by using nRF5 SDK i ran scratch codes( API -> src -> examples) . And tried to generate the .hex file for this scratch codes as i said earlier 

  • kalmesh said:
    I tried to run the simple hello_world using nRF connect SDK

    Were you able to build the sample? If so, the hex file for the project is located in your build directory under <build_dir>/zephyr/. If you have not been able to build the sample yet you can see how to do this in Building and programming an application. If you are new to nRF Connect SDK I also recommend checking out our nRF Connect for VS Code tutorials videos.

    kalmesh said:
    and by using nRF5 SDK i ran scratch codes( API -> src -> examples) . And tried to generate the .hex file for this scratch codes as i said earlier 

    With nRF5 SDK you can use SES, as I mentioned in my previous reply:

    1. Open SEGGER Embedded Studio.
    2. Select File->Open Solution and navigate to the selected example directory.
    3. Open the selected project, for example:
      • <\examples>/peripheral/bsp/pca10056/blank/ses/bsp_pca10056.emProject
    4. Build the example with Build->Build Solution.

    After building, the hex file can be found in the Output folder in ses, so for the example above:

    <\examples>/peripheral/bsp/pca10056/blank/ses/Output/Release/Exe/

    You can also use GCC to build example instead of SES:

    1. Open Windows command line or Linux terminal.
    2. Navigate to the selected example directory, and then to the armgcc project directory, for example:
      • <\examples>/peripheral/bsp/pca10056/blank/armgcc
    3. Run the make command in this directory. If the environment is set up correctly, the build process starts.

    This will produce a hex file inside the _build directory:

    <\examples>/peripheral/bsp/pca10056/blank/armgcc/_build/

Related