<?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>how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115352/how-to-add-a-custom-memory-section-specifically-for-the-nrf5340-in-zephyr-project</link><description>Dear Nordic 
 Our primary configuration in pm_static.yml is as follows: 
 mcuboot : 0 x0~ 0 x10000
 mcuboot_primary : 0 x10000~ 0 x40000
 mcuboot_secondary : 0 x40000~ 0 x70000
 extlib_section : 0 x70000~ 0 x100000
 
 In the generated storage section</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 10:42:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115352/how-to-add-a-custom-memory-section-specifically-for-the-nrf5340-in-zephyr-project" /><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/510070?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 10:42:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a479334e-fced-4276-844b-7137e820961e</guid><dc:creator>remtec</dc:creator><description>&lt;pre class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Traduzione" data-ved="2ahUKEwjOz5qkzNaJAxV-wAIHHbHiC4EQ3ewLegQICRAU"&gt;&lt;span class="Y2IQFc" lang="en"&gt;&lt;span&gt;Hi &lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/kpi_5f00_xie"&gt;kpi_xie&lt;br /&gt;&lt;/a&gt;I just tried inserting &amp;quot;zephyr_linker_sources(SECTIONS rem_ram_sections.ld)&amp;quot; into CMakeLists.txt and it seems to work well for what I need.&lt;br /&gt;&lt;/span&gt;Thanks for your reply.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/509849?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 10:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9804d49b-daa3-49e3-bd2a-03ac65be4891</guid><dc:creator>kpi_xie</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/remtec"&gt;remtec&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I cannot be certain if your requirements are the same as mine, but I will briefly describe my approach for your reference. I directly allocated a flash segment and a RAM segment in &lt;/span&gt;&lt;code&gt;pm_static.yml&lt;/code&gt;&lt;span&gt; that are not used by my Zephyr program. Then, I compiled a firmware for the same core using another compilation tool, where the firmware content only includes the library that I need to update separately and its dependent libraries, with the address range corresponding to these segments. This way, this part of the firmware will be confined to execute within the specified flash and RAM areas, and I can directly call the functions within the library through the corresponding addresses.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;At first, I also wanted to configure a project in the Zephyr VS Code environment that does not include Zephyr and is hardware-independent, but that seems to be very difficult.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/508895?ContentTypeID=1</link><pubDate>Mon, 04 Nov 2024 07:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee27d047-1f05-4dd4-8446-0f3b1e54d4a0</guid><dc:creator>remtec</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/kpi_5f00_xie"&gt;kpi_xie&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m in a very similar situation to yours.&lt;/p&gt;
&lt;p&gt;Can you suggest how you solved the problem?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/506784?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 18:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9faed275-a19e-4c0d-9470-5d9b3f5ea1af</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to hear you resolved it. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/506657?ContentTypeID=1</link><pubDate>Thu, 17 Oct 2024 08:46:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa591595-98bb-438e-9fe9-d5544a30cc72</guid><dc:creator>kpi_xie</dc:creator><description>&lt;p&gt;&lt;span&gt;We have resolved this issue and achieved our development goals. Thank you for your support.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/505800?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 01:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827143ca-1609-495c-9f63-ab933990788b</guid><dc:creator>kpi_xie</dc:creator><description>&lt;p&gt;&lt;span&gt;The purpose of doing this is to maintain the independence between a portion of libraries and the main program by linking them to specific flash and RAM locations. This allows me to update the libraries separately without affecting the execution of the main program.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/505799?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 01:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cf17468-e6ee-4320-b10c-f0814b42fe63</guid><dc:creator>kpi_xie</dc:creator><description>&lt;p&gt;&lt;span&gt;My SDK version is 2.6.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Yesterday, I discovered that by setting CONFIG_HAVE_CUSTOM_LINKER_SCRIPT=y and CONFIG_CUSTOM_LINKER_SCRIPT=&amp;quot;ext_lib_memory.ld,&amp;quot; I could use my own linker script for Zephyr. However, I found that all the automatically generated components were missing. I would like to add my own content while retaining the existing automatically generated content.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add a custom memory section specifically for the NRF5340 in Zephyr project</title><link>https://devzone.nordicsemi.com/thread/505630?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2024 18:05:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:362ac074-8522-40ce-a181-b8acb981cc53</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;(updated)&lt;/p&gt;
&lt;p&gt;I want to XY-problem check this.&lt;/p&gt;
&lt;p&gt;What is your use-case for having it in the linker? What is the thing this will fix for them?&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am working on your case and will update later when I collect enough information.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>