<?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>A build error occurs during serial recovery of nRF5340.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104332/a-build-error-occurs-during-serial-recovery-of-nrf5340</link><description>hello, 
 
 I am considering updating firmware via UART using MCUBoot for a module equipped with nRF5340. 
 
 I tried the sample below, but a build error occurs. 
 mcuboot_serial_recovery_uart 
 
 The build succeeds when I build with the nRF52840 board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Oct 2023 09:40:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104332/a-build-error-occurs-during-serial-recovery-of-nrf5340" /><item><title>RE: A build error occurs during serial recovery of nRF5340.</title><link>https://devzone.nordicsemi.com/thread/450788?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 09:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6353e241-3799-43c9-8bea-f71b339f7bec</guid><dc:creator>kudo</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;br /&gt;As you pointed out, I moved the sample and shortened the path and the build was successful.&lt;br /&gt;Thanks for your cooperation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A build error occurs during serial recovery of nRF5340.</title><link>https://devzone.nordicsemi.com/thread/448827?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 13:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09367a89-d836-4077-817d-f737115d1396</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not have a windows computer to test on at the moment, but I wonder if the issue here could be releated to path lenghs, as Windows is restrivtive about that. Can you try to&amp;nbsp;copy out the sample from my colleagues repo you have under &amp;quot;C:/ncs/nrf5340/samples_for_nrf_connect_sdk/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart/&amp;quot; so that the path gets shorter, perhaps to &amp;quot;C:/ncs/my_samples/mcuboot_serial_recovery_uart/&amp;quot; or similar and see if that helps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A build error occurs during serial recovery of nRF5340.</title><link>https://devzone.nordicsemi.com/thread/448728?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2023 01:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dfc3b1c-1e22-418f-86a1-ce2fc506e538</guid><dc:creator>kudo</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;The build steps I followed are below.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get a sample.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;git clone &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk.git"&gt;github.com/.../samples_for_nrf_connect_sdk.git&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Open the sample in VSCode&amp;#39;s nRF Connect.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;[Open an existing application] in [WELCOM]&lt;/li&gt;
&lt;li&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;C:\ncs\nrf5340\samples_for_nrf_connect_sdk\bootloader_samples\serial_recovery\mcuboot_serial_recovery_uar&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Build with nrf5340dk_nrf5340_cpuapp.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;[Add Build Configuration] of [mcuboot_serial_recovery_uart] in [APPLICATION]&lt;/li&gt;
&lt;li&gt;Board: nrf5340dk_nrf5340_cpuapp&lt;/li&gt;
&lt;li&gt;Configuration: Use build system default&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;I get a build error.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The build log is attached below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5340_5F00_serial_5F00_recovery_5F00_build_5F00_error.txt"&gt;devzone.nordicsemi.com/.../nrf5340_5F00_serial_5F00_recovery_5F00_build_5F00_error.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A build error occurs during serial recovery of nRF5340.</title><link>https://devzone.nordicsemi.com/thread/448648?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2023 12:35:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da088c74-9b93-4b6f-bddf-68b0464a787c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am able to build the unofficial &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart"&gt;MCUBoot Serial Recovery over UART Sample&lt;/a&gt;&amp;nbsp;for nrf5340dk_nrf5340_cpuapp with NCS 2.3.0 out of the box. Can you elaborate on how you are building and share the build log where it fails?&lt;/p&gt;
&lt;p&gt;(If you also want serial recovery on the net core you can refer to &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_netcore_serial_recovery"&gt;MCUboot netcore serial recovery&lt;/a&gt;. for that part.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>