<?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 ble debug code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49734/secure-dfu-ble-debug-code</link><description>hello 
 I am using sdk 15.3 example code of DFU (secure_boot loader \ pca10040_ble) 
 I want to debug code but i can not.I getting error like that &amp;quot;Error Flash Download Failed - Cortex-m4&amp;quot; 
 I am using s132_nrf52_6.1.1_softdevice .i have using nrf52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 09:57:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49734/secure-dfu-ble-debug-code" /><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198394?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebdb82bf-1b49-48e7-88ca-374ef4947be0</guid><dc:creator> udaybarejiya </dc:creator><description>&lt;p&gt;&lt;span&gt;Can you program other SDK 15.3.0 projects through Keil?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Ans:&lt;/strong&gt;Yes&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does the original bootloader example work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Ans:&lt;/strong&gt;in SDk example code you are given&amp;nbsp;pca10040_ble and&amp;nbsp;pca10040_ble_debug code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;pca10040_ble&amp;nbsp; it&amp;#39;s working fine but i can not debug it because it&amp;#39;s limitation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; that&amp;#39;s why i am using&amp;nbsp;pca10040_ble_debug&amp;nbsp;example code.and it&amp;#39;s not debug code&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198391?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9327328-4e08-4ace-b654-1e839babe7a2</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="48409" url="~/f/nordic-q-a/49734/secure-dfu-ble-debug-code/198386"]Before one year ago i had use in sdk 10 example that is working fine[/quote]
