<?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>BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120384/ble-ota-using-external-flash-e-image-in-the-primary-slot-is-not-valid-e-unable-to-find-bootable-image</link><description>Hi, I&amp;#39;m trying to use BLE OTA with an external memory due to my application is too big to do it only with the internal memory. When I use OTA config with internal memory, all works ok, but when I try to use it with the external, I get the following error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Apr 2025 08:45:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120384/ble-ota-using-external-flash-e-image-in-the-primary-slot-is-not-valid-e-unable-to-find-bootable-image" /><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530397?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2025 08:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa61f088-e202-4bda-91e7-937cc89ae85f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Glad to hear that it worked out!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530329?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 21:31:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5049f3a-3ef9-4c0c-af6e-3b2782c36124</guid><dc:creator>Juandgarcia</dc:creator><description>&lt;p&gt;Hi, it&amp;#39;s fixed. I was selecting the wrong board at the build config.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530298?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 14:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c50ac4a-7206-41fc-9e35-105e702c401e</guid><dc:creator>Juandgarcia</dc:creator><description>&lt;p&gt;Still the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743605912422v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Maybe I&amp;#39;m missing something in the prj build??&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743605967530v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743605987521v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530292?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 14:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d382f4b8-4da9-439d-bb85-b096828655c3</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for sharing. It looks like the configuration is not picked up for your board.&lt;/p&gt;
&lt;p&gt;Try renaming &amp;quot;child_image/mcuboot/boards/mcuboot.conf&amp;quot; to &amp;quot;&lt;span&gt;child_image/mcuboot/boards/nrf52840dk_nrf52840.conf&amp;quot; and see if this now works better.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530281?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 14:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f9d4186-5193-4b15-9b44-f18cc99b9484</guid><dc:creator>Juandgarcia</dc:creator><description>&lt;p&gt;Hi, removed the withspace and deleted the build, but still have the same error. I&amp;#39;m attaching my tree, if maybe there is something wrong.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743603699678v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE OTA using external flash, E: Image in the primary slot is not valid!
E: Unable to find bootable image</title><link>https://devzone.nordicsemi.com/thread/530268?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 13:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cafd0bd-90b1-47b3-bbfb-3ac5a9ce5c4e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The run-time output here:&lt;/p&gt;
[quote user=""]W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=128 - too small?&lt;br /&gt;[/quote]
&lt;p&gt;does not align with the configuration that you shared here:&lt;/p&gt;
[quote user=""]&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_MAX_IMG_SECTORS&lt;/span&gt;&lt;span&gt;= 256&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;This also has a whitespace after the equal sign, which will cause a problem when configuring your project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you double-check that your mcuboot child image indeed has this configuration set? It might be relevant to delete the build and reconfigure the project to ensure everything is reloaded properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>