<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83369/how-to-generate-the-hex-file-for-nrf52840</link><description>Hi everyone 
 I&amp;#39;m trying to generate the .hex file for examples like Tx and Rx or for my project but I&amp;#39;m not able to do that, please can anyone suggest me how can i do that 
 Thank you in advance 
 Regards 
 Kalmesh</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jan 2022 12:52:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83369/how-to-generate-the-hex-file-for-nrf52840" /><item><title>RE: How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/thread/346190?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:52:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e059e369-97c8-48cb-9d41-caa71b6db790</guid><dc:creator>Marte Myrvold</dc:creator><description>[quote user="kalmesh"]I tried to run the simple hello_world using nRF connect SDK[/quote]
&lt;p&gt;Were you able to build the sample? If so, the hex file for the project is located in your build directory under &amp;lt;build_dir&amp;gt;/zephyr/. If you have not been able to build the sample yet you can see how to do this in&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/gs_programming.html#building-and-programming-an-application"&gt;Building and programming an application&lt;/a&gt;. If you are new to nRF Connect SDK I also recommend checking out our&amp;nbsp;&lt;a href="https://youtube.com/playlist?list=PLx_tBuQ_KSqEt7NK-H7Lu78lT2OijwIMl"&gt;nRF Connect for VS Code tutorials&lt;/a&gt;&amp;nbsp;videos.&lt;/p&gt;
[quote user="kalmesh"]and by using nRF5 SDK i ran scratch codes( API -&amp;gt; src -&amp;gt; examples) . And tried to generate the .hex file for this scratch codes as i said earlier&amp;nbsp;[/quote]
&lt;p&gt;With nRF5 SDK you can use SES, as I mentioned in my previous reply:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open SEGGER Embedded Studio.&lt;/li&gt;
&lt;li&gt;Select&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;File&lt;/b&gt;-&amp;gt;&lt;b&gt;Open Solution&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and navigate to the selected example directory.&lt;/li&gt;
&lt;li&gt;Open the selected project, for example:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;&amp;lt;\examples&amp;gt;/peripheral/bsp/pca10056/blank/ses&lt;/span&gt;/bsp_pca10056.emProject&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Build the example with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Build&lt;/b&gt;-&amp;gt;&lt;b&gt;Build Solution&lt;/b&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After building, the hex file can be found in the Output folder in ses, so for the example above:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&amp;lt;\examples&amp;gt;/peripheral/bsp/pca10056/blank/ses&lt;/span&gt;/Output/Release/Exe/&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;You can also use GCC to build example instead of SES:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open Windows command line or Linux terminal.&lt;/li&gt;
&lt;li&gt;Navigate to the selected example directory, and then to the armgcc project directory, for example:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;\examples&amp;gt;/&lt;/span&gt;&lt;span&gt;peripheral/bsp/pca10056/blank&lt;/span&gt;/armgcc&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Run the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;make&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;command in this directory. If the environment is set up correctly, the build process starts.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This will produce a hex file inside the _build directory:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;\examples&amp;gt;/&lt;/span&gt;&lt;span&gt;peripheral/bsp/pca10056/blank&lt;/span&gt;&lt;span&gt;/armgcc/_build/&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/thread/346162?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2ec9cfc-f954-4e66-a097-250a8fe2b1f8</guid><dc:creator>kalmesh</dc:creator><description>&lt;p&gt;No no no not at all this are different files&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to run the simple hello_world using nRF connect SDK&lt;/p&gt;
&lt;p&gt;and by using nRF5 SDK i ran scratch codes( API -&amp;gt; src -&amp;gt; examples) . And tried to generate the .hex file for this scratch codes as i said earlier&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/thread/346155?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 12:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c14aecb-aeac-4a9a-be76-fa7ccc6f902e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Kalmesh,&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;If you want to build examples in the nRF5 SDK you can use SES as described in&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/intro.html"&gt;Getting started with nRF5 SDK and SES (nRF51 &amp;amp; nRF52 Series)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/thread/346113?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 10:55:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64261e59-c961-4677-b981-06b891ace502</guid><dc:creator>kalmesh</dc:creator><description>&lt;p&gt;Hi marte myrvold&lt;/p&gt;
&lt;p&gt;Thanks for the reply&lt;/p&gt;
&lt;p&gt;I&amp;#39;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 -&amp;gt;src -&amp;gt; examples)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Kalmesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate the .hex file for nRF52840.??</title><link>https://devzone.nordicsemi.com/thread/346111?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 10:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d2349d-6b95-4ece-800e-c75483c1a574</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Kalmesh,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;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 &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/index.html"&gt;nRF Connect SDK&lt;/a&gt; or &lt;a href="https://infocenter.nordicsemi.com/topic/struct_sdk/struct/sdk_nrf5_latest.html"&gt;nRF5 SDK&lt;/a&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marte&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>