<?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>mcumgr: The firmware doesn&amp;#39;t boot up after upload</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108597/mcumgr-the-firmware-doesn-t-boot-up-after-upload</link><description>Hi there, 
 I use MCUboot, and seemingly, the firmware update succeeds: 
 
 However, for some reason, the `image list` command yields no results: 
 
 Given the lack of image results, I couldn&amp;#39;t reproduce the steps of the guide, which I&amp;#39;ve tried to follow</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Mar 2024 07:12:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108597/mcumgr-the-firmware-doesn-t-boot-up-after-upload" /><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/472168?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2024 07:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a463ddc-31e2-425e-a01d-bbcbf224eebc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That explains it. You need to enable the CONFIG_SIGN_IMAGES option if you want the build system to automatically sign the application for you. If not, you will have to sign it yourself. MCUBoot will not boot an image that doesn&amp;#39;t have the image trailer and header.&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/472144?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 21:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9117d41-c630-4968-a653-727e577ec647</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Just figured it out!&lt;/p&gt;
&lt;p&gt;Removing&amp;nbsp;CONFIG_SIGN_IMAGES=n&amp;nbsp;from prj.conf made the application firmware run.&lt;/p&gt;
&lt;p&gt;Do you know why it solved the issue? Our firmware doesn&amp;#39;t need to be cryptographically signed, which is the reason why I added this line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471941?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2024 07:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bf1a569-cc3f-4d09-b9c9-40fb1b82ef27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The problem is that the bootloader is not finding any valid application to boot in the primary slot, but I&amp;#39;m not sure why. Does it work again as soon as you build without the static partition file? In that case, please compare the memory layouts between the 2 builds.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471811?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 13:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d100099f-14fd-4fed-917a-89f57067ac28</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Got it, thanks! I get the following via UART:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***
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
W: Failed reading image headers; Image=0
E: Unable to find bootable image
I: Enter the serial recovery mode&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471790?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 13:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:815a3a31-47e4-46c7-903c-5e230f0a652a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The logs are printed from your UART interface and are independent of your USB interface used for sending mcumgr commands. You can connect a serial terminal to the UART interface to view the logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471782?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929870cb-a5b0-471f-813e-1f924d9b708f</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;I&amp;#39;ve removed the Kconfig options and devicetree fragment I quoted in my previous post.&lt;/p&gt;
&lt;p&gt;Then I added the following MCUboot Kconfig options based on your attached example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=y
CONFIG_LOG_MODE_MINIMAL=y
CONFIG_LOG_DEFAULT_LEVEL=0
CONFIG_MCUBOOT_LOG_LEVEL_INF=y
CONFIG_CBPRINTF_NANO=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Finally, I executed mcumgr:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ mcumgr --conntype serial --connstring &amp;quot;/dev/ttyACM2,baud=115200&amp;quot; log show
Status: 8
Next index: 0
(no logs retrieved)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471770?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 11:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4dcefa-d242-4f94-a902-fb5c1a35737f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry&amp;nbsp;for not being clearer. I didn&amp;#39;t intend to suggest changing the mcumgr interface, you can continue using the USB interface for that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is an example where I have enabled logging over UART:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7367.hello_5F00_world_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../7367.hello_5F00_world_5F00_dfu.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471764?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 11:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fae7775-b222-4b02-bfae-a5cb62a958ab</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Yes, I have UART accessible, and I&amp;#39;ve just enabled the following Kconfig options in MCUboot:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_LINE_CTRL=y
CONFIG_UART_INTERRUPT_DRIVEN=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also added the following devicetree fragment:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        zephyr,uart-mcumgr = &amp;amp;uart0;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But all I see in the console is the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.3.99-ncs1-1 ***&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471740?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 09:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e33395c-4697-4691-9eea-94bb7b56de7f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you have any UART interfaces accessible on your board that you can use to get debug logs from the bootloader? If not, are you able to debug the bootloader to determine why it is not booting the application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471732?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 09:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf334ae-4e02-4573-9a76-313578884f1a</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Yes, I do flash the merged.hex file.&lt;/p&gt;
&lt;p&gt;Following is the build and flash log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; *  Executing task: nRF Connect: Build [pristine]: device/build/bar-n-right (active) 

