<?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>FAILS to erase the bootloader in app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69618/fails-to-erase-the-bootloader-in-app</link><description>HI, 
 I want to upgrade the BL in APP directly. I encouter a wierd problem. When APP erase a specific page of the BL(the address is 0x74000), the system halts. If ignoring this page, the progress can be done without any problem. The flash space for BL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Dec 2020 01:25:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69618/fails-to-erase-the-bootloader-in-app" /><item><title>RE: FAILS to erase the bootloader in app</title><link>https://devzone.nordicsemi.com/thread/285732?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2020 01:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a711ea3-c2bb-42fe-a43d-59e2a13d9235</guid><dc:creator>zhengrongfan</dc:creator><description>&lt;p&gt;I&amp;#39;ll try to reproduce this issue and upload the map files and the flashdump later.&lt;/p&gt;
&lt;p&gt;Yes,&amp;nbsp; I preferred to use the DFU solution to fixed some bugs in the bootloader for the products that are installed in the customers&amp;#39; vehicle, however, I found it&amp;#39;s impossible to do this finally because we didn&amp;#39;t enable these functions in previous bootloader. We have to try other methods.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FAILS to erase the bootloader in app</title><link>https://devzone.nordicsemi.com/thread/285694?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 16:03:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07ca88a6-cd4f-4fc4-9b1b-60c02dda3d19</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you get any errors when calling the erase function, or do you get some assert/Hardfault?&lt;/p&gt;
&lt;p&gt;Can you upload a map-file of the application and bootloader? A flashdump of the device would also be helpful.&lt;/p&gt;
&lt;p&gt;It does not sound like a safe way to update the bootloader. If the device is reset during the erase cycle, you will not be able to boot back to the application if you have erased the current bootloader. We do have background DFU solutions where the application/bootloader is received by the application (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/thread_example_dfu.html?cp=7_3_2_10_4_0"&gt;Thread&lt;/a&gt;/&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_examples_dfu_README.html?cp=7_2_3_4"&gt;BLE Mesh&lt;/a&gt;/&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/iot_sdk_app_tftp_dfu.html?cp=7_5_0_4_2_4_9_2"&gt;IoT IPv6 LowPAN&lt;/a&gt;), you should be able to use this for your purpose as well, only with UART transport, to avoid making a new completely custom solution.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FAILS to erase the bootloader in app</title><link>https://devzone.nordicsemi.com/thread/285597?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 11:34:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ccaa9bb-ac16-4d1e-81b5-f0303992f413</guid><dc:creator>zhengrongfan</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I try to do this by using the nrf_fstorage_nvmcinstead of nrf_fstorage_sd to copy the BL before the SD inited, and it seems fine at most time, and some times the system halts during the copying.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FAILS to erase the bootloader in app</title><link>https://devzone.nordicsemi.com/thread/285500?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 05:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a47ce5-deb7-4a6b-a1c9-3bfaf8ea8c6c</guid><dc:creator>zhengrongfan</dc:creator><description>&lt;p&gt;And, is it safe to update the BL like this? I can not use DFU to update BL as the devices are installed in the trucks, and the NRF52832 connects to its host via UART, by which a new BL image can be transferred to the NRF, now the only job is how to copy the new BL to its desired address.&lt;/p&gt;
&lt;p&gt;I have tried executing the&amp;nbsp;sd_mbr_command with a parameter of&amp;nbsp;SD_MBR_COMMAND_COPY_BL, however, the APP is deleted as soon as this command is executed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>