<?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>Get &amp;quot;SPI_NOR_FLASH_LAYOUT_PAGE_SIZE incompatible with flash size&amp;quot; error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113265/get-spi_nor_flash_layout_page_size-incompatible-with-flash-size-error</link><description>Hi, 
 
 I am working on a project which has external flash (FM25V01A ) connected to nrf52832 board over SPI. And when building the project, I am getting the following error: 
 
 In the overlay file when I put the memory size above few megabyte or Gigabyte</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jul 2024 09:24:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113265/get-spi_nor_flash_layout_page_size-incompatible-with-flash-size-error" /><item><title>RE: Get "SPI_NOR_FLASH_LAYOUT_PAGE_SIZE incompatible with flash size" error</title><link>https://devzone.nordicsemi.com/thread/495584?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 09:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22f145ec-c9a8-4b56-b931-faa553cb443e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;This should be done in your prj.conf of your application. Lowering it significantly should help here I think.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get "SPI_NOR_FLASH_LAYOUT_PAGE_SIZE incompatible with flash size" error</title><link>https://devzone.nordicsemi.com/thread/495257?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 14:25:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd6891e-dabd-4f5b-be08-0a3e625d310e</guid><dc:creator>Farhan95</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you so much. I didnot set any value, it might be the default size. But could you please tell me how to set the page size ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Farhan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get "SPI_NOR_FLASH_LAYOUT_PAGE_SIZE incompatible with flash size" error</title><link>https://devzone.nordicsemi.com/thread/495251?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 14:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab235174-2355-4501-b6f5-000f67512960</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, what is the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE"&gt;&lt;strong&gt;CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE&lt;/strong&gt; &lt;/a&gt;set to in your application then, if it is not set, it defaults to 65536, which is larger than the 0x00004000 size of your flash which would be why it returns this error message. Try decreasing the page size to something that will fit inside the flash you&amp;#39;re setting and I think you&amp;#39;ll have better luck.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>