<?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>OAD binary size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61671/oad-binary-size</link><description>Hi All, 
 I have integrated DFU service into my application. I am successfully able to use OAD so far. Today I have added a piece of code to my application. So, my binary size has been increased. 
 After transfer this binary to my device, application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Aug 2020 13:05:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61671/oad-binary-size" /><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/262808?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c992e2ba-5799-4779-9b23-5b3fe7d164cf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Lakshmi,&lt;/p&gt;
&lt;p&gt;Yes, but that&amp;#39;s why I need you to debug the application to see what happens. It might be a problem with the code size as you say, but there may be other reasons for this as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/262805?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 13:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a22bd50-d83d-48d3-adef-3c1177681b56</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I got that. But the issue is, the same application working perfectly when it run standalone. Another thing is If i reduce the code size by removing few modules, this works with boot loader service too.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is something with code size it seems. How can we debug that?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/262701?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2020 07:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6010fa7-6a32-4b57-bb84-aa7ce7632892</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It appears to be stuck in your application code (around address 0x00026CC8). So you need to debug the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/262583?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 12:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f111ac-80fc-4329-ac10-c8adb55b4990</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sorry for late response. Been busy with some other stuff. I have run this command. Below is the output for your reference. Please suggest a fix.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;R0: 0x00004001&lt;br /&gt;R1: 0x00004001&lt;br /&gt;R2: 0x0003CB2C&lt;br /&gt;R3: 0x00000001&lt;br /&gt;R4: 0x00001000&lt;br /&gt;R5: 0x200077D4&lt;br /&gt;R6: 0x10001000&lt;br /&gt;R7: 0x0007E000&lt;br /&gt;R8: 0x00000000&lt;br /&gt;R9: 0x00000000&lt;br /&gt;R10: 0x00000000&lt;br /&gt;R11: 0x00000000&lt;br /&gt;R12: 0x20003A11&lt;br /&gt;SP: 0x2000FED0&lt;br /&gt;LR: 0x00026D03&lt;br /&gt;PC: 0x00026CC8&lt;br /&gt;xPSR: 0x21000000&lt;br /&gt;MSP: 0x2000FED0&lt;br /&gt;PSP: 0x00000000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252728?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 12:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a041483-8571-4192-a3ac-d34c44cfca32</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;What do you use to debug, Segger embedded studio? In any case, I would start by running the &amp;quot;nrfjprog --readregs&amp;quot; command after the app has started to hang (nrfjprog is a part of our &lt;span&gt;&lt;a title="nRF5x Command Line Tools" href="https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_command_line_tools_lpage.html?cp=8_1"&gt;nRF5x Command Line Tools package&lt;/a&gt;&lt;/span&gt;). This will return CPU registers such as the Program counter value that may help us figure out exactly where it hangs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252571?ContentTypeID=1</link><pubDate>Mon, 01 Jun 2020 11:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf397bb-c4e7-4023-ae24-22dbf592c192</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Please suggest about debugging OAD application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252398?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 12:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4054043d-811c-491e-9dfb-38a3e4ed000a</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have tested my application standalone without DFU programmed. It is working alright.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have no idea how to debug dfu+appilcation&amp;nbsp; using a JLINK step by step. Can you please help?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252388?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 11:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052d9fff-ef0b-46dc-b0b3-37230b43eb0c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. I think the next step is to try debugging the application after you have completed the DFU to find out where it hangs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252383?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 11:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda00195-1c45-4e6d-81c2-94429f8b9515</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;I verified it.&amp;nbsp;&amp;nbsp;&lt;span&gt;FDS_VIRTUAL_PAGES has been set to 3 in my application&amp;nbsp;sdk_config.h. Which is matching&amp;nbsp;&amp;nbsp;NRF_DFU_APP_DATA_AREA_SIE.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What else could be the problem?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252352?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 09:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d8ca011-0ac5-43ca-a0fd-6ccdcf468da8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s going to correspond to the number of FDS_VIRTUAL_PAGES if you are using&amp;nbsp; FDS in your app (either directly or through the Peer manager module). Each page is 4096 bytes by default. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/252311?ContentTypeID=1</link><pubDate>Fri, 29 May 2020 07:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50a01c09-94b9-4bb1-8c8f-1180bf67ab64</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found, NRF_DFU_APP_DATA_AREA_SIE of dfu bootloader, it is 12288.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where to find application data region to match with?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/251471?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 12:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:056bd44f-ce68-448e-8e59-5f6761c15f55</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to debug the application after completing DFU? That should help you determine where the app gets stuck.&lt;/p&gt;
&lt;p&gt;A common reason for issues like this is that the bootloader is overwriting parts of the &amp;#39;application data&amp;#39; region during DFU that leads to initialization problems next time the app is booted (see &lt;span&gt;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;&lt;/span&gt;). You may want to verify if the NRF_DFU_APP_DATA_AREA_SIZE config in your bootloader matches the size of the &amp;#39;application data&amp;#39; region used by the app first as that will prevent the possibility of getting overwrites.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/251406?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 08:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a9c4696-407f-45b0-830c-eddb5d30462b</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hello Tech support team,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please look into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OAD binary size</title><link>https://devzone.nordicsemi.com/thread/251266?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 12:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df551dd2-ff01-4b49-96b7-7ddd343d3c6c</guid><dc:creator>Lakshmikanth Satyavolu</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can someone please look into it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Lakshmi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>