<?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>Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20095/flash-and-debug-using-eclipse-and-gnu</link><description>Hi, 
 I used the code ble_app_uart_c on board 10028 as a base for my custom board. 
 My board is nrf51822 QFAA based so I changed all occurances of nrf51422 to nrf51822 and xxac to xxaa on the makefile. I also changed the linker file to the toolchain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Mar 2017 10:27:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20095/flash-and-debug-using-eclipse-and-gnu" /><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78247?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 10:27:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49269f59-f933-40fe-bd80-f5a34178e7bb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It does not look like the files in your second case differs from the files you posted in this case. Did you mean to upload the same files? Could you explain in writing what your problem is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78249?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 11:58:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383d6ba5-dc2e-40bf-bacd-39fb29864ec9</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;I just opened another thread about the debuging issue: &lt;a href="https://devzone.nordicsemi.com/question/119037/how-to-solve-eclipse-debug-issue/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
Please check the joined files for details about the issue.
Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78248?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 11:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:934c06e0-504e-4222-9585-3d3de4087ccf</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Unfortunately, this is the only tutorial we have on Eclipse and GCC. You might find some other tutorials by searhing the web. What exactly is the problem when you try to debug?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78245?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 16:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63e03618-daaa-400e-bd44-aeb638ddf184</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;The problem stills there, if you have any links to a good tutorial on how to setup the debgging on eclipse it would be great (I already followed this one: &lt;a href="https://devzone.nordicsemi.com/tutorials/7/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; without any result)
thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78246?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 14:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1dfc7cd-35ac-46c1-a384-d7c796f8d914</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Could you try adding the debug flag to assembler flags in your Makefile? &lt;code&gt;ASMFLAGS += -g3&lt;/code&gt;. It can look like you are facing a hardfault from one of your images (() at 0xfffffff9). I guess this might have been solved now, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78244?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 13:41:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e76c559-8558-425c-9695-cd2edb43b6a2</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;Thanks, that solved the problem, but eclipse debuging still does not work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78243?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 13:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31034c94-b4a8-41a9-b6a4-886b3bddb6ff</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you not able to flash the softdevice? It sounds like your application is placed in the softdevice region. From your original question you wrote &lt;em&gt;&amp;quot;I also changed the linker file to the toolchain default &amp;quot;nrf51_xxaa.ld&amp;quot; file.&amp;quot;&lt;/em&gt; Did you change the linker file RAM and FLASH settings to make room for the softdevice? You should rather use the linker file in the project directory, and adjust the size depending on your chip. AA chip have 16kB RAM and 256kB FLASH. Your settings should then be (ble_app_uart_c example in SDK 12.2 for S130 v2.0.1):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000
RAM (rwx) :  ORIGIN = 0x20001eb0, LENGTH = 0x2150
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/tutorials/26/"&gt;this tutorial&lt;/a&gt; about RAM and ROM management (it&amp;#39;s a bit outdated, but the basics still apply).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78241?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 13:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d0a97d-a284-459d-86cb-f079a85cd948</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;I just tried that, but the breakpoints could not be set on &amp;quot;NVIC_SystemReset&amp;quot; it seems unresolved or the debugger can&amp;#39;t find it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78238?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 12:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f48e642-90d1-4e56-b0a0-fa16ac69bb62</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;Ok I am doing this. Please note that loading the softdevice before the application always returns errors while loading the application (&amp;quot;you are trying to flash a softdevice region&amp;quot;), I tried with both S130 V 1.0.0 and V 2.0.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78237?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 12:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:518339f1-77a5-481b-a99a-9ea3cb5e20f1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Could you check the return code from the failing softdevice call, by debugging as described in &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;this answer&lt;/a&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78239?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 12:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63fd444-cd9f-4f9e-a3b9-bb01924e08ae</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;Debuging with Keil gave me this, once the code reaches:&lt;/p&gt;
&lt;p&gt;err_code = sd_softdevice_enable(p_clock_lf_cfg, softdevice_fault_handler);&lt;/p&gt;
&lt;p&gt;The Dummy Exception Handler is launched:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;            SVC_Handler     PROC

                                    EXPORT  SVC_Handler               [WEAK]

                                    B       .

                                    ENDP
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I guess this means a problem with the softdevice, any ideas ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78242?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 11:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4216a3-2cbc-4491-9298-5ace9d3b2278</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;I just changed the softdevice clock to NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, but still have the same issues&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78240?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 09:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97cc605a-505e-4953-92e2-6c6dd5e26bca</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;No my  board does not have that crystal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78236?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 22:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c164f501-f490-47b8-9c0e-42082168a14f</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Does you custom board have the 32khz RTC crystal ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78235?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 18:19:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dcea48c-7e03-43ec-8e9e-ee78839697e8</guid><dc:creator>Tarik</dc:creator><description>&lt;p&gt;I am using the latest gcc (6.2.1), I didn&amp;#39;t set any option since I kept everything as it was from SDK 12.2.0 examples. Anyway I tried what you said and it still not working.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug using eclipse and GNU</title><link>https://devzone.nordicsemi.com/thread/78234?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2017 17:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f3cc519-02c5-467e-9bbd-b38c28bc00c1</guid><dc:creator>Johannes Lorenz</dc:creator><description>&lt;p&gt;Have you tried to compile without &lt;em&gt;-fno-builtin&lt;/em&gt; in your makefile? Don&amp;#39;t know which version of armgcc you are using (gcc 4.8.x  had a bug), thus I had some issues where I could not use the debugger while this option was enabled. Maybe you give it a try. And I saw that you set &lt;em&gt;D__HEAP_SIZE=0&lt;/em&gt; to 0. Are you sure your program is not using any heap space at all?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>