<?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>How to debug client OTA upgrade application, ZigBee?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48065/how-to-debug-client-ota-upgrade-application-zigbee</link><description>What is the right way to use the debug possibilities of Segger Embedded Studio (or another allowed IDE) in case of the client Zigbee OTA upgrade application example? For now, I am using the NRF_LOG_INFO macros messages through the RTT Viewer. But is it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jun 2019 10:01:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48065/how-to-debug-client-ota-upgrade-application-zigbee" /><item><title>RE: How to debug client OTA upgrade application, ZigBee?</title><link>https://devzone.nordicsemi.com/thread/190718?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 10:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37236741-dd89-4f14-bbe2-16ed7dbc5c63</guid><dc:creator>AnnaR</dc:creator><description>&lt;p&gt;Hi, Andreas.&lt;/p&gt;
&lt;p&gt;It is great! Thank you very much.&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Anna&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug client OTA upgrade application, ZigBee?</title><link>https://devzone.nordicsemi.com/thread/190708?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 09:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e818db6e-884d-4d4e-8ee0-6d408fdef1db</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have not been able to debug in SES yet, but I have been able to set up a debugging session in &lt;a href="https://www.segger.com/products/development-tools/ozone-j-link-debugger/"&gt;Ozone&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I ran the following script from the &lt;strong&gt;ota folder:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;make -j -C bootloader_debug\pca10056\blank\armgcc
make -j -C client\pca10056\blank\armgcc

nrfutil settings generate --family NRF52840 --application client\pca10056\blank\armgcc\_build\nrf52840_xxaa.hex --application-version 0x01010101 --bootloader-version 1 --bl-settings-version 2 --app-boot-validation VALIDATE_ECDSA_P256_SHA256 --key-file priv.pem settings.hex 

mergehex -m client\pca10056\blank\armgcc\_build\nrf52840_xxaa.hex settings.hex -o dfu_client.hex 

nrfjprog -f nrf52 -e
nrfjprog -f nrf52 --program mbr_nrf52_2.4.1_mbr.hex --chiperase
nrfjprog -f nrf52 --program bootloader\pca10056\blank\armgcc\_build\nrf52840_xxaa_mbr.hex
nrfjprog -f nrf52 -r --program dfu_client.hex --sectorerase --snr 683357357 
nrfjprog -r
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then I opened Ozone and selected the &lt;strong&gt;.out &lt;/strong&gt;file in the client folder (client\pca10056\blank\armgcc\_build\nrf52840_xxaa.out)&lt;/p&gt;
&lt;p&gt;Instead of downloading the file I selected &amp;quot;Attach to Running Program&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/725x696/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2cf037df296344799fd175a74e7800eb/pastedimage1559640882622v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;And I was able to step through the code.&lt;/p&gt;
&lt;p&gt;Hope this helps you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to debug client OTA upgrade application, ZigBee?</title><link>https://devzone.nordicsemi.com/thread/190530?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 13:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b245eb5a-9b6f-43f2-8e32-7afcf48f4118</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have to look some more at this, please be patient.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>