<?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>The memory question of the nrf5340 audio application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113228/the-memory-question-of-the-nrf5340-audio-application</link><description>During my test of the nrf5340 audio application which in the V2.6.0 SDK , Because of that i need to implement some algorithms in it, i use the ld file to allocated a segment of RAM space and init the heap as following images and added it to the CMakeList</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2024 09:06:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113228/the-memory-question-of-the-nrf5340-audio-application" /><item><title>RE: The memory question of the nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/496924?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 09:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0614a6f-11be-4691-9ae3-f5e06e5ec1d5</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again and sorry about the wait, I was OOO for a while and assumed some of my coworkers would take this case in the meantime.&lt;/p&gt;
[quote user="huma"]&lt;p&gt;Yes, I need to add some audio algorithms that require memory to store and process the audio data. When I &lt;span&gt;allocated&amp;nbsp;&lt;/span&gt;the memory like this, I encountered these strange problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Could you check the CPU usage number to make sure the issue is not from allocated RAM but because your own code is consuming CPU? This is worth&amp;nbsp;checking.&lt;/p&gt;
&lt;p&gt;Enabling the thread analyzer might also make it easier to see:&lt;/p&gt;
&lt;p&gt;CONFIG_THREAD_ANALYZER=y&lt;/p&gt;
&lt;p&gt;CONFIG_THREAD_ANALYZER_USE_PRINTK=y&lt;/p&gt;
&lt;p&gt;CONFIG_THREAD_ANALYZER_AUTO=y&lt;/p&gt;
&lt;p&gt;CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5&lt;/p&gt;
&lt;p&gt;And how is the RAM allocated?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The memory question of the nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/495109?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 01:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbcdf20d-d8c4-488b-8777-c8b03bb3e4e7</guid><dc:creator>huma</dc:creator><description>&lt;p&gt;Hello Elfving,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;Yes, I need to add some audio algorithms that require memory to store and process the audio data. When I &lt;span&gt;allocated&amp;nbsp;&lt;/span&gt;the memory like this, I encountered these strange problems.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you very much and looking forward to your reply!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The memory question of the nrf5340 audio application</title><link>https://devzone.nordicsemi.com/thread/494796?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2024 12:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73907ff1-681e-4b5f-8096-f1893afeae96</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking into it.&lt;/p&gt;
[quote user=""]&lt;p&gt;During my test of the nrf5340 audio &lt;span&gt;application which in the V2.6.0 SDK&lt;/span&gt;, Because of that i need to implement some algorithms in it, i use the ld file to&amp;nbsp;allocated a segment of RAM space and init the heap as following images and added it to the CMakeList.txt.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Any particular reason that you&amp;#39;d want to use ld files for this? The partition manager is typically the way to go for this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>