<?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 after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94213/pm-after-2-0-1-is-not-recognizing-the-external-flash-area</link><description>Hi I am using the Zephyr code base after trying to update the ncs to 2.1.2 from 1.9.2 I notice that the function &amp;quot;flash_area_open&amp;quot; is returning a -2 error as it couldn&amp;#39;t find this area ID I am trying to open an area in the external flash.... no problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2023 13:56:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94213/pm-after-2-0-1-is-not-recognizing-the-external-flash-area" /><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/402831?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 13:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f063ad66-6e78-4c55-806c-976b04992eba</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;To add the driver add a config similar to this (from&amp;nbsp;bootloader/mcuboot/boot/zephyr/boards/nrf52840dk_qspi_nor.conf):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_QSPI_NOR=y
CONFIG_NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096
CONFIG_NORDIC_QSPI_NOR_STACK_WRITE_BUFFER_SIZE=16&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/402287?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 13:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fcab7c6-f20d-4a54-ae68-7d596e0ac59b</guid><dc:creator>Ibrahim_Augury</dc:creator><description>&lt;p&gt;Found this link&lt;br /&gt;which is similar&amp;nbsp;to my issue&amp;nbsp;&lt;br /&gt;Please see the bellow&lt;br /&gt;&lt;strong&gt;&lt;a class="reference external" title="(in Kconfig reference v&amp;amp;nbsp;)" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK"&gt;&lt;code class="xref kconfig kconfig-option docutils literal notranslate"&gt;&lt;span class="pre"&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK&lt;/span&gt;&lt;/code&gt;&lt;/a&gt;&amp;nbsp;has been used to override the driver check for the external flash driver, but no driver is actually compiled for the region. Disabling the option removes partitions without device drivers from the flash map&lt;/strong&gt;&lt;br /&gt;How may I add the a driver to the region ?&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/402216?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 09:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12d9de51-ecbe-49c6-821c-2285f60331a4</guid><dc:creator>Ibrahim_Augury</dc:creator><description>&lt;p&gt;No problem&amp;nbsp;&lt;br /&gt;Is it possible to make this card private&amp;nbsp;&lt;br /&gt;So I may share the project with you&amp;nbsp;&lt;br /&gt;Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/398529?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 12:32:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e82dce-7e2f-477a-802c-a2d8077cd641</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to make sense of this error, unfortunately. Have you had any progress on your side? Can you share a bit more context and/or perhaps your project?&lt;/p&gt;
&lt;p&gt;PS: I am sorry for the delay. I will most likely not be able to get back to you tomorrow for any follow-up, but early next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/398064?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 10:33:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:014ffb72-ed70-4789-9a6c-f4cf790e52d1</guid><dc:creator>Ibrahim_Augury</dc:creator><description>&lt;p&gt;Thanks for the help&amp;nbsp;&lt;br /&gt;Although now after adding the suggested CONFIG i am getting an error while compiling&amp;nbsp;&lt;br /&gt;&lt;strong&gt;/opt/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.bfd: zephyr/libzephyr.a(flash_map_partition_manager.c.obj):(.rodata.default_flash_map+0xc): undefined reference to `__device_dts_ord_92&amp;#39;&lt;br /&gt;&lt;/strong&gt;Any idea why is that ?&amp;nbsp;&lt;br /&gt;Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/397949?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 16:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e200b2e7-443f-4d37-b0e2-dc591f04c75d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply. You can buypass this by setting &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/kconfig/index.html#CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK"&gt;CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK&lt;/a&gt;=y.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/397459?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 14:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75cb66c8-39be-4142-bead-4ef1d0583cf5</guid><dc:creator>Ibrahim_Augury</dc:creator><description>&lt;p&gt;Hi i found a change in this file&amp;nbsp;flash_map_partition_manager.c&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;/* The full list of partitions will be here cut down to partitions that&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; * are defined over devices with drivers enabled in Kconfig.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; */&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Which make any partition without a defined driver in kconfig cut down&lt;br /&gt;My question is how to config a custom driver in Kconfig ?&lt;br /&gt;Thanks a lot&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/397416?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 12:33:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2a00e4e-a8d6-4403-9776-f868386ea3c2</guid><dc:creator>Ibrahim_Augury</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	chosen {
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		nordic,pm-ext-flash = &amp;amp;augu_flash_w25n;
	};
.........
.........
&amp;amp;spi2 {
		status = &amp;quot;okay&amp;quot;;
		sck-pin = &amp;lt;19&amp;gt;; // gpio 0 pin 19
		mosi-pin = &amp;lt;32&amp;gt;; // gpio 1 pin 0
		miso-pin = &amp;lt;22&amp;gt;; // gpio 0 pin 22
		compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
		cs-gpios = &amp;lt;&amp;amp;gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
		augu_flash_w25n: augu_flash_w25n@0 {
			compatible = &amp;quot;wb,augu_flash_w25n&amp;quot;;
			reg = &amp;lt;0&amp;gt;;
			label = &amp;quot;AUGU_FLASH_W25N&amp;quot;;
			power_resources = &amp;lt;&amp;amp;flash_on&amp;gt;;
			spi-max-frequency = &amp;lt;8000000&amp;gt;;
			size = &amp;lt;0x40000000&amp;gt;;
			page_size = &amp;lt;2048&amp;gt;;
			block_size = &amp;lt;131072&amp;gt;;
			wp_gpios = &amp;lt;&amp;amp;gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			hold_gpios = &amp;lt;&amp;amp;gpio0 21 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
		};
	};
	
	
	&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hi Thank you for the quick replay ,&lt;br /&gt;Attached is my pm static file&amp;nbsp;&lt;br /&gt;also attached relevant&amp;nbsp; parts in the&amp;nbsp;DTS&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;mcuboot:
  address: 0x0
  size: 0xc000

mcuboot_primary:
  address: 0xc000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  sharers: 0x1
  size: 0x76000
  span: *id001

mcuboot_secondary:
  address: 0x82000
  size: 0x76000

internal_flash_storage:
  address: 0xF8000
  size: 0x8000  
  
external_flash:
  address: 0x0
  end_address: 0x40000000 
  device: augu_flash_w25n
  region: external_flash
  size: 0x40000000 

littlefs_storage:
  address: 0x0
  region: external_flash
  size: 0x75c0000

scratch_pad:
  address: 0x75c0000
  region: external_flash
  size: 0x3c0000

reserved:
  address: 0x7980000
  region: external_flash
  size: 0x100000

replace_blocks:
  address: 0x7A80000
  region: external_flash
  size: 0x560000

params:
  address: 0x7FE0000
  region: external_flash
  size: 0x20000&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PM after 2.0.1 is not recognizing the external flash area</title><link>https://devzone.nordicsemi.com/thread/397404?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2022 12:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a30e2ab-6d91-4620-8e11-56f9686ce3f2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The function flash_area_open() will return -ENOENT if the first parameter - ID - is unknown. I do not know enough about the issue to say more about what is happening in your case though. Perhaps you can elaborate a bit on your configuration and potential steps to reproduce?&lt;/p&gt;
&lt;p&gt;PS: Based on what you write it does not seem like you are seeing the same issue, but there is currently problems with external flash in the nRF Connect SDK 2.1.x releases that you may want to be aware of. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93947/nrf9160---mcuboot-fails-to-swap-image-when-using-external-spi-nor-flash-using-spm/396021"&gt;this post&lt;/a&gt; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>