<?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>Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87295/busfault-when-mcuboot-reads-network-core-secondary-image-header-in-external-flash</link><description>Hello there, 
 I&amp;#39;m stuck on an issue when trying to perform a multi-image firmware upgrade on nrf5340dk when having both secondary images on external flash. I&amp;#39;m building the project with MCUboot as the immutable bootloader, setting it for multi-image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2023 12:05:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87295/busfault-when-mcuboot-reads-network-core-secondary-image-header-in-external-flash" /><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/417662?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 12:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:037ecef3-09e6-4cc9-a681-ee536551859d</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Thanks ! Yes, I tried one time and seems to work. Thanks !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/417158?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 15:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:888f0fc1-2774-455b-bc91-48dcf13785dc</guid><dc:creator>jithurm</dc:creator><description>&lt;p&gt;It seems that this is now fixed in NCS 2.3.0, let&amp;#39;s close this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/398057?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 10:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c20472c2-2526-452e-9066-11fa1791d2df</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Thanks Hung.&lt;/p&gt;
&lt;p&gt;Actually I switched recentrly to multi-image simultaneous upgrade of App and Net Core. Nevertheless, if you place the mcuboot_secondary and&amp;nbsp;&lt;span&gt;mcuboot_secondary_1 in the external SPI/QSPI flash the problem with the bus fault still happen, for both the core. The App core can be fixed with the patch at the link posted 7 months ago&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/197"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/197&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Unfortunately the problem is still present in the netcore, unless you adopt the modification indicated in this ticket.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Looking around the devzone, it seems that some people are affected by these bugs, which have been around for some time now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But at this point, i will create another ticket for the same problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/398051?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 10:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ad3707d-dcb5-476e-b6c0-52a9b8b83c58</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Riccardo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Fix has been implemented for this issue but it seems it caused another issue in SDK v2.1.x .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;If you have a look at &lt;a href="https://devzone.nordicsemi.com/support-private/support/298626"&gt;this case&lt;/a&gt;&amp;nbsp;to check if it&amp;#39;s the same issue as yours and if the workaround works for you. There is more discussion &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/91180/nrf9160dk-fota-using-external-flash-ncs-2-0-2/394765"&gt;here&lt;/a&gt;.&lt;br /&gt;I would suggest to create a new ticket (if you haven&amp;#39;t) for your own issue because you are not using multi-image so I am suspecting it&amp;#39;s not the same problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/397980?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 22:06:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18739977-1b3f-40e3-b2d5-0c03f4b3dd6d</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Any news about this problem ? Will it get fixed in some version ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/372514?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 09:18:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8d81e38-162f-435e-b714-4bb231b54002</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I have experienced the same issue with same configuration excpet i am not using the multi-image feature.&lt;/p&gt;
&lt;p&gt;I saw that a patch has been developed.&lt;/p&gt;
&lt;p&gt;Would it be possible to know when it will be part of the new nordic Connect SDK ? Will it be only available with the version 2.x.x or there will be also a 1.9.2 ?&lt;/p&gt;
&lt;p&gt;Thanks in advance !&lt;/p&gt;
&lt;p&gt;Kind regads&lt;/p&gt;
&lt;p&gt;Riccardo Gaiati&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/365819?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 14:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:535c7817-3846-4cfb-9145-c9a1fff08132</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Thanks Jimmy for the update. I have reported to the team and we confirmed it&amp;#39;s a bug. The github issue is also update :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/365236?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 14:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4f44362-8db1-4375-81b8-555e9116e501</guid><dc:creator>jithurm</dc:creator><description>&lt;p&gt;I found a fix to the problem : &lt;/p&gt;
&lt;p&gt;In the loader.c file in mcuboot/boot/bootutil/src, I just completely removed these lines from the file&amp;nbsp; :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if defined(CONFIG_SOC_NRF5340_CPUAPP) &amp;amp;&amp;amp; defined(PM_CPUNET_B0N_ADDRESS)
        /* If the update is valid, and it targets the network core: perform the
         * update and indicate to the caller of this function that no update is
         * available
         */
        if (upgrade_valid &amp;amp;&amp;amp; reset_addr &amp;gt; PM_CPUNET_B0N_ADDRESS) {
            uint32_t fw_size = hdr-&amp;gt;ih_img_size;
            BOOT_LOG_INF(&amp;quot;Starting network core update&amp;quot;);
            int rc = pcd_network_core_update(vtable, fw_size);
            if (rc != 0) {
                swap_type = BOOT_SWAP_TYPE_FAIL;
            } else {
                BOOT_LOG_INF(&amp;quot;Done updating network core&amp;quot;);
#if defined(MCUBOOT_SWAP_USING_SCRATCH) || defined(MCUBOOT_SWAP_USING_MOVE)
                /* swap_erase_trailer_sectors is undefined if upgrade only
                 * method is used. There is no need to erase sectors, because
                 * the image cannot be reverted.
                 */
                rc = swap_erase_trailer_sectors(state,
                        secondary_fa);
#endif
                swap_type = BOOT_SWAP_TYPE_NONE;
            }
        }
#endif /* CONFIG_SOC_NRF5340_CPUAPP */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In addition of this patch : &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/197"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/197&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I can now update app core and net core both at the same time or individually.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t really understand why this is still left here since now the upgrade of the network core is done after the network core primary image is copied in RAM using MCUboot hooks and defined nrf53_hooks.c .To me it seems to be out of date code that should be removed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/365193?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 12:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96fc35d7-8106-4b1a-92a5-bd4d8017e3df</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jimmy,&amp;nbsp;&lt;br /&gt;Thanks for giving us update on this. I have reported the issue internally.&lt;/p&gt;
&lt;p&gt;One small issue is that&amp;nbsp;&lt;span&gt;Andrzej&lt;/span&gt;&amp;nbsp;(nvlsianpu) is on leave and will be back in a month so there will be some delay.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Busfault when MCUboot reads Network core secondary image header in external flash</title><link>https://devzone.nordicsemi.com/thread/364765?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 15:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df94b275-c256-4afd-9662-2f96f45f77fd</guid><dc:creator>jithurm</dc:creator><description>&lt;p&gt;This &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84566/mcuboot-reading-image-header-from-slot-located-in-external-flash"&gt;issue&lt;/a&gt; seems to be related, however it has not received any updates from developers yet. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>