<?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 - Connect External Flash (MX25U12832F)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102675/nrf5340---connect-external-flash-mx25u12832f</link><description>1. nRF Connect SDK: v2.3 
 2. prj.conf 
 3. overlay 
 4. Problem Description/ Question 
 I want to utilize mx25u128 which is 128MiB with partition manager. 
 - Build Error: Attached detailed error messages at the bottom of the post. How do I fix this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Aug 2023 06:22:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102675/nrf5340---connect-external-flash-mx25u12832f" /><item><title>RE: nRF5340 - Connect External Flash (MX25U12832F)</title><link>https://devzone.nordicsemi.com/thread/440865?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 06:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a54d49f8-b93b-4ba0-b322-df447c8ab120</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Happy to help! :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - Connect External Flash (MX25U12832F)</title><link>https://devzone.nordicsemi.com/thread/440811?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 16:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e8c603-7343-4c8f-a86a-fdb6bdf8f2dd</guid><dc:creator>skim</dc:creator><description>&lt;p&gt;Thanks to your help, I was able to solve the problem. Thank you again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 - Connect External Flash (MX25U12832F)</title><link>https://devzone.nordicsemi.com/thread/440487?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2023 12:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2eb6cf2-2e75-4e8d-af81-1dc1c3053226</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]- Build Error: Attached detailed error messages at the bottom of the post. How do I fix this?[/quote]
&lt;p&gt;It looks like the error is caused by a missing configuration.&amp;nbsp;#define PCD_CMD_ADDRESS PM__PCD_SRAM_ADDRESS could indicate that you&amp;#39;re missing one. I suspect it is this one&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PCD_CMD_ADDRESS"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PCD_CMD_ADDRESS&lt;/a&gt;&amp;nbsp;or other pcd-related configurations.&lt;/p&gt;
[quote user=""]- Enabled BT, so had to use Partition Manager. I used&amp;nbsp;&lt;span&gt;CONFIG_PM_PARTITION_SIZE_LITTLEFS and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL to set littlefs_storage&amp;#39;s size. How do I achieve the same thing using pm_static.yml?&lt;/span&gt;[/quote]
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-managers"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#partition-managers&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#static-configuration"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#static-configuration&lt;/a&gt;&amp;nbsp;is a great starting point for getting into how static partitioning works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that I recommend you to examine the nRF machine learning sample for (or other samples in the SDK) that uses a pm_static.yml to see how they&amp;#39;ve used the static partitioning &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/machine_learning/README.html"&gt;developer.nordicsemi.com/.../README.html&lt;/a&gt;&lt;/p&gt;
[quote user=""]- Here is partition manager report. Under external_flash, the size of external_flash is negative. How do I fix this?[/quote]
&lt;p&gt;It looks like you&amp;#39;ve defined the flash size in MegaBytes and not Megabits. Could you verify if that is the case and revert to Megabits in case you&amp;#39;ve defined it as Megabytes?&lt;/p&gt;
[quote user=""]&lt;span&gt;- in overlay, how do I fill &amp;quot;&lt;/span&gt;&lt;span&gt;sfdp-bfp&lt;/span&gt;&amp;quot; section for&amp;nbsp;mx25u128?[/quote]
&lt;p&gt;I recommend you to have a look at&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/spi_flash"&gt;JEDEC SPI-NOR sample&lt;/a&gt;, this case&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93228/how-to-get-started-with-nor-flash-on-zephyr"&gt;How to get started with NOR flash on Zephyr ?&lt;/a&gt;&amp;nbsp;and to most importantly use this&amp;nbsp;sample (modified with your external flash)&amp;nbsp;&lt;a title="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/jesd216" href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/jesd216" rel="noopener noreferrer" target="_blank"&gt;https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/drivers/jesd216&lt;/a&gt;&amp;nbsp;to generate the block you need to input in the device tree for your external flash. Copy the ouptut and enter it into the devicetree of your project.&lt;/p&gt;
&lt;p&gt;Once you&amp;#39;ve generated the matrix, you can crossexamine it with the datasheet of the mx25u128&lt;/p&gt;
&lt;p&gt;So an angle of attack for how to generate the matrix is to use this sample with your external flash, copy the output and enter it into your devicetree in your project. Once thats been done, we may be able to do the cross-checking with the datasheet for the external flash to learn whats been input.&lt;/p&gt;
&lt;p&gt;The more complicated answer to this question is that the sbfp matrix is something that you will have to fill out based on the header mentioned in&amp;nbsp;&lt;a href="https://www.taterli.com/wp-content/uploads/2017/07/JESD216.pdf"&gt;https://www.taterli.com/wp-content/uploads/2017/07/JESD216.pdf&lt;/a&gt;&amp;nbsp;and what items in the datasheet of your memory chip that corresponds to those items.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>