<?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>freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90640/freertos-xtaskresumeall-lockup-when-using-ble-and-twi</link><description>Hi… 
 I am using freeRTOS V10.0.0 release 
 I am using nRF52820 + SDK V17.0.2 with SD112 V7.2.0 along with tickless idle as this is a battery based product… 
 When my application is just talking over the IIC bus it works perfectly ISR Priority = 3 When</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Aug 2022 08:18:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90640/freertos-xtaskresumeall-lockup-when-using-ble-and-twi" /><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/381488?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 08:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f904da2-7952-4359-bc01-4ff596f040e8</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Rambooka"]&lt;p&gt;I have been running Stack Overflow Detection - Method 2 for a few weeks now and the API&amp;nbsp; &lt;strong&gt;vApplicationStackOverflowHook&lt;/strong&gt;() has never been called&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;This is useful for this does &lt;a href="https://www.freertos.org/Stacks-and-stack-overflow-checking.html"&gt;not guarantee that it will catch the stack overflow&lt;/a&gt;. I still suggest you to increase the stack sizes for your threads just to do some experimentation. I understand that you are using nRF52820 and RAM might be limited in your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/381455?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 04:54:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9abaab01-1d3d-4f90-a98e-7a0c623cbede</guid><dc:creator>Rambooka</dc:creator><description>&lt;p&gt;The SPI and COMP are being used in polling mode.... so there should be no problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/381453?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 04:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eae11b21-bb59-4e1e-8521-4c2276f1eada</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I can see that SPI and COMP are using higher app (legal) priorities. Hard to say just looking at the priorities if they are causing a deadlock. It might help if you show what you are doing in the that ISR (or app callbacks from the ISR)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/380489?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 03:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d4ee4a-7687-4710-b8ab-fe221e0fb439</guid><dc:creator>Rambooka</dc:creator><description>&lt;p&gt;Hi...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have been running Stack Overflow Detection - Method 2 for a few weeks now and the API&amp;nbsp; &lt;strong&gt;vApplicationStackOverflowHook&lt;/strong&gt;() has never been called&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I posted a simular question&amp;nbsp;&lt;a href="https://forums.freertos.org/t/xtaskresumeall-lockup/15576"&gt;freeRTOS forum here&lt;/a&gt;&amp;nbsp;and they are suggesting the problem i am facing is due to incorrect interrupt priorities. Such that one ISR is in the middle of adding an event to a queue&amp;nbsp;&amp;nbsp;and another ISR occurs and writes an event to the same queue...&amp;nbsp;which results in the queue getting corrupted.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am using all the settings for ISR priorities that nordic setup for the example BLE UART App.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do the ISR priorities I posted initially look correct ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/380286?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 07:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a756da62-a76c-4d8c-8155-f4f3530c3afa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I feels like I have seen this error before.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is very strange that this is happening inside the idletask, seems like a stack corruption (memory overflow in nearby task structures). Can you try to enable &lt;a href="https://www.freertos.org/Stacks-and-stack-overflow-checking.html"&gt;stack checking&lt;/a&gt; to see if we luckily see the kernel detecting stack overflow?f Also try increasing some of your app tasks&amp;#39; stack sizes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/380222?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 21:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb7821bb-0158-4137-bc9e-3b0701cced08</guid><dc:creator>Rambooka</dc:creator><description>&lt;p&gt;here is the values of&amp;nbsp; pxTCB&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/pastedimage1659647396794v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/380221?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 21:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24030a9e-4d6a-4dca-be02-6de7ba28fbd6</guid><dc:creator>Rambooka</dc:creator><description>&lt;p&gt;here is the call stack&lt;/p&gt;
&lt;p&gt;When my App locks up, I pressed the pause button and took a screen capture...&lt;/p&gt;
&lt;p&gt;the stack trace shows 0x1dd28 , so I also attached screen capture of that disassembly code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&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/pastedimage1659647041275v1.png" alt=" " /&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/pastedimage1659647158523v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: freeRTOS xTaskResumeAll lockup when using BLE and TWI</title><link>https://devzone.nordicsemi.com/thread/380021?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 05:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c7ce275-0227-4eb0-aa3e-cd64bfc08d9b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please show us the function call stack when your app is stuck in the&amp;nbsp;xTaskResumeAll-&amp;gt;&lt;span&gt;while&lt;/span&gt;&lt;span&gt;( &lt;/span&gt;&lt;span&gt;listLIST_IS_EMPTY.&amp;nbsp;Gives us more context on what is happening.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>