<?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>Pstorage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114030/pstorage</link><description>Pstorage I use it in nrf51822, feel that sometimes back to cause Bluetooth abnormal, I don&amp;#39;t know what is the reason. Especially when calling uint32_t erase_inner_flash(pstorage_handle_t base_handle, uint32_t data_size, pstorage_size_t block_num) { pstorage_handle_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2024 08:34:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114030/pstorage" /><item><title>RE: Pstorage</title><link>https://devzone.nordicsemi.com/thread/498982?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 08:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fde46a83-8ec9-4ce9-98bc-487f99f20d55</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I assume you are using pstorage.c (which is compatible with the SoftDevice) and not pstorage_nosd.c? That is requiered for Bluetooth application that use the SoftDevice. As long as you do, flash operations should be sheduled in between SoftDevice operations, but there is a possibility that there will be problems if the SoftDevice does not have time to schedule everything (flash erase operations while maintaining connection with low connection interval, for instace).&lt;/p&gt;
&lt;p&gt;PS: As you write you are using a very old SDK, so unless this is for maintaing an existing product, I woudl strongly recommend migrating to a newer SDK (and also a newer SoC).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage</title><link>https://devzone.nordicsemi.com/thread/498938?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2024 02:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11b7a6d0-6b43-406d-bd39-16cfd2d2ba14</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;Sorry, it&amp;#39;s SDK7.1. I made a mistake. The erase_inner_flash function is a function encapsulated by me, which calls pstorage_block_identifier_get() and pstorage_clear().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage</title><link>https://devzone.nordicsemi.com/thread/498837?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 12:33:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd24dad-3919-4aa9-8e57-68f56f27d7b3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;SDK 5.7.1 is not a nRF5 SDK version. And I am also not ablo to find any function called erase_inner_flash in code delivered by us. Can you double check the SDK version and that this code is from us?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage</title><link>https://devzone.nordicsemi.com/thread/498826?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 12:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4b96673-4c85-44a1-8537-74395d29f7ec</guid><dc:creator>liuyanfeng</dc:creator><description>&lt;p&gt;SDK 5.7.1&amp;nbsp;&amp;nbsp;Too old SDK。you put the erase_inner_flash function, put it in main() and it works. The whole program will be abnormal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage</title><link>https://devzone.nordicsemi.com/thread/498824?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2024 12:07:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a8f12f-c201-46d6-b528-9b12146faffe</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? And can you say more about in what what Bluetooth is abnormal / how things fail, and how often it happens and in which specific conditions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>