<?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>nRF52832 mesh application failed after bootloading</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58330/nrf52832-mesh-application-failed-after-bootloading</link><description>Hi, 
 Greetings! 
 I am facing a issue while updating firmware 
 My Setup: 
 SDK 16.0.0 
 SDK for Mesh 4.0.0 
 nRF52832 
 DFU: secure_bootloader_ble_s132_pca10040 
 Application: light_switch_server with modifications as per our application requirements</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 29 Feb 2020 07:51:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58330/nrf52832-mesh-application-failed-after-bootloading" /><item><title>RE: nRF52832 mesh application failed after bootloading</title><link>https://devzone.nordicsemi.com/thread/237265?ContentTypeID=1</link><pubDate>Sat, 29 Feb 2020 07:51:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e84f4630-27a5-4395-aaf4-d1494f101ce3</guid><dc:creator>Dinesh</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Greetings!&lt;/p&gt;
&lt;p&gt;Thanks for your reply, it helped me lot.&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please note that I am using flash_manger_library.&lt;/p&gt;
&lt;p&gt;As per your suggestion, I did use mesh_stack_persistence_usage() to know pages used by stack and address. Then accordingly I placed my application data.&lt;/p&gt;
&lt;p&gt;Also modified bootloader configuration to reserve flash pages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After doing all these stuff, issue got resolved.&lt;/p&gt;
&lt;p&gt;Thanks once again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Dinesh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 mesh application failed after bootloading</title><link>https://devzone.nordicsemi.com/thread/236936?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 15:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51577545-80af-460e-938c-5fc997dde843</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dinesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please clarify that you are using the&amp;nbsp;&lt;span&gt;flash_manager library.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;How did you call&amp;nbsp;flash_manager_add() ?&amp;nbsp; In that call you need to configure the start address and the number of page.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Usually what you should do is to put your data right before the mesh stack&amp;#39;s data which located right&amp;nbsp;before the stack data (please try not to use your data as part of application, you can&amp;#39;t preserve it) . You can use this call&amp;nbsp;mesh_stack_persistence_flash_usage() to know where the stack data is and how many pages it&amp;#39;s occupying.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then the total pages that the stack and the application uses should be provided to the bootloader (+1 defrag page). So that the bootloader can preserve it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 mesh application failed after bootloading</title><link>https://devzone.nordicsemi.com/thread/236680?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 04:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b898541-693d-4044-845c-f361176a23e3</guid><dc:creator>Dinesh</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Greetings!&lt;/p&gt;
&lt;p&gt;Your reply is helpful for me&lt;/p&gt;
&lt;p&gt;Please note my reply as below&lt;/p&gt;
&lt;p&gt;1. I am using light switch server example with modifications&lt;/p&gt;
&lt;p&gt;2. I am using bootloader as per bootloader given in experimental_lpn&lt;/p&gt;
&lt;p&gt;3. Currently I am using 2 pages of data and it is part of application itself i.e. I have reserved memory blocks with the help of&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;ProgramSection alignment=&amp;quot;0x1000&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.application_status&amp;quot; size=&amp;quot;0x00001000&amp;quot; inputsection=&amp;quot;*(SORT(.&lt;/span&gt;&lt;span&gt;application_status))&amp;quot; address_symbol=&amp;quot;__start_application_status&amp;quot; end_symbol=&amp;quot;__stop_application_status&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in Project -&amp;gt; Right Click -&amp;gt; Edit Section Placement&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4.&amp;nbsp;As per your reply we can reserve memory&amp;nbsp;blocks by configuring bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However please let me know whether it should inclusive of mesh configuration data or not?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If yes then how can I do that? means how can I understand that how many pages are required for mesh configuration data?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please guide. Thanks in advance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Dinesh&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52832 mesh application failed after bootloading</title><link>https://devzone.nordicsemi.com/thread/236627?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 16:11:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01f02b5-50e0-47c6-9dad-1bdc2c095273</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dinesh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please clarify, do you have the issue when testing with the light switch example with no modification ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My understanding here is that you are using the nRF5SDK bootloader instead of the mesh bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where did you put your custom data with the flash_manager , how many pages ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that you need to configure the bootloader to avoid using the area that you used for custom data. This is depict here:&amp;nbsp;&lt;a 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;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory&lt;/a&gt;&amp;nbsp;Please look for the Application Data area. To configure how big the application data area is , have a look &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_banks.html?cp=7_1_3_5_1_2_2#lib_bootloader_dfu_appdata"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This area is expected to be right behind the start address of the bootloader.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>