<?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>Update to S310 V2.0.1 can&amp;#39;t debugg</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5152/update-to-s310-v2-0-1-can-t-debugg</link><description>Hello, 
 i want to update the softdevice S310 V1.0.0 to version V2.0.1. My applicatio based on SDK 6.1. With S310 V1.0.0 all works fine. But i can&amp;#39;t update to S310 V2.0.1. I use Eclipse with GCC compiler. 
 I have adjusted the Flash size as described</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Jan 2015 14:54:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5152/update-to-s310-v2-0-1-can-t-debugg" /><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18062?ContentTypeID=1</link><pubDate>Fri, 23 Jan 2015 14:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a27ff2-187e-47da-b79a-3e6c110861d1</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;I can debug now after I read the following pages:
&lt;a href="https://devzone.nordicsemi.com/question/1566/uart-application-problem/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/question/2899/eclipse-cdt-gdb-debugging-with-nrf51822-breaks-on-every-line/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/question/825/strange-behaviour-with-nrf51822-and-s110/#reply-931"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With the debugg setting &amp;quot;Set program counter at (hex)&amp;quot; 0x0006D1 for S310 V2.0.1, i can debugg now (description of the first link). Not perfect but works for the moment.&lt;/p&gt;
&lt;p&gt;Thanks to all who have helped me :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18063?ContentTypeID=1</link><pubDate>Fri, 23 Jan 2015 12:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40bf5924-5f3b-4795-906a-b14882aaed60</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;Without -flto -fno-builtin, same behavior as before. If i start a debugg session the main function is never reached. If i suspend the debugg session, the application is in HardFault Handler. After a power on cycle (without debugging) the program starts normal.&lt;/p&gt;
&lt;p&gt;Very strange, perhaps something in Softdevice has changed and i have to adjust my debugging settings but i don&amp;#39;t know which settings I must adjust.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18064?ContentTypeID=1</link><pubDate>Fri, 23 Jan 2015 11:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e234d8-b72c-4206-b795-26495c637936</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Try to comment out the &lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html"&gt;-flto&lt;/a&gt; optimization as well. Otherwise the debug symbols will be removed from the compile: #CFLAGS += -flto -fno-builtin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18067?ContentTypeID=1</link><pubDate>Fri, 23 Jan 2015 11:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c6b234-2268-4417-9ee2-74608d4ee719</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;If i flash the S310 V2.0.1 and my application with nRFgo Studio the application start normal and BLE/ANT advertising normal. But debugging with Eclipse doesn&amp;#39;t work. If i use S310 V1.0.0 with the same debugging settings all works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18066?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2015 13:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:103d9b8a-8d02-4b9d-85bd-24759a1e426b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I suggest you try the ble_ant_app_hrm and see if it works on your end with the same changes in order to narrow down the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18065?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2015 12:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b9ae45-d621-46f6-b7f7-e8a60ae5f04d</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;Hi Vidar, yes i already use compiler option -g3 -O0 to debug my software. If i program the S310 V1.0.0 with the corresponding header files and RAM/ROM areas all works fine. If i program the S310 V2.0.1 with the corresponding header files and RAM/ROM areas the application don&amp;#39;t run at all. I don&amp;#39;t now what i&amp;#39;m doing wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18061?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2015 09:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c15101-6015-4086-91fa-02c750f467dd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The new S310 can be used in SDK 6.1 by following the migration guide you mentioned, and from you description it sounds like you have done all the necessary steps.&lt;/p&gt;
&lt;p&gt;I tried here on my end with the ble_ant_app_hrm from SDK 6.1 compiled with gcc for s310 v.2.0.1. It worked after replacing the API headers, adjusted flash size, and added the sd_ble_enable call().&lt;/p&gt;
&lt;p&gt;For debugging part, did you remember to set compiler option -g3, and also remove -O3? This is something at least I&amp;#39;ve missed before as I&amp;#39;m used to the makefile.common used in most of the SDK 6 examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18060?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 17:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0766f7c-ed9f-4452-961f-68122b30d1ce</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Hi Frederic, I don&amp;#39;t use that tool chain so I can&amp;#39;t help you with the loader output. Your question about the new s310 and 6.1 SDK is a good one. I moved to the v7.0.1 SDK and v2.0.0 s310 at the same time and never attempted to use the new s310 with the old SDK. Perhaps you have a solid reason for sticking with the old SDK, but the v7.1.0 SDK does contain some example s310 projects. It may be time to take the plunge!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18059?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 16:53:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8becda2e-3fc6-4740-937a-995d7d6088c7</guid><dc:creator>Frederic</dc:creator><description>&lt;p&gt;yes, i call sd_ble_enable() after SOFDEVICE_HANDLER_INIT().
The application does not run, i can&amp;#39;t reach my breakpoint at the beginning from the main function.&lt;/p&gt;
&lt;p&gt;GDB Server output:
Resets core &amp;amp; peripherals via SYSRESETREQ &amp;amp; VECTRESET bit.&lt;/p&gt;
&lt;p&gt;Downloading 16080 bytes @ address 0x0001D000&lt;/p&gt;
&lt;p&gt;Downloading 16080 bytes @ address 0x00020ED0&lt;/p&gt;
&lt;p&gt;Downloading 10792 bytes @ address 0x00024DA0&lt;/p&gt;
&lt;p&gt;Downloading 8 bytes @ address 0x000277C8&lt;/p&gt;
&lt;p&gt;Downloading 136 bytes @ address 0x000277D0&lt;/p&gt;
&lt;p&gt;Writing register (PC = 0x00021c05)&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0x00021C04 (Data = 0x480A2103)&lt;/p&gt;
&lt;p&gt;Read 2 bytes @ address 0x0001D460 (Data = 0xF7FF)&lt;/p&gt;
&lt;p&gt;Read 2 bytes @ address 0x0001D460 (Data = 0xF7FF)&lt;/p&gt;
&lt;p&gt;Read 2 bytes @ address 0x0001D460 (Data = 0xF7FF)&lt;/p&gt;
&lt;p&gt;Setting breakpoint @ address 0x0001D460, Size = 2, BPHandle = 0x0001&lt;/p&gt;
&lt;p&gt;Starting target CPU...&lt;/p&gt;
&lt;p&gt;...Target halted (PC = 0xFFFFFFFE)&lt;/p&gt;
&lt;p&gt;Reading all registers&lt;/p&gt;
&lt;p&gt;Removing breakpoint @ address 0x0001D460, Size = 2&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0xFFFFFFFE (Data = 0x5F8ACD5B)&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0x000007BC (Data = 0x00001000)&lt;/p&gt;
&lt;p&gt;Reading 64 bytes @ address 0x00000780&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0x00000C00 (Data = 0xFFFFFFFF)&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0xFFFFFFFF (Data = 0xFFFFFFFF)&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000)&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0xE7F8461C (Data = 0x00000000)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update to S310 V2.0.1 can't debugg</title><link>https://devzone.nordicsemi.com/thread/18058?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 16:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047e121f-26f1-4a0e-878f-dd4cba2d6559</guid><dc:creator>Matt Barr</dc:creator><description>&lt;p&gt;Are you calling sd_ble_enable() after SOFDEVICE_HANDLER_INIT()? As I recall this wasn&amp;#39;t necessary with the v1.x S310, but with v2.x this initialization is the same as the S110. This section of code was typically surrounded by &amp;quot;#ifdef S110 ... #endif&amp;quot; in the v6.1 SDK example S310 projects, e.g. main.c in ble_app_hrs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>