<?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>sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13487/sd_flash_page_erase-problem</link><description>Hi,
I&amp;#39;m using the ant_broadcast_rx example for my nRF51422 with S310 softdevice sdk 10.0.0. I&amp;#39;ve configured and changed all parameters of the example to make it work with the S310 softdevice, everything is working. At this point I want to include a piece</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 07 Mar 2021 13:40:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13487/sd_flash_page_erase-problem" /><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/298223?ContentTypeID=1</link><pubDate>Sun, 07 Mar 2021 13:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce8fc32-10a2-4951-b23e-697ecab88861</guid><dc:creator>StefanoL</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m facing the same issue, how did you solve it? (If you solved it...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51474?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 13:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16322642-527d-4451-b3a5-84d65f49446e</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Sure, the problem is that I rewrote it without the softdevice_handler to have more control on soc events, as soon I&amp;#39;ll finish it i&amp;#39;ll get back to you.
Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51471?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 12:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9be60223-fce3-42c0-b25f-0d53d0477bc9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;in that case, can I get your project (maybe send the link in the pvt message) so that i can see and investigate more why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51469?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 11:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38439523-acab-424b-8450-8aa4cc83fed8</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Yes, the sd_flash_page_erase goes without problems but alway busy... really can&amp;#39;t figure out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51470?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 11:40:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:094a4f94-f02f-4491-b9ef-6cb2ce2840e3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This seems very unlikely. if the sd_flash_page_erase went through without any errors, then after sometime you should either get NRF_EVT_FLASH_OPERATION_SUCCESS or NRF_EVT_FLASH_OPERATION_ERROR. There are no exceptions for this-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51473?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 11:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78c2790-d313-40b3-afbc-b32811748e32</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Hi Aryan, sorry to hear that, hope you&amp;#39;re doing well now.
I can debug the &lt;code&gt;sd_evt_get&lt;/code&gt; and it seems that none of the flash operation done/error event is passed here so the code hangs in the &lt;code&gt;sd_flash_page_erase()&lt;/code&gt; and the &lt;code&gt;mb_flash_busy&lt;/code&gt; never goes false.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51472?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 06:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98955edb-9475-48d9-b6af-8c21ecedd7ac</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi, Sorry for late reply, I was sick all week.
Looking at your code, the only possibility that ant_boot_settings_event is not called is when sd_evt_get function returns with NRF_ERROR_NOT_FOUND- Were you sure that the API that enabled some functionality to expect events went succesfully?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51468?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 10:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5bd5a85-d102-4546-a8a9-279f1b361ba7</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;Forget to say that the &lt;code&gt;ant_boot_settings_event()&lt;/code&gt; is never called... Does it mean i need to discard the softdevice_handler and rewrite that part as its in the ota_tester app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51467?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 14:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:871bd6a5-45c3-4c17-be5e-f7a995a7a883</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;The problem seems that i&amp;#39;m using the softdevice_handler in the project:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SOFTDEVICE_EVT_IRQ        SD_EVT_IRQn
void SOFTDEVICE_EVT_IRQHandler(void)
{
	
		// Added by me
		uint32_t ulEvent;
		while (sd_evt_get(&amp;amp;ulEvent) != NRF_ERROR_NOT_FOUND) // read out SOC events
		 {
				 ant_boot_settings_event(ulEvent);
		 }
				 
		// The original
    if (m_evt_schedule_func != NULL)
    {
        uint32_t err_code = m_evt_schedule_func();
        APP_ERROR_CHECK(err_code);
    }
    else
    {	 
				intern_softdevice_events_execute();
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is at the end of the softdevice_handler.c, all the events runs here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51466?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 14:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e42198-1f3b-487c-b623-c942439372e3</guid><dc:creator>Max</dc:creator><description>&lt;p&gt;I&amp;#39;m using the default one in the softdevice_handler file. I&amp;#39;ll post it later but you can check the ant broadcast rx example, its the same.
Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_flash_page_erase problem</title><link>https://devzone.nordicsemi.com/thread/51465?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2016 09:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cfab0f1-4751-4372-9be8-3ae74ab6fa0f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Max,&lt;/p&gt;
&lt;p&gt;How did you add the ant_boot_settings_event? Something like this needs to be done&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void SD_EVT_IRQHandler(void)
{
   uint32_t ulEvent;

   while (sd_evt_get(&amp;amp;ulEvent) != NRF_ERROR_NOT_FOUND) // read out SOC events
   {
       ant_boot_settings_event(ulEvent);
   }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>