<?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>Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73501/soft-device-7-2-0-flash-and-ram-configuration</link><description>Hi 
 I am updating from Softdevice 6.1.1 to 7.2.0 and have issues with nrf_sdh_ble_enable(..), My setup is: 
 
 NRF52840 
 SDK 17.0.2 
 SoftDevice 7.2.0 
 Running FreeRtos 
 GCC compiler using linker script 
 
 What I did: 
 
 I updated the linker script</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Apr 2021 09:23:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73501/soft-device-7-2-0-flash-and-ram-configuration" /><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/305019?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 09:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:091f647d-0f0b-445a-b2cd-e5d2f3e78afb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Yes, this define should have been part of the config setup, and not a hardcoded setting in the source file as the required stack size is application depentent. This has been reported internally. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/305016?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 09:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ae8954d-ec41-4ffa-a61e-1b8576b967f1</guid><dc:creator>DaveC</dc:creator><description>&lt;p&gt;We think we found the issue.&amp;nbsp; It seems that when using SDK 17.0.2 (Soft Device 7.2.0) we have to increase the value of #define:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;#define NRF_BLE_FREERTOS_SDH_TASK_STACK 256 in file nrf_sdh_freertos.c&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a hard coded define within the Nordic SDK.&amp;nbsp; We have provisionally double it to 512 and the FreeRtos stack overflow exception is no longer thrown (a smaller value could also work)&lt;/p&gt;
&lt;p&gt;Q1) As this is a hard coded value within the SDK should it not just work &amp;quot;out of the box&amp;quot;&lt;/p&gt;
&lt;p&gt;Q2) If the value has to be modified per application should it not be part of the Config setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/303432?ContentTypeID=1</link><pubDate>Wed, 07 Apr 2021 10:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec11f106-d0cc-4398-b0b9-fa89a16452b3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Maybe some of the updated modules (SDK or Freertos) has lead to a slight increase in stack usage?&amp;nbsp; As far as I can tell, the &lt;strong&gt;vApplicationStackOverflowHook&lt;/strong&gt;() function should not get called unless you actaully have a stack overflow in one of the threads.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/303207?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 14:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b4cfc14-b50e-48c3-983a-7f5c2c8734e1</guid><dc:creator>DaveC</dc:creator><description>&lt;p&gt;Thanks for the reply.&amp;nbsp; I&amp;#39;m updating from an older sdk/soft device to 7.2.0.&amp;nbsp; The freertos settings have not changed for the application.&amp;nbsp; They work fine when I use the same ap/freertos with the old sdk/soft device (6.1.1)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/303178?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 13:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6244420-63a5-4d02-bbb6-a37e3cd40c18</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response. The linker script looks to be correct now, but I&amp;#39;m not sure why the &lt;strong&gt;vApplicationStackOverflowHook&lt;/strong&gt;() becomes invoked. Have you tried to increases the stack sizes in all of your Freertos tasks? I would also try to increase the stack for the Softdevice task (NRF_BLE_FREERTOS_SDH_TASK_STACK). It&amp;#39;s only 256 bytes by default, which may be a bit low depending on the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/302844?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 10:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2456285-42b9-473d-8732-0a9ab1dfd6a4</guid><dc:creator>DaveC</dc:creator><description>&lt;p&gt;&lt;strong&gt;So with this Configuration I get an error when calling nrf_sdh_enable(..) as above:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MEMORY&lt;/span&gt;&lt;br /&gt;&lt;span&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span&gt;FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xD9000&lt;/span&gt;&lt;br /&gt;&lt;span&gt;RAM (rwx) : ORIGIN = 0x200016FC, LENGTH = 0x38000&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;And with this configuration Free Rtos generates a vApplicationStackOverflowHook() error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MEMORY&lt;br /&gt;{&lt;br /&gt;FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xD9000&lt;br /&gt;RAM (rwx) : ORIGIN = 0x20004650, LENGTH = 0x38000&lt;br /&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any Ideas?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Soft device 7.2.0 Flash and RAM configuration</title><link>https://devzone.nordicsemi.com/thread/302843?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 10:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd10a38-17cd-429a-8047-6ffd6ce4119a</guid><dc:creator>DaveC</dc:creator><description>&lt;p&gt;Update, Sorry I just realized my Linker script was incorrect, should have been&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt; FLASH (rx) : ORIGIN = 0x27000, LENGTH = 0xD9000&lt;br /&gt; RAM (rwx) : ORIGIN = 0x20004650, LENGTH = 0x38000 &lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>