<?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>Standalone app runs but adding MCUboot kills all serial output</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125956/standalone-app-runs-but-adding-mcuboot-kills-all-serial-output</link><description>Environment: SDK v3.1.1 with a custom board based on the nRF52840. 
 I wrote a test application that I&amp;#39;ve been using to verify the hardware on a custom nRF52840 board. I have a DTS overlay and code in place to test the interfaces, GPIO&amp;#39;s, etc. that we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Dec 2025 15:07:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125956/standalone-app-runs-but-adding-mcuboot-kills-all-serial-output" /><item><title>RE: Standalone app runs but adding MCUboot kills all serial output</title><link>https://devzone.nordicsemi.com/thread/556260?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2025 15:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5977b3-6405-4103-9b02-fd54d9168cbd</guid><dc:creator>Dave Littell</dc:creator><description>&lt;p&gt;Ah!&amp;nbsp; The Magic!&amp;nbsp; My hardware designers took liberties and changed a few things relative to the DK.&amp;nbsp; Those changes have cost us time and again.&amp;nbsp; Creating the mcuboot.overlay seems to have made all the difference.&amp;nbsp; There are a couple of things I noticed in the output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting MCUboot v2.1.0-dev-9b4ae4cbc9e2 ***
*** Using nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Image index: 0, Swap type: none
I: Bootloader chainload address offset: 0xc000
I: Image version: v0.1.0
▒Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
[00:00:00.000,305] &amp;lt;err&amp;gt; qspi_nor: JEDEC id [ff ff ff] expect [c2 28 17]
*** Booting My Application v0.1.0 - unknown commit ***
*** Using nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Everything looks good except for the couple of lines following the &amp;quot;Image version: ...&amp;quot;.&amp;nbsp; Is the first &amp;quot;Hello World&amp;quot; an artifact of the logging versus the printf() timing in the app&amp;#39;s main()?&amp;nbsp; Next, the error log from qspi_nor is unexpected as I explicitly disabled qspi in the app&amp;#39;s DTS overlay, so it shouldn&amp;#39;t be probing the QSPI NOR device, right?&lt;/p&gt;
&lt;p&gt;(As a suggestion, maybe Intermediate Lesson 9 could be improved to highlight that MCUboot needs the same config and DTS overlay changes that might have been done in the app.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standalone app runs but adding MCUboot kills all serial output</title><link>https://devzone.nordicsemi.com/thread/556210?ContentTypeID=1</link><pubDate>Thu, 04 Dec 2025 07:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18f13429-f5d6-4c45-b17c-c1aafb87ce53</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;Happy to help! You mentioned having a DTS overlay for your application, does this overlay change the default UART pinout to match your hardware by any chance? As with the clock configuration, the DT overlay for the application will not be automatically applied to the MCUboot build. If you need to modify the pin assignments in the bootloader to get log output, you can create a file named mcuboot.overlay in your sysbuild directory.&lt;br /&gt;(Note: A pristine build is required after adding a new file to the sysbuild folder)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standalone app runs but adding MCUboot kills all serial output</title><link>https://devzone.nordicsemi.com/thread/556156?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2025 15:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ef32ec8-b671-4ac0-8fc8-c7dab1135d99</guid><dc:creator>Dave Littell</dc:creator><description>&lt;p&gt;Hi Vidar!&amp;nbsp; Thanks very much for the quick reply.&amp;nbsp; Adding that line to mcuboot.conf did seem to help but something&amp;#39;s still not quite right.&amp;nbsp; Here&amp;#39;s the output following a reset.&amp;nbsp; (Note that no output appears if the board is power-cycled, it must be reset to print anything.&amp;nbsp; Also, resets are now unreliable - sometimes they work, sometimes they fail.&amp;nbsp; This wasn&amp;#39;t the case before incorporating MCUBoot.)&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Hello World from CMAKE_SOURCE_DIR/src/main.c::main()!
[00:00:00.000,335] &amp;lt;err&amp;gt; ADT7310: Invalid device ID
[00:00:00.000,549] &amp;lt;err&amp;gt; ADT7310: Invalid device ID
*** Booting My Application v0.1.0 - unknown commit ***
*** Using nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a few problems with this output.&amp;nbsp; First, I expected some startup banner and output from MCUBoot similar to what&amp;#39;s shown in Intermediate Lesson 9 Exercise 1.&amp;nbsp; Second, the output from the application itself (&amp;quot;Hello World ...&amp;quot;) occurs before the &amp;quot;Booting My Application ...&amp;quot; and &amp;quot;Using nRF Connect ...&amp;quot; banners.&amp;nbsp; Third, the application just prints its &amp;quot;Hello World ...&amp;quot; at 1Hz in a loop.&amp;nbsp; No more output occurs after the &amp;quot;Using nRF Connect ...&amp;quot; banner.&lt;/p&gt;
&lt;p&gt;Also, from reset to reset the output may differ.&amp;nbsp; Sometimes the &amp;quot;*** ...&amp;quot; banner lines complete as shown but other times only a portion appears.&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Standalone app runs but adding MCUboot kills all serial output</title><link>https://devzone.nordicsemi.com/thread/556133?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2025 14:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9a5cd20-8881-43ef-b567-8aa275c02dff</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;It seems like you are only selecting the RC oscillator as your LF clock source for your application, but not in the bootloader. This means the bootloader will default to using the crystal oscillator, and if the crystal is not mounted on the board, then the bootloader will enter an infinite loop waiting on the crystal to ramp up. &amp;nbsp;Please try to add&amp;nbsp;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y to your mcuboot configuration in &lt;span&gt;sysbuild/mcuboot.conf and see if that helps. Do make the RC oscillator the default for all projects you can define your own board (assuming you are currently using the nrf52840dk as your build target).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>