<?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>nrf5340: How to use xip feature and app image burning to external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94851/nrf5340-how-to-use-xip-feature-and-app-image-burning-to-external-flash</link><description>Hi, 
 Now I&amp;#39;m using the matter lock demo to develop products( v2.1.2\nrf\samples\matter\lock ), but I find that the demo image is too large, and it is impossible to extend our application with internal flash. 
 I want to use the xip feature, but I don</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Dec 2022 09:36:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94851/nrf5340-how-to-use-xip-feature-and-app-image-burning-to-external-flash" /><item><title>RE: nrf5340: How to use xip feature and app image burning to external flash</title><link>https://devzone.nordicsemi.com/thread/400774?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 09:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eb3571c-2ade-4af5-a2b4-9506a97bbc1c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&amp;nbsp;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;Is there any detailed documentation on how to&amp;nbsp;use&amp;nbsp;the xip execution.&lt;/span&gt;[/quote]
&lt;p&gt;You can have a look at this sample:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/direct_xip"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/direct_xip&lt;/a&gt;. The external flash test sample&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash&lt;/a&gt;&amp;nbsp;might help you allocate the flash areas.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In addition we have this documentation:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#execute-in-place-xip-configuration"&gt;for the nRF5340&lt;/a&gt;&amp;nbsp;with XiP, as well as&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fqspi.html&amp;amp;anchor=execute_in_place"&gt;some more information here&lt;/a&gt;&amp;nbsp;on the infocenter, and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/mcuboot/design.html"&gt;this page &lt;/a&gt;from the MCUboot documentation&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]I didn&amp;#39;t get any useful information in this project of &lt;span style="color:rgba(255, 0, 0, 1);"&gt;machine learning.&lt;/span&gt;[/quote]
&lt;p&gt;Could you link to which project you&amp;#39;re referring to?&lt;/p&gt;
[quote user=""]In the matter lock demo, I have add my application code to it, it is show the follow error&amp;nbsp;[/quote]
&lt;p&gt;It is as you state, your application is exceeding 1MB and you don&amp;#39;t have room for it on the internal flash. You&amp;#39;re using 99.97% of the available flash area for your application, which does not leave any room for image size + trailer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;T&lt;/span&gt;&lt;span&gt;he lock sample uses statically allocated RAM for DoorLock credentials so it might be worth tuning the parameters like LOCK_NUM_CREDENTIALS_PER_USER or LOCK_NUM_CREDENTIALS to save some memory.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340: How to use xip feature and app image burning to external flash</title><link>https://devzone.nordicsemi.com/thread/400516?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 07:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b99f00d-3127-43d6-90d1-980570db6e5f</guid><dc:creator>Alan.xiao</dc:creator><description>&lt;p&gt;add the pm_static_dfu.yaml and .config&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2318_2E00_pm_2E00_config"&gt;devzone.nordicsemi.com/.../2318_2E00_pm_2E00_config&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>