<?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>Can&amp;#39;t get Keil to break at Main</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4702/can-t-get-keil-to-break-at-main</link><description>I have a custom board utilizing an RF51822aa device. To test connectivity to the board I built blinky_s110_pca10028. Using Keil 5.12 I tried to debug the program simply expecting to break in main thus verify I can talk to the M0 on the RF51822. My setup</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Dec 2014 08:18:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4702/can-t-get-keil-to-break-at-main" /><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16664?ContentTypeID=1</link><pubDate>Wed, 10 Dec 2014 08:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:324cead5-f037-49be-b2d1-7f9bf1c32915</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You can program the softdevice stack using Ulink via keil using the approach described here: &lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_fl_hexdownload.htm"&gt;www.keil.com/.../uv4_fl_hexdownload.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that the application start address should be 0x16000 with softdevice s110 v.7x.x. The memory sections are described in more detail in chapter 10 in the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/S110-SDS/20338"&gt;S110-SDS&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16663?ContentTypeID=1</link><pubDate>Wed, 10 Dec 2014 01:11:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0685bd9a-6b9c-49ff-af9e-5ee6c70c4932</guid><dc:creator>mac</dc:creator><description>&lt;p&gt;I am not able to program the softdevice into our custom board. I have programmed 7.0.0 into said device. I then built my application and have the application loading to address 0x14000. When I use keil and start debug my main routine is never hit. Halting the debugger It seems to be in a loop where it is looping to the same address almost as if it is in some sort of hard reset loop. If I then load the applications reset_Handler() address, which I got from the .map file&amp;quot; and hit run everything runs as expected. So, what am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16659?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 20:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2f1ed1-83d4-4e05-99e6-85acea19a8f3</guid><dc:creator>c cook</dc:creator><description>&lt;p&gt;Mac - I&amp;#39;m fairly new to Nordic myself, and have been through the issues you&amp;#39;re describing.  When I can&amp;#39;t break at main, it&amp;#39;s either because I didn&amp;#39;t have the stack programmed, or in Keil under Project/Options, C/C++ I didn&amp;#39;t have the IROM1 and IRAM1 memory correct.  I&amp;#39;m not sure what they should be for the PCA10028 - It has more RAM than the older PCA10003 board that I&amp;#39;m using.&lt;/p&gt;
&lt;p&gt;To program the stack the easiest thing is make sure you have a current version of nRFgo Studio, the current softdevice stack&amp;#39;s hex file. Plug your board into the USB port of you PC, and start nRFgo Studio.  Left side of the opening screen is a Device Manager Pain.  You should see your board labelled Seggar (s/n on seggar chip).  Double click on you board.  The large right area of studio&amp;#39;s window should have a window with 3 tabs, the left labelled &amp;quot;Program Softdevice&amp;quot;  Choose that tab, browse to you S110 hex file. and click program.  You should be good to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16662?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 15:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6851d11c-3292-4d64-b620-399286b4125b</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;You can program custom boards through nRFgo Studio, but it&amp;#39;s limited to Segger J-link devices. That&amp;#39;s the missing link in your setup. How did the original development company program the units? There&amp;#39;s a M0 on board, so you should be able to use a U-LINK, but we don&amp;#39;t have any example on this specific setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16661?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 15:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f908bc3-498a-48ff-acc1-f7a7103c952e</guid><dc:creator>mac</dc:creator><description>&lt;p&gt;Yea, I have read that chapter. I do not have a segger device. All I have is a Keil ULINK2 device. We do not have any EVKs. This project was given to us by the original development company and all I have is a custom board. So, I need to download the S110 Soft device. nRFgo Studio offers no way to program a custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16660?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 15:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69898d64-1b71-4d66-aa9c-e1d726531bfe</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;Instructions on how to program the board and softdevice can be found in &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/18974/3/32311637"&gt;chapter 6 of the nRF51822-EK user guide.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Exactly which kit do you have? Make sure you select j-link as option in the debug section as it&amp;#39;s a j-link that&amp;#39;s on our development and evaluation kits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16658?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 14:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99687b2c-cda6-48b4-9a5d-48b8d2b7716d</guid><dc:creator>mac</dc:creator><description>&lt;p&gt;I am attempting to program the Soft Device now. Can&amp;#39;t find documentation that explains this procedure. I a VERY new to Nordic devices and I have to say I am struggling. Any help would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't get Keil to break at Main</title><link>https://devzone.nordicsemi.com/thread/16657?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2014 14:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78df5fc8-0988-430b-8598-770b20b46eba</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Did you program the soft device executable onto your board before programming and attempting to debug the example? I&amp;#39;ve seen the behavior you describe when I&amp;#39;ve forgotten to program the soft device onto a newly built custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>