<?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>Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally</link><description>I use nRF52810 SoC to forward data between BLE and UART on our product. So I initialize UART interface and set some GPIOs once enter the &amp;quot;main&amp;quot; function in my codes. But we meet a problem that all the GPIOs except the reset pin of the nRF52810 SoC on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Jul 2021 09:46:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally" /><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/320196?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 09:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8140b99-dad6-4234-86ae-cfedc6c1835d</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;It could be the same bug but it is difficult to be&amp;nbsp;sure. If the issue is replicateable in SDK 14 then maybe a similar fix can be implemented.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/318073?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 03:57:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce765b1-0190-4bf5-ad14-919a4783dc60</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;I can location the issue in the code where I set the advertisement data and start the advertisement by measuring the power consumption.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I found the nRF5_SDK16.0.0 had fixed a bug of advertisement data encoder in sdk release_notes as follow:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff99cc;"&gt;** BLE **&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff99cc;"&gt;- Advertising Data Encoder: fixed a bug causing underflow of a return value&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff99cc;"&gt; of the parsing function when malformed data was provided as input.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;What kinds of parameters can cause this bug in SDK14.1.0 when calling the ble_advdata_set() function?&amp;nbsp; Dose the invalid data&amp;nbsp; transported to the &lt;span&gt;ble_advdata_set()&amp;nbsp;&lt;/span&gt;function can make the firmware crash?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/315691?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 15:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e279f1-de01-4dd7-85cf-8ee320104445</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;Thanks awneil! I will continues to test. If there is any new discovery, I will consult you again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/315690?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 15:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac2d6b4d-7cc4-4019-be5b-6662ecf37a5d</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;Hi Jonathan, thank you. My code does use the FDS to store some data like device name,&amp;nbsp; Manufacture Specified data in BLE advertisement data, etc. I will continues to test whether it is possible that the issue is caused by FDS bug or the data I saved in flash or the way I used FDS to read and write the flash data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/315302?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 08:17:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787e9b02-185a-4fa4-96a4-34aefbe06a77</guid><dc:creator>awneil</dc:creator><description>[quote userid="96977" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally/314742#314742"]in cars[/quote]
&lt;p&gt;and you&amp;#39;ve been careful that your design is fully tolerant of all the many hostilities of the automotive environment - brownouts, spikes, load-dumps, temperature extremes, etc, etc, ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/315296?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 08:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61158a4b-103f-446b-8a28-81d343693d85</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;So if the chip is used out side of recommendation then we cant really tell what caused the issue,&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/recommended_op_conditions.html"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52810/recommended_op_conditions.html&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;But it is difficult to find a solution to the issue that you experiences since without debug due to the app-protect. It could be a issue with SDK 14.1.0, there have been some bug fixes in the later versions, one possibility is that a bug when using FDS, this has been fixed in SDK 16.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;- FDS: fixed two bugs where a power loss at very specific times during garbage
  collection could corrupt the file system, making FDS unable to initialize and return
  FDS_ERR_NO_PAGES on initialization.&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Difficult to say exactly what can be the issue but it is possible due to the FDS bug that some abnormality&amp;#39;s can happen.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/314742?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 13:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be8141ff-7a4c-4f0f-ba18-7643529a759a</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;Our customers use this product in cars.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/314739?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 13:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:969f68b7-67aa-49f7-8eab-26cd1b8b75a2</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;What environment where these product deployed in ?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/314706?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 12:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c00f766-3029-4663-b014-2966375e0fb6</guid><dc:creator>Rayliyn</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally/314648#314648"]So have you tested that hypothesis in the debugger ?[/quote]
&lt;p&gt;Due to the UICR of the chip is configured to enable&amp;nbsp;access port protection before&amp;nbsp;delivery, the flash will be erased if I use Jlink debugger to connect with it. There are total three abnormal products we got. One had been connected with Jlink and its flash had been erased, so&amp;nbsp;this is the chip used to refresh the firmware.&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally/314648#314648"]Are the units permanently powered; eg, by a battery?[/quote]
&lt;p&gt;Chips&amp;nbsp;are&amp;nbsp;permanently powered, not battery powered. I&amp;#39;ve had the chip power down all night. Today, I power it again. The problem remains the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any other debugging method to suggest?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible for the firmware in flash to be changed abnormally?</title><link>https://devzone.nordicsemi.com/thread/314648?ContentTypeID=1</link><pubDate>Thu, 10 Jun 2021 09:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40b84f91-339f-4940-98ec-a8aa6b4b94f4</guid><dc:creator>awneil</dc:creator><description>[quote userid="96977" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally"] I think the &lt;span&gt;&amp;nbsp;the&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF52810 SoC on the&lt;/span&gt;&lt;span&gt;&amp;nbsp;abnormal products only executes the &amp;quot;SystemInit&amp;quot; function and doesn&amp;#39;t run the &amp;quot;main&amp;quot; function&lt;/span&gt;[/quote]
&lt;p&gt;So have you tested that hypothesis in the debugger ?&lt;/p&gt;
[quote userid="96977" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally"]Why does the abnormal chip&amp;nbsp;stop between&amp;nbsp;&amp;nbsp;&amp;quot;SystemInit&amp;quot; function and &amp;quot;main&amp;quot; function?[/quote]
&lt;p&gt;Again, the debugger should give the answer to that&lt;/p&gt;
[quote userid="96977" url="~/f/nordic-q-a/76220/is-it-possible-for-the-firmware-in-flash-to-be-changed-abnormally"]&lt;p&gt;&lt;span&gt;Is it possible for the flash in the nRF52810 to be affected by the environment and make the firmware changed abnormally ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Possible - but unlikely.&lt;/p&gt;
&lt;p&gt;ADDENDUM&lt;/p&gt;
&lt;p&gt;Are the units permanently powered; eg, by a battery?&lt;/p&gt;
&lt;p&gt;If so, does completely removing power (disconnecting the battery for a while) restore normal operation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>