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
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 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:
<\examples>/peripheral/bsp/pca10056/blank/ses/bsp_pca10056.emProject
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:
<\examples>/peripheral/bsp/pca10056/blank/armgcc
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/