<?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>Using QSPI flash to store image on OTA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105066/using-qspi-flash-to-store-image-on-ota</link><description>I&amp;#39;m using the nrf/tests/modules/mcuboot/external_flash as a template to use the external flash to OTA my Pinnacle 100 module. By allowing automatic generation of the partitions, it creates the primary and secondary partitions in internal flash and OTA</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Oct 2023 09:05:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105066/using-qspi-flash-to-store-image-on-ota" /><item><title>RE: Using QSPI flash to store image on OTA</title><link>https://devzone.nordicsemi.com/thread/452744?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 09:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1caf083c-b54e-42a4-9347-d7826e68fbcb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Randall,&amp;nbsp;&lt;br /&gt;I&amp;#39;m not so sure&amp;nbsp;how&amp;nbsp;&lt;span&gt;mcuboot_primary_1&amp;nbsp;and&amp;nbsp;mcuboot_secondary_1&amp;nbsp; would be related to your dts file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error 5 in the log &amp;quot;Image upload inspect failed: 5&amp;quot; means :&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;MGMT_ERR_ENOENT&amp;nbsp;&amp;nbsp;&lt;/span&gt;/** No such file/entry. */&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1698397210790v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems that the mcu_mgr couldn&amp;#39;t find the&amp;nbsp;mcuboot_secondary for some reason.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try simply compile the test project as the nRF52840 DK board (instead of the Pinnacle) to see if it can access the external flash and do DFU update ?&lt;br /&gt;&lt;br /&gt;Could you try to remove&amp;nbsp;zephyr,external-flash = &amp;amp;mx25r64; in the iot_module.dts file ? I can see that&amp;nbsp;you have both:&amp;nbsp;&lt;br /&gt;zephyr,external-flash = &amp;amp;mx25r64;&lt;br /&gt;nordic,pm-ext-flash = &amp;amp;mx25r64;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using QSPI flash to store image on OTA</title><link>https://devzone.nordicsemi.com/thread/452657?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 15:31:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aea35ebb-8611-494e-9694-e589e102d6e9</guid><dc:creator>Randall</dc:creator><description>&lt;p&gt;My yml file was an amalgam of the information in my .dts file which I copied over from the pinnacle 100 DVK dts file, what was in the generated partition.yml file from previous builds and what was in the test directory for mcuboot using extneral flash.&amp;nbsp; So there is probably a fair amount of contamination.&amp;nbsp; So I took your yml file and modified it to be consistent with my .dts file (attached).&amp;nbsp; But i still get the same thing.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0246.pm_5F00_static.yml.txt"&gt;devzone.nordicsemi.com/.../0246.pm_5F00_static.yml.txt&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5127.4723_5F00_iot_5F00_module.dts"&gt;devzone.nordicsemi.com/.../5127.4723_5F00_iot_5F00_module.dts&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using QSPI flash to store image on OTA</title><link>https://devzone.nordicsemi.com/thread/452521?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 11:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399c6dec-8c76-427a-8037-669dc10390f0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Randall,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Attached is the partitions.yml when I build the for nRF52840 DK:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0xc200
  end_address: 0x100000
  region: flash_primary
  size: 0xf3e00
external_flash:
  address: 0xf4000
  end_address: 0x800000
  region: external_flash
  size: 0x70c000
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0xc000
  end_address: 0xc200
  placement:
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0xc000
  end_address: 0x100000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - app
  region: flash_primary
  size: 0xf4000
  span: *id001
mcuboot_primary_app:
  address: 0xc200
  end_address: 0x100000
  orig_span: &amp;amp;id002
  - app
  region: flash_primary
  size: 0xf3e00
  span: *id002
mcuboot_secondary:
  address: 0x0
  device: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0xf4000
  placement:
    align:
      start: 0x4
  region: external_flash
  share_size:
  - mcuboot_primary
  size: 0xf4000
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  region: sram_primary
  size: 0x40000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As you can find there was no&amp;nbsp;mcuboot_primary_1 and no&amp;nbsp;mcuboot_secondary_1 partition.&amp;nbsp;&lt;br /&gt;Could you please explain why you want to have that in your pm_static.yml ?&amp;nbsp;&lt;br /&gt;Usually have such partitions when we have to update multiple cores, for example on the thingy53.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Are simply copying the&amp;nbsp;pm_static_thingy53_nrf5340_cpuapp.yml to your project ? If you are, then it&amp;#39;s not correct. It&amp;#39;s for nRF5340 not nRF52840.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>