<?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>Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106559/writing-firmware-in-ses-issues</link><description>Dear all, 
 I use Segger embedded studio to upload my firmware to my nRF52840 custom board. When I do it with build and run button everything works as expected but when I do it from Target &amp;gt; Download File &amp;gt; Download .elf file, nothing seems to work. What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Dec 2023 11:26:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106559/writing-firmware-in-ses-issues" /><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460341?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 11:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfbd0d81-1bb9-4d2f-9df7-78799c2900b7</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Yes it worked ! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460336?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 10:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28949646-ae4b-4404-b999-0106789bd97c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, that might work. I haven&amp;#39;t tried it myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460331?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 10:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a58bb7d-099c-4a7e-bbf4-c6c86e3402e7</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;I think I did it with JFlash&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2148.imgimg.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460306?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 09:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793a7f13-0354-4c92-9dfa-758d86468799</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;I am looking for an easy solution that will not take time and objCopy seems that is not easy to handle&lt;/p&gt;
&lt;p&gt;do you know if hex2bin could do the job?&lt;br /&gt;&lt;a href="https://hex2bin.sourceforge.net/"&gt;hex2bin.sourceforge.net/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460305?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 09:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd4dc452-98c7-4390-836a-84f2f0857d60</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can use it to merge bin files that don&amp;#39;t have gaps. objcopy is included with the GCC toolchain which can be downloaded at:&amp;nbsp;&lt;a href="https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain"&gt;https://developer.arm.com/Tools%20and%20Software/GNU%20Toolchain&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460301?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 09:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64cf28eb-7830-4b70-b4e4-04ee48e10ce9</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;ok so what is the purpose of this command?&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/imgimg.PNG" /&gt;&lt;br /&gt;&lt;br /&gt;Could you give me a hint on how to&amp;nbsp; install objCopy so that I can use it? Is there some guide or something?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460299?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 08:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44fac30f-774a-4da9-85d9-1162a2afbb83</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It won&amp;#39;t work with mergehex as it lacks&amp;nbsp;the option to fill empty sections with 0xFFs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460297?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 08:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa18e9e6-deee-4a37-a8b5-f5fa5c335ae6</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Ok I will try that. I also tried the mergehex.exe to convert 2 hex files (app + softdevice) in one .bin file but it seems to work only when you name the output file as a .hex. One of the options though that sets the output file format to BIN|HEX|ELF doesn&amp;#39;t work . Any ideas on how to do that with mergehex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460286?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2023 07:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fed2b1c-5f78-41e4-8302-7755dcc37d35</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You need to link the application to start at address 0x0 if you want it to boot without the Softdevice present, since address 0x0 is the entry point after reset. If you are working only with .bin files, you can convert the Softdevice .hex file into a binary file using &amp;#39;objcopy&amp;#39;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ arm-none-eabi-objcopy --gap-fill 0xff --input-target=ihex --output-target=binary s132_nrf52_x.x.x_softdevice.hex softdevice.bin
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then you can load the application and Softdevice separately. Just remember to use the correct offset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/460125?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2023 11:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7380e82b-e773-4ce3-bad1-53070e40b363</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;UPDATE: I tried the blinky example (blank and MBR). I created the .bin file and after I&amp;nbsp; performed Download File &amp;gt; Download Binary File on the DK and I reset the board , it worked.&lt;/p&gt;
&lt;p&gt;Then I tried to do the same thing with my project firmware but it doesn&amp;#39;t work..&lt;br /&gt;I checked the memory addresses:&lt;br /&gt;&lt;span style="color:black;font-family:Calibri, Arial, Helvetica, sans-serif;font-size:medium;"&gt;&lt;span style="background-color:white;font-size:12pt;" dir="ltr"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;Application FW: 0x00026000 - 0x000413DB&amp;nbsp; , Size: 111580 bytes&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;SoftDevice FW: 0x00001000 - 0x00025FFF, &amp;nbsp; Size: 151016 bytes&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;MasterBootRecord :&amp;nbsp;0x00&amp;nbsp;-&amp;nbsp;0x00000FFF, Size: 4096 bytes&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;Normally, when Segger performs the whole process, I also include the softdevice .hex file in the &amp;quot;Loader&amp;quot; option in project options so that to also write the softdevice in flash along with the app firmware and it works ok as expected.&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;Now that I want to do the same thing manually with Download File &amp;gt; Download Binary File, in order to make it a bit easier, I modified my app firmware by removing BLE initialization functions in main()&amp;nbsp; and then, since only application firmware is needed (without softDevice) I wrote with Download File &amp;gt; Download Binary File, only the .bin file of the app firmware again. So I re-created the .bin file and set the starting address for the .bin to be written in MCU flash at 0x00026000. But the device crashed&amp;nbsp; again.&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;&lt;/div&gt;
&lt;div style="margin-bottom:0;margin-top:0;"&gt;What am I doing wrong here?&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/459959?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 14:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ccf5de-5453-4485-a83b-a16a030c010c</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;&amp;quot; You need to reset the board after programming the *.hex or *.bin file to your board for execution to start.&amp;quot; -&amp;gt; Ok I will try that.&lt;br /&gt;&lt;br /&gt;&amp;quot;For distributing the compiled firmware to others...&amp;quot; Yes I know but the tool he is using accepts only bin files so that is why I need to check that the bin file works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/459937?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 13:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b1648b-3c35-4e48-a207-90efe26c3c09</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You need to reset the board after programming the *.hex or *.bin file to your board for execution to start. For distributing the compiled firmware to others, it is often more convenient to use the generated *.hex file. For bin files, you have to specify the starting address of the application when programming the FW.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/459935?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 13:26:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c99525-252b-4f28-a0a1-38347ea8ba36</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried the blinky example (blank) to make things more simple. Yes the way you mention works&amp;nbsp; but when I try to do it with Download file &amp;gt; ...&amp;nbsp; it doesn&amp;#39;t work... &lt;br /&gt;&lt;br /&gt;My core issue here is the following. &lt;br /&gt;I want to send to a colleague the .bin file of my code so that he can perform some tests he wants and when I place the .bin file with &amp;quot;Download File &amp;gt; Download Binary File&amp;quot; to check that the code is uploaded to the chip without issues it did not work. So I thought to do the same thing with the .elf file and it didn&amp;#39;t work either.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Writing firmware in SES issues</title><link>https://devzone.nordicsemi.com/thread/459930?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2023 13:08:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30802968-ea10-4034-9cbf-3becc3f6d248</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does it work if you click this button instead:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1702386407971v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;? Note that the &amp;quot;Download .elf&amp;quot; button will only program the application FW. It will not include other files such as the Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>