<?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>Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28246/secure-dfu-bootloader-debugging-for-nrf51822_xxaa</link><description>I am using example DFU project (bootloader_secure) from SDK (12.3).
Chip 51822QFAA.
My problem is that I cannot start to debug session in Keil5. Use JLink.
I can program target(through J-Link interface) and start the application,
but I cannot set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Dec 2017 14:28:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28246/secure-dfu-bootloader-debugging-for-nrf51822_xxaa" /><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111556?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 14:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43832c87-dcd9-426f-bc0e-8f9a7418a74e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Can you post another screenshot that shows the debug session in Keil (dissasembly view, source view and register view)? Also, read memory at 0x10001014 to confirm that it contains the BL start address (0x36000)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111555?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 14:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ec68e5-2eaa-491b-9165-34f583ea9cce</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;I tried, the result is the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111554?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 14:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf385712-d1fc-4fc6-a84a-1c8a6611cce7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, you can use nRFgo studio to load the softdevice. Did you load the bootlaoder with nrfgo studio / nrfjprog before you started the debug session?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111553?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 13:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:217d9145-8d22-4e2e-af41-c1a31d656ec9</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;I do erasing and programming sd through nRFgo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111552?ContentTypeID=1</link><pubDate>Fri, 15 Dec 2017 12:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ba584b-6adb-4e8b-993d-d776495064f0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Strange. Attached is the project you sent me, only modification is that I added a space between the nrfjprog arguments to allow it to program. Please try the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Do a full chiperase and load softdevice (nrfjprog --program s130_nrf51_2.0.1_softdevice.hex --chiperase)&lt;/li&gt;
&lt;li&gt;Open Keil project and build the example. Then load it by clicking F8.&lt;/li&gt;
&lt;li&gt;Start debug session&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111551?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 15:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ba549ad-d6aa-4251-b95c-64057078e955</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;yes, but the result is the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111550?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 15:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beb697cc-990f-4c69-9e72-2542c6c3b31f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;ve not seen this issue before and it&amp;#39;s quite puzzling considering that you are able to debug the SDK 11 example and that I&amp;#39;m able to debug the project you sent me. Did you try the same with a new copy of SDK 12.3.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111549?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 19:32:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4756489-9cd1-4a28-9504-beb975c12cc4</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;I can not set the breakpoint at line 108 in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111547?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 14:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e04bc52e-a409-4fbd-9776-99e655a446e4</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;&amp;quot;._build\nrf51422_xxac_s130.axf&amp;quot; - 0 Error(s), 0 Warning(s).
I can not set the breakpoint&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111546?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 13:53:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5f49443-f377-4c4b-a406-c62f8247f34a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Correct, get the following error when loading the file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Error: Could not load file &amp;#39;C:\@@@Boot12_\@@@Boot12_\examples\dfu\bootloader_secure\pca10028\arm5_no_packs\_build\nrf51422_xxac_s130.axf&amp;#39;. Debugger aborted !
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Did you try to place the breakpoint at line 108 in main.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111545?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 13:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e22c721-694d-41cf-bd70-0cc4e70e5a4f</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;does not work with symbols &amp;quot;@&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111544?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 13:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb34fc0-594b-4e05-8af3-d228fea8ca20</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Did you try to place the breakpoint at line 108 in main.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111543?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 13:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a104d214-7e8f-4a45-9c53-c9c74c6c5ff2</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;I also removed all the characters &amp;quot;@&amp;quot;, but there are no changes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111558?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 13:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66cb293f-2b35-4fb7-9cd4-6a87047e073a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. I was able to place breakpoints with your project after removing the &amp;#39;@&amp;#39; from the project path.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111557?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 12:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46004ed6-0376-45b2-822a-7ee77cadf825</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;here is my complete project
&lt;a href="https://drive.google.com/open?id=1CIpyvO-hT-ClGs_TNWik8MTv_la-1Ken"&gt;drive.google.com/open&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111542?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 11:17:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e2684a1-6031-46af-908d-7a0a614a88f1</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid I&amp;#39;m not aware of any project configuration that can cause that. Suggest that you download a new copy of SDK 12.3.0 and only modify the linker settings, then see if you get the same result. Another alternative is if you can send me your project so I can try it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111548?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 20:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d783222f-2d63-4e28-9331-896f22baa3de</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;In the sources window I can&amp;#39;t set breakpoints, but in the disassembly window I can.
Debug information enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111540?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 20:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3aa04fb-9281-485b-9f7b-bada14b45e90</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;The example from SDK 11 (bootloader) works ok, but the example from SDK 12.3 ((bootloader_secure) doesn&amp;#39;t not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111539?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 20:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1600e5c1-04dc-4711-8bc1-5e7bdfe46d6c</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;I have done the experiment.
Set ROM start to 0.
Erase chip.
Program target.
No changes - in source window I cannot set traps and check where the program is at the moment in sources&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111538?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 16:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:579ab5d1-b56e-4c16-8d2e-7b0de468a23f</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;if I step (F11) in the disassembly window, I reach the address 0x00036108,
but in source window nothing changes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111537?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 15:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:734da2c7-5401-4e64-ac23-6dc85cf33913</guid><dc:creator>Plutok Oleg</dc:creator><description>&lt;p&gt;my target settings
ROM: start - 0x36000      size - 0x9C00
RAM: start - 0x200025E0 size - 0x1A20&lt;/p&gt;
&lt;p&gt;utilites settings
command: nrfjprog.exe
arguments: --family  NRF51--program &amp;quot;#H&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader debugging for nRF51822_xxAA</title><link>https://devzone.nordicsemi.com/thread/111541?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 14:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a1668b-443a-4eda-a4c6-9c77c788d501</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you updated the linker configuration to ensure RAM usage is within 16K? The SDK examples are configured for the xxAC part which has 32K of RAM.&lt;/p&gt;
&lt;p&gt;Linker configuration for xxAA part:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/linker_5F00_conf.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Also, the nRF51 programming algorithm used by Keil does not support writing the UICR where the bootloader start address is stored (@0x10001014). This may explain way the program never reaches main. Have you tried to load the FW with nrfjprog / nrfgo studio first?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfjprog.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5153.debug.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Edit 12.12
Are you able to place breakpoints in the code? I&amp;#39;m wondering if the debug information is included in your executable. Please make sure that this option is enabled as shown in screenshot above.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7384.test.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Attachment:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Boot12_5F00_.zip"&gt;boot.zip&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>