Building device
west build --build-dir /home/laci/projects/firmware-barn/bar/device/build/bar-n-right /home/laci/projects/firmware-barn/bar/device --pristine --board bar-n-right --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/home/laci/projects/firmware-barn/bar -DCONF_FILE=/home/laci/projects/firmware-barn/bar/device/prj.conf -DOVERLAY_CONFIG=/home/laci/projects/firmware-barn/bar/device/prj.conf.overlays/bar-n-right.prj.conf

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/laci/projects/firmware-barn/bar/device
-- CMake version: 3.20.5
-- Found Python3: /home/laci/ncs/toolchains/7795df4459/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/laci/.cache/zephyr
-- Zephyr version: 3.3.99 (/home/laci/projects/firmware-barn/nrfconnect/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: bar-n-right
-- Found host-tools: zephyr 0.16.1 (/home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/laci/ncs/toolchains/7795df4459/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /home/laci/projects/firmware-barn/bar/boards/arm/bar-n-right/bar-n-right.dts
-- Generated zephyr.dts: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/dts.cmake
Parsing /home/laci/projects/firmware-barn/bar/device/Kconfig
Loaded configuration &amp;#39;/home/laci/projects/firmware-barn/bar/boards/arm/bar-n-right/bar-n-right_defconfig&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/bar/device/prj.conf&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/bar/device/prj.conf.overlays/bar-n-right.prj.conf&amp;#39;
Configuration saved to &amp;#39;/home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/include/generated/autoconf.h&amp;#39;

warning: Deprecated symbol CPLUSPLUS is enabled.


warning: Deprecated symbol LIB_CPLUSPLUS is enabled.


warning: Experimental symbol UDC_DRIVER is enabled.

-- Found GnuLd: /home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /home/laci/ncs/toolchains/7795df4459/usr/local/bin/python3.8 (found version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 

=== child image mcuboot -  begin ===
loading initial cache file /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /home/laci/projects/firmware-barn/nrfconnect/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.20.5
-- Found Python3: /home/laci/ncs/toolchains/7795df4459/usr/local/bin/python3.8 (found suitable exact version &amp;quot;3.8.2&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /home/laci/.cache/zephyr
-- Zephyr version: 3.3.99 (/home/laci/projects/firmware-barn/nrfconnect/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: bar-n-right
-- Found host-tools: zephyr 0.16.1 (/home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk)
-- Found Dtc: /home/laci/ncs/toolchains/7795df4459/usr/bin/dtc (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /home/laci/projects/firmware-barn/bar/boards/arm/bar-n-right/bar-n-right.dts
-- Found devicetree overlay: /home/laci/projects/firmware-barn/nrfconnect/nrf/modules/mcuboot/usb.overlay
-- Generated zephyr.dts: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/dts.cmake
Parsing /home/laci/projects/firmware-barn/nrfconnect/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/home/laci/projects/firmware-barn/bar/boards/arm/bar-n-right/bar-n-right_defconfig&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/nrfconnect/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/nrfconnect/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/bar/device/child_image/mcuboot.conf&amp;#39;
Merged configuration &amp;#39;/home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/laci/ncs/toolchains/7795df4459/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /home/laci/projects/firmware-barn/nrfconnect/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /home/laci/projects/firmware-barn/nrfconnect/zephyr/CMakeLists.txt:1865 (message):
  __ASSERT() statements are globally ENABLED


-- Found partition manager static configuration: /home/laci/projects/firmware-barn/bar/device/pm_static.yml
Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.
CMake Warning (dev) at /home/laci/ncs/toolchains/7795df4459/usr/local/share/cmake-3.20/Modules/GNUInstallDirs.cmake:236 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  c2usb/CMakeLists.txt:5 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- etl | Version string determined with git describe: 20.36.1
-- etl | Determined ETL version 20.36.1 from the git tag
-- Found Python: /usr/bin/python3.10 (found suitable version &amp;quot;3.10.12&amp;quot;, minimum required is &amp;quot;3&amp;quot;) found components: Interpreter 
Code generation to path &amp;quot;/home/laci/projects/firmware-barn/bar/device/c2usb/modules/hid-rp/hid-rp/hid/page&amp;quot; is complete.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right
-- west build: building application
[1/364] Preparing syscall dependency handling

[3/364] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (/home/laci/projects/firmware-barn/nrfconnect/zephyr), build: v3.3.99-ncs1-1
[1/217] Preparing syscall dependency handling

[2/217] Generating include/generated/version.h
-- Zephyr version: 3.3.99 (/home/laci/projects/firmware-barn/nrfconnect/zephyr), build: v3.3.99-ncs1-1
[207/217] Linking C executable zephyr/zephyr_pre0.elf

[211/217] Linking C executable zephyr/zephyr_pre1.elf

[217/217] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       55416 B        64 KB     84.56%
             RAM:       33216 B       256 KB     12.67%
        IDT_LIST:          0 GB         2 KB      0.00%
[15/364] Building CXX object c2usb/CMakeFiles/c2usb.dir/c2usb/usb/df/class/cdc_acm.cpp.obj
../../c2usb/c2usb/usb/df/class/cdc_acm.cpp: In member function &amp;#39;virtual void usb::df::cdc::acm::function::control_setup_request(usb::df::message&amp;amp;, const usb::df::config::interface&amp;amp;)&amp;#39;:
../../c2usb/c2usb/usb/df/class/cdc_acm.cpp:76:14: warning: unused variable &amp;#39;data_terminal_ready&amp;#39; [-Wunused-variable]
   76 |         bool data_terminal_ready = msg.request().wValue &amp;amp; 1;
      |              ^~~~~~~~~~~~~~~~~~~
../../c2usb/c2usb/usb/df/class/cdc_acm.cpp:77:14: warning: unused variable &amp;#39;request_to_send&amp;#39; [-Wunused-variable]
   77 |         bool request_to_send = msg.request().wValue &amp;amp; 2;
      |              ^~~~~~~~~~~~~~~
[28/364] Building CXX object c2usb/CMakeFiles/c2usb.dir/c2usb/port/zephyr/udc_mac.cpp.obj
In file included from /home/laci/projects/firmware-barn/nrfconnect/zephyr/include/zephyr/device.h:13,
                 from /home/laci/projects/firmware-barn/nrfconnect/zephyr/include/zephyr/drivers/usb/udc.h:16,
                 from ../../c2usb/c2usb/port/zephyr/udc_mac.hpp:23,
                 from ../../c2usb/c2usb/port/zephyr/udc_mac.cpp:11:
../../c2usb/c2usb/port/zephyr/udc_mac.cpp:43:10: warning: invalid conversion from &amp;#39;int (*)(const device*)&amp;#39; to &amp;#39;int (*)()&amp;#39; [-fpermissive]
   43 | SYS_INIT(udc_mac_preinit, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
/home/laci/projects/firmware-barn/nrfconnect/zephyr/include/zephyr/init.h:156:45: note: in definition of macro &amp;#39;SYS_INIT_NAMED&amp;#39;
  156 |                         .init_fn = {.sys = (init_fn_)},                        \
      |                                             ^~~~~~~~
../../c2usb/c2usb/port/zephyr/udc_mac.cpp:43:1: note: in expansion of macro &amp;#39;SYS_INIT&amp;#39;
   43 | SYS_INIT(udc_mac_preinit, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
      | ^~~~~~~~
[49/364] Building C object CMakeFiles/app.dir/src/bt_hid.c.obj
In file included from ../../src/bt_hid.c:5:
/home/laci/projects/firmware-barn/nrfconnect/zephyr/include/zephyr/usb/class/usb_hid.h:36:32: warning: &amp;#39;struct usb_setup_packet&amp;#39; declared inside parameter list will not be visible outside of this definition or declaration
   36 |                         struct usb_setup_packet *setup, int32_t *len,
      |                                ^~~~~~~~~~~~~~~~
../../src/bt_hid.c: In function &amp;#39;hid_mouse_init&amp;#39;:
../../src/bt_hid.c:315:13: warning: Macro is deprecated
  315 |     static const uint8_t mouse_movement_mask[ceiling_fraction(INPUT_REP_MOVEMENT_LEN, 8)] = {0};
      |             ^~~~~~~~~~~~~~~~~~~~~
../../src/bt_hid.c: In function &amp;#39;key_report_send&amp;#39;:
../../src/bt_hid.c:401:17: warning: unused variable &amp;#39;buffer&amp;#39; [-Wunused-variable]
  401 |         uint8_t buffer[INPUT_REP_MOVEMENT_LEN] = {0, 0, 5};
      |                 ^~~~~~
../../src/bt_hid.c:396:9: warning: unused variable &amp;#39;mouse_err&amp;#39; [-Wunused-variable]
  396 |     int mouse_err = 0;
      |         ^~~~~~~~~
../../src/bt_hid.c: At top level:
../../src/bt_hid.c:234:13: warning: &amp;#39;hid_mouse_init&amp;#39; defined but not used [-Wunused-function]
  234 | static void hid_mouse_init(void)
      |             ^~~~~~~~~~~~~~
[348/364] Linking CXX executable zephyr/zephyr_pre0.elf

[352/364] Linking CXX executable zephyr/zephyr_pre1.elf

[361/364] Linking CXX executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      459568 B     486912 B     94.38%
             RAM:       93556 B       256 KB     35.69%
        IDT_LIST:          0 GB         2 KB      0.00%
[364/364] Generating zephyr/merged.hex
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Build: device/build/bar-n-right (active) 

Building device
west build --build-dir /home/laci/projects/firmware-barn/bar/device/build/bar-n-right /home/laci/projects/firmware-barn/bar/device

[0/4] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;
ninja: no work to do.
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task: nRF Connect: Flash: device/build/bar-n-right (active) 

Flashing build/bar-n-right to 69665139
west flash -d /home/laci/projects/firmware-barn/bar/device/build/bar-n-right --skip-rebuild --dev-id 69665139

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /home/laci/projects/firmware-barn/bar/device/build/bar-n-right/zephyr/merged.hex
[ #################### ]  14.517s | Erase file - Done erasing                                                          
[ #################### ]   6.000s | Program file - Done programming                                                    
[ #################### ]   6.756s | Verify file - Done verifying                                                       
Applying system reset.
Run.
-- runners.nrfjprog: Board with serial number 69665139 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471704?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 08:25:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:929b79d5-210e-439c-87bc-779f5e43f5c6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="mlac"]I&amp;#39;ve copied&amp;nbsp;&lt;span&gt;$&lt;/span&gt;&lt;em&gt;&lt;span&gt;BUILD_DIR&lt;/span&gt;&lt;/em&gt;&lt;span&gt;/partitions.yml as&amp;nbsp;$APPLICATION_CONFIG_DIR/pm_static.yml, and the build is picking it up according to:&lt;/span&gt;[/quote]
&lt;p&gt;This is the correct approach, and the build log also confirms that the static partition file was applied correctly.&amp;nbsp;I don&amp;#39;t think this is related to your current issue.&lt;/p&gt;
[quote user="mlac"]But then, I can see MCUboot enumerating via USB and staying enumerated, never executing the application firmware.[/quote]
&lt;p&gt;This suggests that MCUBoot is not finding a bootable image. Did you&amp;nbsp;flash the merged.hex file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/471655?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 22:23:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e72dde17-19c4-4144-b4bd-fbf726ceb94c</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve copied&amp;nbsp;&lt;span class="pre"&gt;$&lt;/span&gt;&lt;em&gt;&lt;span class="pre"&gt;BUILD_DIR&lt;/span&gt;&lt;/em&gt;&lt;span class="pre"&gt;/partitions.yml as&amp;nbsp;$APPLICATION_CONFIG_DIR/pm_static.yml, and the build is picking it up according to:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pre"&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- Found partition manager static configuration: /home/laci/projects/firmware/uhk/device/pm_static.yml
Partition &amp;#39;mcuboot&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_pad&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_primary_app&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;mcuboot_secondary&amp;#39; is not included in the dynamic resolving since it is statically defined.
Partition &amp;#39;settings_storage&amp;#39; is not included in the dynamic resolving since it is statically defined.&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pre"&gt;But then, I can see MCUboot enumerating via USB and staying enumerated, never executing the application firmware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pre"&gt;The above log fragment is included before the MCUboot memory regions are printed, but afterward, they&amp;#39;re not included again before the application firmware&amp;#39;s memory regions are printed. I&amp;#39;m unsure whether it&amp;#39;s a problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pre"&gt;Am I missing something?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/470686?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 11:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c6ff18a-57c1-4583-b5b3-f018f7102bda</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Laci,&lt;/p&gt;
&lt;p&gt;Please try to use the same static partition file (&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/105251/warning-from-partition_manager-on-ncs-2-5-0"&gt;warning from partition_manager on NCS 2.5.0&lt;/a&gt;&amp;nbsp;) for your project(s) to ensure your memory layout is consistent across builds.&amp;nbsp;&amp;nbsp;&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: mcumgr: The firmware doesn't boot up after upload</title><link>https://devzone.nordicsemi.com/thread/470524?ContentTypeID=1</link><pubDate>Fri, 23 Feb 2024 20:29:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6124de94-bb39-45e9-9c81-397cacf90b02</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;In the meantime, I&amp;#39;ve realized that the size of&amp;nbsp;CONFIG_PM_PARTITION_SIZE_MCUBOOT and&amp;nbsp;boot_partition didn&amp;#39;t match and updated the partitions accordingly:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;flash0 {
    partitions {
        compatible = &amp;quot;fixed-partitions&amp;quot;;
        #address-cells = &amp;lt;1&amp;gt;;
        #size-cells = &amp;lt;1&amp;gt;;

        boot_partition: partition@0 {
            label = &amp;quot;mcuboot&amp;quot;;
            reg = &amp;lt;0x0 0x10000&amp;gt;;
        };
        slot0_partition: partition@10000 {
            label = &amp;quot;image-0&amp;quot;;
            reg = &amp;lt;0x10000 0x72000&amp;gt;;
        };
        slot1_partition: partition@82000 {
            label = &amp;quot;image-1&amp;quot;;
            reg = &amp;lt;0x82000 0x72000&amp;gt;;
        };
        scratch_partition: partition@f4000 {
            label = &amp;quot;image-scratch&amp;quot;;
            reg = &amp;lt;0xf4000 0x6000&amp;gt;;
        };
        storage_partition: partition@fe000 {
            label = &amp;quot;storage&amp;quot;;
            reg = &amp;lt;0xfe000 0x2000&amp;gt;;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But sadly, the issue persists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>