<?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>Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8461/not-able-to-download-program-with-gcc-setup</link><description>Hi all,
I have the exact issue mentioned here - github.com/.../9 
I have updated my makefile to generate only one bin file from the Softdevice Hex file, but still I&amp;#39;m getting the &amp;#39; Failed to download RAMCode!&amp;#39; Error.
I&amp;#39;m using S110 v8.1.0 with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 01 Aug 2015 18:01:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8461/not-able-to-download-program-with-gcc-setup" /><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30837?ContentTypeID=1</link><pubDate>Sat, 01 Aug 2015 18:01:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ede9dd1-d403-450f-9819-9d565e70e671</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks Tomchy for the tip and the makefile. Will try it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30838?ContentTypeID=1</link><pubDate>Sat, 01 Aug 2015 17:08:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9feea05-b675-4bcd-b60c-89b91d0b9c3e</guid><dc:creator>tomchy</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure you have to convert anything to *.bin files. JLinkExe (for sure in V4.98c version) has also command called &amp;quot;loadfile&amp;quot; which accepts *.hex files too.
If you want to - you could also adjust makefile, which was created by my team for IoT contest: &lt;a href="http://gity.sznup.se/nordic/project-template/blob/master/makefile"&gt;gity.sznup.se/.../makefile&lt;/a&gt;
It&amp;#39;s based on Nordic&amp;#39;s makefiles and has some extensions like SDK path variable, board settings etc. Currently it works only with nRF51 boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30836?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 21:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67c7358-69c7-45aa-b92b-95387b61e0eb</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;:) Thanks for looking into this Hung. So you say that we should convert the complete Softdevice S110 version greater than v7 hex to bin with arm-non-eabi-objcopy and then program this with &lt;em&gt;loadbin softdevice.bin 0&lt;/em&gt;? This gives me the error mentioned in the question. If it works for you I&amp;#39;ll double check everything. I&amp;#39;m not looking to program a bootloader by the way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30835?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 14:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3782d94-eb85-4c6f-9a8a-15ce23eec0d5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The new Softdevice from v7.x doesn&amp;#39;t need data to be written to UICR. So you don&amp;#39;t have to program UICR binary if you simply want to flash application and softdevice. Just have to loadbin each of them. Mind the start address of the application.&lt;/p&gt;
&lt;p&gt;But if you want to flash bootloader, you would need to write to UICR. What you need to do is to open the bootloader hex file and copy the data at the end of the hex file where we write to address 0x10001014. Something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:020000041000EA
:0410140000C0030015
:040000050003C0C173
:00000001FF
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And create a separate hex file, then you can convert it to bin and flash to UICR using loadbin filename.bin 0x10001014&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30834?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 13:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6bf52cd-29db-4a1f-89b8-29ea1daffc1c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ha ha, didn&amp;#39;t know that the answer in that case was actually from you :)
I guess the issue now is that the UICR.bin is not generated.
Give me few minute to check what could be the solution here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30833?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 13:55:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4136dbbf-2f2d-473e-98d2-6a0406f717ca</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@PrithviRaj: I&amp;#39;m sorry that I&amp;#39;m expert in Linux. But could you try to follow this ? :
&lt;a href="https://devzone.nordicsemi.com/question/44412/firmware-flashing-using-jlinkexe/"&gt;https://devzone.nordicsemi.com/question/44412/firmware-flashing-using-jlinkexe/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We currently don&amp;#39;t have support for gcc on Linux, but I was thinking that it shouldn&amp;#39;t be too tricky to port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30832?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 12:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33110398-0dc6-47b6-a29b-af7ce64e1f31</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;These are the make targets available in the latest  SDK 9.0.0 -&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;## Program device
.PHONY: flash
flash: $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex
	nrfjprog --reset --program $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).hex

.PHONY: reset
reset:
	nrfjprog --reset

.PHONY: erase
erase:
	nrfjprog --erase
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But nrfjprog being a Windows program I can&amp;#39;t use it in Linux. Yes, I was using JLinkExe tool by SEGGER for Linux. Is there GCC support for Linux, not only Windows by NordicSemi?
When I upgraded from 6.0.0 Softdevice S110 to 8.1.0, I am not able to use the same method that I was using earlier, similar to &lt;a href="https://github.com/hlnd/nrf51-pure-gcc-setup"&gt;github.com/.../nrf51-pure-gcc-setup&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30831?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 11:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c62cc8-02d1-42ca-9dfb-7301cf1999dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@PrithviRaj Narendra : Please use the latest SDK which we support GCC out of the box. The github example is very old. You can download the SDK &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v9.x.x/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;How do you flash the hex/bin file ? I assume you have the Jlink tool for Linux ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30830?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 10:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab4505b7-447b-459f-983b-dc4ebd41bee3</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Earlier the softdevice hex file was used to generate two bin files, one for the main part and one for the UICR part using arm-non-eabi-objcopy. Now I think after SoftDevice S110v7 there is no UICR part in Softdevice. I&amp;#39;m using Linux, so I won&amp;#39;t be able to use nrfprog.exe
Could you check if the make targets in this repo works - &lt;a href="https://github.com/hlnd/nrf51-pure-gcc-setup"&gt;github.com/.../nrf51-pure-gcc-setup&lt;/a&gt;
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to download program with GCC setup</title><link>https://devzone.nordicsemi.com/thread/30829?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 10:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add73477-76be-4e30-8ca4-3fe999798899</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@PrithviRaj Narendra: What do you mean by &amp;quot;generate only one bin file from the softdevice hex file&amp;quot; ?
Do you have trouble when flashing our example&amp;#39;s compiled hex file ?
Could you try using nrfjprog.exe to flash the hex/bin file ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>