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
  • Hi Kalmesh,

    Have you already made a project that you want to build and program on your device, or are you starting from scratch? Are you using nRF Connect SDK or nRF5 SDK?

    Best regards,

    Marte

  • Hi marte myrvold

    Thanks for the reply

    I'm using both nRF connect SDK for my own project and nRF5 SDK for the basic examples(Tx and Rx) which are in src file(API ->src -> examples)

    Regards

    Kalmesh

  • Hi Kalmesh,

    I am not sure if I understand. Are you using files from nRF5 SDK for your nRF Connect SDK project, or are these different projects?

    If you want to build examples in the nRF5 SDK you can use SES as described in Getting started with nRF5 SDK and SES (nRF51 & nRF52 Series).

    Best regards,

    Marte

  • 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/

Reply
  • 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/

Children
No Data
Related