&lt;p&gt;Can you program other SDK 15.3.0 projects through Keil?&lt;/p&gt;
[quote userid="48409" url="~/f/nordic-q-a/49734/secure-dfu-ble-debug-code/198386"]But i want to make BLE + UART dfu that&amp;#39;s why i needed Debugging code.[/quote]
&lt;p&gt;Does the original bootloader example work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198386?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beb2ee2d-f3f2-4b56-98da-f69e5f76f45c</guid><dc:creator> udaybarejiya </dc:creator><description>&lt;p&gt;Before one year ago i had use in sdk 10 example that is working fine&lt;/p&gt;
&lt;p&gt;yup if we are using hex file then it&amp;#39;s loded successfully.&lt;/p&gt;
&lt;p&gt;in my application already we have using in BLE dfu , It;s Working Fine&lt;/p&gt;
&lt;p&gt;But i want to make BLE + UART dfu that&amp;#39;s why i needed Debugging code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198376?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 09:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c5c1348-28ec-49dd-a928-7670b838d82f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That is strange. Are you able to program and debug other SDK examples? Have you tried to program the same hex with nrfjprog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198349?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 08:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f017985f-8666-455e-952a-7dba7ef2139f</guid><dc:creator> udaybarejiya </dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am already set SW in Setting&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please Refer attachment file.&lt;/p&gt;
&lt;p&gt;&lt;img alt="jtag setting" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8204.3.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198347?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 08:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:424bad80-b4cf-4ce8-866d-bc750f243c96</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The IC does not have a JTAG interface, only SWD. Maybe that&amp;#39;s why the erase fails. Check if &amp;quot;SW&amp;quot; is selected in the Jlink settings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3056.swd.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198341?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 08:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e782cf68-6513-4a21-beb8-dc69795b1972</guid><dc:creator> udaybarejiya </dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am also done with Full chip erase but still we found same issue.&lt;/p&gt;
&lt;p&gt;please refer attachment file this is log file of flash&lt;/p&gt;
&lt;p&gt;//*****************************************Log File ***************************************************//&lt;img alt="Log file of flash" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3618.2.png" /&gt;&lt;/p&gt;
&lt;p&gt;*** Using Compiler &amp;#39;V5.05 update 2 (build 169)&amp;#39;, folder: &amp;#39;C:\Keil_v5\ARM\ARMCC\Bin&amp;#39;&lt;br /&gt;Build target &amp;#39;nrf52832_xxaa_s132&amp;#39;&lt;br /&gt;compiling nrf_bootloader_app_start_final.c...&lt;br /&gt;linking...&lt;br /&gt;Program Size: Code=28552 RO-data=2296 RW-data=188 ZI-data=25912 &lt;br /&gt;FromELF: creating hex file...&lt;br /&gt;&amp;quot;.\_build\nrf52832_xxaa_s132.axf&amp;quot; - 0 Error(s), 0 Warning(s).&lt;br /&gt;Build Time Elapsed: 00:00:03&lt;br /&gt;Load &amp;quot;D:\\CurrentProject\\Nordic_Common_Code\\SoftDevice\\nRF5_SDK_15.3.0_59ac345\\bkup\\nRF5_SDK_15.3.0_59ac345\\examples\\dfu\\secure_bootloader\\pca10040_ble\\arm5_no_packs\\_build\\nrf52832_xxaa_s132.axf&amp;quot; &lt;br /&gt;Error: Flash Download failed - Target DLL has been cancelled&lt;br /&gt;Flash Load finished at 13:51:02&lt;br /&gt;Load &amp;quot;D:\\CurrentProject\\Nordic_Common_Code\\SoftDevice\\nRF5_SDK_15.3.0_59ac345\\bkup\\nRF5_SDK_15.3.0_59ac345\\examples\\dfu\\secure_bootloader\\pca10040_ble\\arm5_no_packs\\_build\\nrf52832_xxaa_s132.axf&amp;quot; &lt;br /&gt;Set JLink Project File to &amp;quot;D:\CurrentProject\Nordic_Common_Code\SoftDevice\nRF5_SDK_15.3.0_59ac345\bkup\nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040_ble\arm5_no_packs\JLinkSettings.ini&amp;quot;&lt;br /&gt;* JLink Info: Device &amp;quot;NRF52832_XXAA&amp;quot; selected.&lt;br /&gt; &lt;br /&gt;JLink info:&lt;br /&gt;------------&lt;br /&gt;DLL: V6.40 , compiled Oct 26 2018 15:06:02&lt;br /&gt;Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jul 12 2018 11:44:41&lt;br /&gt;Hardware: V1.00&lt;br /&gt;S/N : 681936529 &lt;br /&gt; &lt;br /&gt;* JLink Info: Found SW-DP with ID 0x2BA01477&lt;br /&gt;* JLink Info: Found SW-DP with ID 0x2BA01477&lt;br /&gt;* JLink Info: Scanning AP map to find all available APs&lt;br /&gt;* JLink Info: AP[2]: Stopped AP scan as end of AP map has been reached&lt;br /&gt;* JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)&lt;br /&gt;* JLink Info: AP[1]: JTAG-AP (IDR: 0x02880000)&lt;br /&gt;* JLink Info: Iterating through AP map to find AHB-AP to use&lt;br /&gt;* JLink Info: AP[0]: Core found&lt;br /&gt;* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000&lt;br /&gt;* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;br /&gt;* JLink Info: Found Cortex-M4 r0p1, Little endian.&lt;br /&gt;* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots&lt;br /&gt;* JLink Info: CoreSight components:&lt;br /&gt;* JLink Info: ROMTbl[0] @ E00FF000&lt;br /&gt;* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;br /&gt;* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;br /&gt;* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;br /&gt;* JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;br /&gt;* JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU&lt;br /&gt;* JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;br /&gt;ROMTableAddr = 0xE00FF000&lt;br /&gt;* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt;* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt; &lt;br /&gt;Target info:&lt;br /&gt;------------&lt;br /&gt;Device: nRF52832_xxAA&lt;br /&gt;VTarget = 3.300V&lt;br /&gt;State of Pins: &lt;br /&gt;TCK: 0, TDI: 1, TDO: 1, TMS: 1, TRES: 1, TRST: 1&lt;br /&gt;Hardware-Breakpoints: 6&lt;br /&gt;Software-Breakpoints: 8192&lt;br /&gt;Watchpoints: 4&lt;br /&gt;JTAG speed: 1000 kHz&lt;br /&gt; &lt;br /&gt;Erase Failed!&lt;br /&gt;Error: Flash Download failed - &amp;quot;Cortex-M4&amp;quot;&lt;br /&gt;Flash Load finished at 13:53:46&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198332?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 08:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189edf6f-a44f-4952-9274-d8fb238ca499</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming that it&amp;#39;s not a build issue. Could you also include the log when you are attempting to flash the device?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, try to do a full chip erase first with nrfjprog or with the programmer app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;e.g., nrfjprog --erase&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198322?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 07:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f92324f-5731-4ad5-884b-49b103b82756</guid><dc:creator> udaybarejiya </dc:creator><description>&lt;p&gt;Yes Project build without any error&lt;/p&gt;
&lt;p&gt;Please Prefer attachment file it will shown you address setting and Build output&lt;img alt="Build Output and Address Setting" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6562.Untitled.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU ble debug code</title><link>https://devzone.nordicsemi.com/thread/198317?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 07:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04a997c4-836c-43cc-a7ac-04bad65d0fe8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does the project build without any errors? Please post the Build output log in case it provides more information about the flashing issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>