<?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>What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21069/what-does-it-mean-when-debugger-head-lands-on-0x00000000</link><description>I&amp;#39;m running on a nrf51822 chip, using Keil and a JLink Segger programmer. I&amp;#39;m running on SDK 12.2.0 and I believe I was correct in choosing pca 10028 s130 but I&amp;#39;m not 100% sure. I had to modify the target device when I started with the ble_app_template</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Apr 2017 00:31:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21069/what-does-it-mean-when-debugger-head-lands-on-0x00000000" /><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82328?ContentTypeID=1</link><pubDate>Tue, 04 Apr 2017 00:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c7427b4-8852-4974-8651-a8f700da8eb5</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;Ok, I have been going through some more research on the settings that this chip requires and what the soft device requires. Since it is the s130, I looked at the infocenter pdf for the softdevice specification, made sure that the ram and rom memory locations in the project options matched correctly on the starting locations, then I made sure that the ram didn&amp;#39;t exceed what the nrf51822qfaa indicated it had which was 16kB of ram. Since the softdevice was using 5kb of ram, I set the application to use 10 kb of ram so the size is at 0x2800 and then I set the crystal to 16MHz according to the spec sheet from the company in china, and now when I run it, it actually landed on the app_error_handler function with the line number error code and file name information. Yay!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82327?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 23:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b115551b-b051-40b7-8754-0eed0f7da520</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;I think part of it might be because the oscillator wasn&amp;#39;t correct in the project options, however I tried it on 16MHz and 32MHz and it still doesn&amp;#39;t work for this board (which I think is just using the internal oscillator, but I am going to double check). When I changed the oscillator value for the devkit, everything worked fine, but before hand the example projects had the wrong oscillator values and they were not working properly on the nrf51 devkit board (weird considering that the example projects are built for the devkits).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82326?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 22:11:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb16c16f-c906-453c-beea-93aa52e97880</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;Yeah, I am flashing it with s130_nrf51_2.0.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82325?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 22:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ac0242-36cd-4228-8135-bf6c7889fa96</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;Have you flashed the soft-device? You should flash soft-device S130 v.2 if you use sdk 12.2.
You can flash the softdevice using nrfjprog command-line&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82324?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 18:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942617ed-ee8a-48bb-a848-3743d6f7afff</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;Well, I just answered that question. I put in &amp;#39;DEBUG&amp;#39; in the pre-processor symbols and it calls the app_error_handler function instead now and still doesn&amp;#39;t call it before hitting 0x00000000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82323?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 18:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd36bc2-bfe6-4034-a0f8-f7da837adf20</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;I just tried putting a break point on the app_error.c app_error_handler_bare (the other one wasn&amp;#39;t compiled in) function and it doesn&amp;#39;t appear to be called before 0x00000000 gets targeted. Is this because I am not using the app_error_handler instead of bare?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82322?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 18:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbcf30c0-4c2a-4908-941b-b5bd9200fab0</guid><dc:creator>Tyler</dc:creator><description>&lt;p&gt;Thanks for the link to that thread, I&amp;#39;ll take a look at it. I am actually developing on a board from a manufacturer who makes watch devices in china and sells to whoever. I actually just opened up an nrf51422 devkit (hopefully the model difference won&amp;#39;t throw off what I learn too much) so I can load my firmware onto there and activate some pins for uart to debug with.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What does it mean when debugger head lands on 0x00000000?</title><link>https://devzone.nordicsemi.com/thread/82321?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2017 18:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb64ba5-8339-4cc1-a97c-46f2155668a3</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;I think that means that the program is reset. After a reset, the vector table is usually defined at the start of the memory space (address 0x00000000).&lt;/p&gt;
&lt;p&gt;Have you tried debugging? &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Are you using a nRF51-DK? If so, it should not have been necessary to change target device...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>