<?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>app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97746/app_error_fault_handler-with-pc-0x1505c</link><description>Hi Folks, 
 Any fix concerning this issue cause we are facing the same problem randomly at the same address offset (See Screenshot below). 
 I saw it could be a overstay issue : 
 Is this issue inherent to the 7.0.1 version? 
 
 As you can see, it is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Oct 2023 07:24:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97746/app_error_fault_handler-with-pc-0x1505c" /><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/450445?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 07:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28d8b75e-7bb0-4823-80c7-4c1b8622c62a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastien,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Sorry for delayed reply. I think what we should do next is to try reproducing the problem here so we can investigate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to either strip down your application to minimize it but still can reproduce the issue ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Or preferably re-create the problem on a SDK&amp;#39;s example ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will make it easier to narrow down the root cause.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please make sure you are using a production level chip, not an engineering revision.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/450126?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 15:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77d2f174-efb2-4e8e-92c1-de18b12a0126</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi folks,&lt;/p&gt;
&lt;p&gt;Sorry&amp;nbsp;having played dead for so long.&lt;/p&gt;
&lt;p&gt;So, I still have the&amp;nbsp;app_error_fault_handler with PC=0x1505C even if SysTick is deactivated and I run from now on a 1ms RTC based.&lt;/p&gt;
&lt;p&gt;It occurs randomly and provoke a reset sequence.&lt;/p&gt;
&lt;p&gt;I have also removed the softdevice flash write.&lt;/p&gt;
&lt;p&gt;Is there a way to find the root cause of this&amp;nbsp;&lt;span&gt;overstay issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417422?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 13:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:777675ca-2ffd-4a61-a7cc-aff1a54038e6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastien,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On some corner cases flash operation may timeout. As far as I know , usually that happens when you have long scan interval and you may have queued several flash operations causing a timeout.&lt;/p&gt;
&lt;p&gt;The case was from 7 years ago and the scheduler may have changed. But I agree that if you have many flash activity and scan it may cause a flash timeout occasionally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417370?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 10:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a80293cd-e445-486f-b57d-d8d4bff3f98f</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Flash event error is related to this thread&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/11302/nvmc-timing-flash-access-blocked-during-low-latency-bt-communication"&gt;NVMC timing: Flash access blocked during low latency BT communication?&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;I will try to use the RTC for generating my 1ms period clock.&lt;/p&gt;
&lt;p&gt;I will also get back to you after some testing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417346?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 09:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:384b19b5-6cf4-4a93-9c53-7b6ba422c128</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastien,&amp;nbsp;&lt;br /&gt;I assume by rev C you meant the engineering C version ? If it is we would strongly suggest to continue your development on the latest version (rev 3).&amp;nbsp; You may need to move to SDK v17 if you use rev 3. I don&amp;#39;t know about the availability of rev 2 IC, out Sales should know more about this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regarding flash operation and scanning, if you have a look &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html?cp=5_7_4_0_14_0"&gt;here&lt;/a&gt;&amp;nbsp;, you can find that if the flash operation is blocked for a few time it will get higher priority (same priority as scanning) and will&amp;nbsp;not be pre-empted by the scanner. So I&amp;#39;m not so sure why you receive&amp;nbsp;&lt;span&gt;NRF_EVT_FLASH_OPERATION_ERROR.&lt;br /&gt;If you&amp;nbsp;use Systick to schedule task, I would suggest to consider using RTC (app timer) . As I mentioned , they have better power consumption and is used in most of our examples.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417154?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 14:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ea7c48e-40c6-4be9-90ec-85a56f1d2c8f</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;I wrote another question to a previous thread related to IC revision.&lt;/p&gt;
&lt;p&gt;We are using a softdevice 7.0.1 (sdk 16.0.0) onto a nrf52840 rev C version of which compatibility is not ensured according to your compatibilty matrix. However we plan to use a rev 2 IC version if our future design.&lt;/p&gt;
&lt;p&gt;Has it an importance for my concern?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417151?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 14:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f801b33-be03-499a-a8c7-b2c952ac7f4b</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;SYSTICK is triggered every 1ms to schedule task.&lt;/p&gt;
&lt;p&gt;This scheduler is simply made by ourselves&amp;nbsp;by launch series of routines when Systick is raised.&lt;/p&gt;
&lt;p&gt;No RTOS in our case.&lt;/p&gt;
&lt;p&gt;sd_flash_write is called inside our application after softdevice was enable.&lt;/p&gt;
&lt;p&gt;In the past, I had one issue because I wanted to perform BLE&amp;nbsp;&amp;nbsp;name to connect&amp;nbsp; modification (BLE central modif + flash name modification) without resetting the target and I got a&amp;nbsp;NRF_EVT_FLASH_OPERATION_ERROR.&lt;/p&gt;
&lt;p&gt;This issue was solved by changing the scan timing to:&lt;/p&gt;
&lt;p&gt;/* Determines scan interval in units of 0.625 millisecond. */&lt;br /&gt;#define SCAN_INTERVAL 350U&lt;br /&gt;/* Determines scan window in units of 0.625 millisecond. */&lt;br /&gt;#define SCAN_WINDOW 50U&lt;br /&gt;/* Timout when scanning. 0x0000 disables timeout. */&lt;br /&gt;#define SCAN_TIMEOUT 2000U&lt;/p&gt;
&lt;p&gt;So it give more time to the flash slot time to work.&lt;/p&gt;
&lt;p&gt;The advertising is set to 20ms of adv interval.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417141?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 14:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5207d28-1a7b-4afd-936c-b2a290acfafd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks for the information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mentioned SYSTICK. Could you tell a little bit more about that&amp;nbsp; ? Do you use any RTOS ?&amp;nbsp;&lt;br /&gt;How often&amp;nbsp;do you trigger SYSTICK ? For normal application we suggest to use app_timer (RTC) instead of SYSTICK as it draws less current.&amp;nbsp;&lt;br /&gt;Where do you call&amp;nbsp;&lt;span&gt;sd_flash_write()&amp;nbsp; ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;From what you described interrupt priority of level 5 shouldn&amp;#39;t cause any trouble with the softdevice.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/417127?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 14:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6db9442-7a2a-4245-8549-3ce332c46e74</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I just have IRQ5 used for systick but nothing else above.Is it any issue in using irq 5 to trigger a systick interrupt?&lt;/p&gt;
&lt;p&gt;The rate of the issue is very low , however we experienced it more often when we stress the BLE communication link.&lt;/p&gt;
&lt;p&gt;I shall add that we are performing sd_flash_write operation so maybe is there a timeslot issue while performing those operations.&lt;/p&gt;
&lt;p&gt;I try to decrease the Systick interrupt to 6 and to use the RC oscillator.&lt;/p&gt;
&lt;p&gt;Here is the 32KHz Crystal datasheet used in our design:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://www.microcrystal.com/fileadmin/Media/Products/32kHz/Datasheet/CC8V-T1A_Medical.pdf"&gt;https://www.microcrystal.com/fileadmin/Media/Products/32kHz/Datasheet/CC8V-T1A_Medical.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance for your support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/416525?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 12:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abcf1886-d211-4072-916c-faf3c78be316</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastien,&amp;nbsp;&lt;br /&gt;It&amp;#39;s quite strange that such issue happens without timeslot or multiprotocol.&amp;nbsp;&lt;br /&gt;Do you do anything in a high priority interrupt handler ?&amp;nbsp;&lt;br /&gt;Could you tell a little bit more on the occur rate of the issue, like after you testing for several hours ? Or just matter of minutes/seconds ? How often it is, how many times you experienced it ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you test with our examples , do you see the same problem ? &lt;br /&gt;Is it possible to run the&amp;nbsp;your firmware on our DK ?&amp;nbsp;&lt;br /&gt;Could you provide more information about the crystal you use ? Please try using the RC 32kHz for comparison.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/416149?ContentTypeID=1</link><pubDate>Sat, 18 Mar 2023 17:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a48aa4-1555-4fc1-afd6-892e8fcf2825</guid><dc:creator>Sebastien DRI</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thank you for your answer.&lt;/p&gt;
&lt;p&gt;I only use BLE and softdevice like the Nus example in the sdk 16.0.0. No timeslot and multiprotocol as well.&lt;/p&gt;
&lt;p&gt;We use a quartz oscillators for LFCLK and HFCLK .&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1679159016060v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Concerning the LFCLK, we configure on XTAL, here is the sdk_config.h used:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7450.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../7450.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The issue comes sometimes, at an undetermined moment.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app_error_fault_handler with PC=0x1505C</title><link>https://devzone.nordicsemi.com/thread/415736?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 13:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21942dd1-9855-4c42-916a-7f653d195d0f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sebastien,&amp;nbsp;&lt;br /&gt;As you already found from the other case, it may related to overstaying in REM event.&amp;nbsp;&lt;br /&gt;Do you use time slot in your application ? Or&amp;nbsp;do you do any multiprotocol ? This should not happen if you only use the softdevice and BLE.&amp;nbsp;&lt;br /&gt;If you don&amp;#39;t use any timeslot or multiprotocol, we then need to look at the timing of the oscillator. There could be an issue with it. What&amp;#39;s the LFCLK source you are having ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How often do you see the issue&amp;nbsp; ? &lt;br /&gt;Can you try to reproduce the issue on a DK. It should have no problem with the oscillators.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>