<?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>MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112459/mcuboot-with-serial</link><description>I am trying to get MCUBOOT working with project based on the Audio_DK base, where we need to do firmware update over UART/Serial interface. 
 
 I have added the following to the prj.conf 
 
 CONFIG_BOOTLOADER_MCUBOOT=y 
 
 #use external flash chip 
 CONFIG_AUDIO_DFU</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jul 2024 18:27:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112459/mcuboot-with-serial" /><item><title>RE: MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/thread/491672?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 18:27:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04af5d16-1a99-48e6-983a-bae9929a7ac4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;A customer makes it work for them in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/102714/nrf5340-mcuboot-is-incompatible-with-packetcraft-and-large-application/441938"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/thread/491663?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2024 17:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ef13f9-661f-46f2-8411-f84657ff7731</guid><dc:creator>trampas</dc:creator><description>&lt;p&gt;Thanks for the help but it appears this does not work with nRF5340 and two cores:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96041/build-mcuboot-with-config_single_application_slot-y-is-failed"&gt;Build mcuboot with CONFIG_SINGLE_APPLICATION_SLOT=y is failed&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also it does not look like VSCode intellisense works with MCUBoot.&amp;nbsp; &amp;nbsp;Looks like Nordic has lots of work to do...&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/thread/491129?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 13:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2515a944-0687-4ee9-a923-00fbf2f472cf</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="trampas"]I am now trying to figure out how to configure the serial recovery mode.&amp;nbsp;[/quote]
&lt;p&gt;Please take a look at&amp;nbsp;&lt;span&gt;this&amp;nbsp;course&amp;nbsp;&lt;/span&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For&amp;nbsp;the UART serial recovery mode, I use the&amp;nbsp;overlay-serial-UART.conf to include&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/lesson8/inter_less8_exer2_solution/prj.conf"&gt;the relevant configs&lt;/a&gt;&lt;span&gt;&amp;nbsp;and add &lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/blob/main/lesson8/inter_less8_exer2_solution/child_image/mcuboot.conf"&gt;these configs&lt;/a&gt; to &lt;a title="overlay-mcuboot_external_flash.conf" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/applications/nrf5340_audio/dfu/conf/overlay-mcuboot_external_flash.conf"&gt;overlay-mcuboot_external_flash.conf&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_shared.dtsi#L88-L89"&gt;these lines&lt;/a&gt;&lt;span&gt;&amp;nbsp;to &lt;a title="overlay-dfu_external_flash.overlay" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/applications/nrf5340_audio/dfu/conf/overlay-dfu_external_flash.overlay"&gt;overlay-dfu_external_flash.overlay&lt;/a&gt;&amp;nbsp;in my test project.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="trampas"]Additionally just to make things hard, the console UART is not the same UART we want to use for serial recovery.[/quote]
&lt;p&gt;The uart-mcumgr setting is &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nordic/nrf5340_audio_dk/nrf5340_audio_dk_nrf5340_cpuapp_common.dtsi#L13"&gt;here&lt;/a&gt;. You can overwrite it with an overlay file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/thread/490955?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 20:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c47ac4-4ce0-438e-95e1-0ecedb31f61a</guid><dc:creator>trampas</dc:creator><description>&lt;p&gt;I am using 2.6.1&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The first issue was that the the overlay-mcuboot_external_flash.conf was not being used. I had to put a mcuboot.conf in the child_image directory and copy the configuration over to this file.&amp;nbsp; I assume this might be a &amp;quot;feature&amp;quot; of the more recent zephyr/ncs....&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;The second issue is we were using the hci-ipc for the second core, which used all the flash and did not leave enough room for the b0n bootloader.&amp;nbsp; I had to change configuration, remove logging, etc until I got size down where the b0n would fit.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The third issue was after all this the processor would not boot.&amp;nbsp; This appeared to be because the external flash chip was configured wrong.&amp;nbsp; As it turns out the overlay, in dfu/conf/overlay-dfu_esternal_flash.overlay, was being used and was setup wrong.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Now I have the application compiling and booting again.&amp;nbsp; I am now trying to figure out how to configure the serial recovery mode.&amp;nbsp; For this project we are not doing OTA but only serial firmware update.&amp;nbsp; There seems to be little information on how from the application to boot into the serial recovery mode.&amp;nbsp; Additionally just to make things hard, the console UART is not the same UART we want to use for serial recovery.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MCUBOOT with serial</title><link>https://devzone.nordicsemi.com/thread/490947?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 17:45:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60a9b3f-9089-49f8-92fb-bb48b01e3ceb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `rodata&amp;#39; will not fit in region `FLASH&amp;#39;&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `FLASH&amp;#39; overflowed by 2076 bytes[/quote]
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109686/nrf5340-audio-application-fota-problem-with-latest-sdk/476288"&gt;this answer&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj): in function `k_sleep&amp;#39;:&lt;br /&gt;D:/Projects/Remington/reach-handpiece-wksp/handpiece-fw/reach_hp/build/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep&amp;#39;&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: D:/Projects/Remington/reach-handpiece-wksp/handpiece-fw/reach_hp/build/mcuboot/zephyr/include/generated/syscalls/kernel.h:135: undefined reference to `z_impl_k_sleep&amp;#39;[/quote]
&lt;p&gt;Sees missing this&amp;nbsp;&lt;a title="overlay-mcuboot_external_flash.conf" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/applications/nrf5340_audio/dfu/conf/overlay-mcuboot_external_flash.conf"&gt;overlay-mcuboot_external_flash.conf&lt;/a&gt;&lt;/p&gt;
[quote user=""]c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_config_0+0x0): undefined reference to `__device_dts_ord_151&amp;#39;[/quote]
&lt;p&gt;Seems missing this&amp;nbsp;&lt;a title="overlay-dfu_external_flash.overlay" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/applications/nrf5340_audio/dfu/conf/overlay-dfu_external_flash.overlay"&gt;overlay-dfu_external_flash.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I followed this&amp;nbsp;course &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/topic/exercise-1-dfu-over-uart/&lt;/a&gt;&amp;nbsp;to modify the v2.6.1 nrf5340_audio and here is my test project &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5340_5F00_audio_5F00_UART_5F00_recovery.7z"&gt;devzone.nordicsemi.com/.../nrf5340_5F00_audio_5F00_UART_5F00_recovery.7z&lt;/a&gt; &amp;nbsp;for UART&amp;nbsp;Serial recovery.&amp;nbsp;&lt;span&gt;It will get into UART recovery mode by holding BTN4 while resetting the Audio DK. Then LED1 will light on Blue to indicate the Audio DK gets into the recovery mode.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&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/pastedimage1719432518945v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>