<?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>PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117774/pm-partitions-and-external-flash</link><description>Hello 
 I have a custom nrf52840 board with an external 1MB NOR flash 
 The app uses MCUboot for DFU 
 I know I can define the external flash in the pm_static.yml for the main app 
 i.e 
 external_flash: address: &amp;lt;set address here&amp;gt; region: external_flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2025 13:24:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117774/pm-partitions-and-external-flash" /><item><title>RE: PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/thread/517945?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 13:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35686d18-9aec-4cf9-b555-ffb810844667</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thank you for help&lt;/p&gt;
&lt;p&gt;I will check those out&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/thread/517789?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 19:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22d6b56f-08d6-4fc8-af23-ebc9fb8eeeba</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="AndyM"]What if I have a different part? Is there a generic driver that I can use?[/quote]
&lt;p&gt;Our QSPI NOR driver is designed to be fairly generic and should work with many SPI NOR flash devices, not just the mx25r64. However, you will need to make some modifications to the device tree overlay file to match your specific flash chip.&lt;/p&gt;
&lt;div&gt;The spi_nor driver in Zephyr (which Nordic Connect SDK is based on) is quite generic. You can modify the device tree overlay file to configure it for your specific flash chip. See &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.7.99-ncs1/samples/drivers/jesd216"&gt;this&amp;nbsp;jesd216&lt;/a&gt;&amp;nbsp;sample.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;[quote user="AndyM"]1. My SDK 2.6.1 does not have&amp;nbsp;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&amp;nbsp; - at least I couldnt find it .&lt;/span&gt;[/quote]
&lt;p&gt;NCS v2.6.1 is not forced to use sysbild. You can use &lt;a title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY"&gt;&lt;code&gt;&lt;span&gt;CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;in NCS v2.6.1.&lt;/p&gt;
[quote user="AndyM"]&lt;span&gt;2. I don&amp;#39;t see the test project setting&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_NORDIC_QSPI_NOR&lt;/span&gt;&lt;span&gt;=y or any other settings related to external flash.&lt;/span&gt;[/quote]
&lt;p&gt;See this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.7.99-ncs1/samples/drivers/spi_flash"&gt;spi_flash&lt;/a&gt;&amp;nbsp;sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/thread/517747?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 14:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:066c4fd2-41e0-42dc-9460-5b85984f8e0e</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;The &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash" rel="noopener noreferrer" target="_blank"&gt;MCUboot with external flash te&lt;/a&gt;st code you referred me to uses&amp;nbsp; mx25r64 NOR flash i.e&lt;br /&gt;/ {&lt;br /&gt; chosen {&lt;br /&gt; nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;br /&gt; };&lt;br /&gt;};&lt;br /&gt;What if I have a different part? Is there a generic driver that I can use?&lt;br /&gt;Also&lt;br /&gt;1. My SDK 2.6.1 does not have&amp;nbsp;&lt;span&gt;SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY&amp;nbsp; - at least I couldnt find it .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I don&amp;#39;t see the test project setting&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_NORDIC_QSPI_NOR&lt;/span&gt;&lt;span&gt;=y or any other settings related to external flash.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;Is there a full example available?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/thread/517338?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 22:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:121c4dcf-be28-4b66-aabd-bf0c941d5e46</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll give it a try as soon as I get the hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM Partitions and external flash</title><link>https://devzone.nordicsemi.com/thread/517091?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 20:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac75b55f-aa2f-4fb5-86c8-a5e547b7f03d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Andy,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is an&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/tests/modules/mcuboot/external_flash" rel="noopener noreferrer" target="_blank"&gt;MCUboot with external flash test&lt;/a&gt;&amp;nbsp;in the nRF Connect SDK, which can be used as a reference.&amp;nbsp;For NCS v2.9.0, you can enable SB_CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY to place the secondary MCUboot update partition in external flash. Also, see the&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/nrf/scripts/partition_manager/partition_manager.html#external_flash_memory_partitions"&gt;External flash memory partitions&lt;/a&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>