<?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 enter with button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111399/mcuboot-enter-with-button</link><description>hi support team， 
 i was testing smp_svr, i want to add button to my application that once i press the button and reset, the device will stay in mcuboot (serial port mode)and i can program my device with serial port, liking our old sdk bootloader----examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2024 09:11:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111399/mcuboot-enter-with-button" /><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/486600?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 09:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f39b212-628f-4983-95e8-4c2f800dea4b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="William.wei"]For assert_tracker_v2, with borad thingy91 it is working now.&amp;nbsp;[/quote]
&lt;p&gt;The Thingys has the PID and VID set correctly. See &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/3c2f2ff12bc20625cd65730b6036d061de4da5f7/boot/zephyr/boards/thingy91_nrf52840.conf#L33-L34"&gt;here&lt;/a&gt;.&lt;/p&gt;
[quote user="William.wei"]and it is clear that we can program device with mcuBoot:[/quote]
&lt;p&gt;The sentence means that we support MCUboot programming with nrfutil, but only for a subset of our devices (which have specific VIDs and PIDs). &lt;br /&gt;We do not yet support detecting other devices with SMP enabled. I asked about this in &lt;a href="https://nordicsemi.atlassian.net/browse/NCSIDB-969"&gt;https://nordicsemi.atlassian.net/browse/NCSIDB-969&lt;/a&gt;, and got to know that it was not supported yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/486594?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 08:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58891e7-3448-4a23-aaae-0f4c9998e5e7</guid><dc:creator>William.wei</dc:creator><description>[quote userid="106736" url="~/f/nordic-q-a/111399/mcuboot-enter-with-button/486584"]and it does not officially support SMP yet[/quote]
&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;it doesn&amp;#39;t make any sense.&lt;/p&gt;
&lt;p&gt;For assert_tracker_v2, with borad thingy91 it is working now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;how does this command work?&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;nrfutil device program --firmware C:\ncs\v2.6.0\nrf\applications\asset_tracker_v2\build\zephyr\app_signed.hex --traits mcuBoot&lt;br /&gt;[00:00:01] ###### 100% [5/5 THINGY91_F6ABB02220E9] Programmed&lt;/p&gt;
&lt;p&gt;and it is clear that we can program device with mcuBoot:&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/pastedimage1717059053266v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/486584?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 08:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adb88f31-e7a9-4cc8-a317-34f385ef960d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;If the command does not work, i think I will just suggest that you use one of the other tools for now.&lt;/p&gt;
&lt;p&gt;I spoke to our nrfutil developers, and it does not officially support SMP yet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/486545?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 03:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a85bc9-3a70-4bfd-a9b5-820cd95b115b</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i was still not able to program device as below: however mcumgr is working after nrfutil device program fails&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;nrfutil device x-execute -o program --args &amp;#39;firmware=C:\ncs\v2.6.0\test\peripheral_uart\build\zephyr\dfu_application.zip&amp;#39; --device-filter &amp;#39;serialNumber=683014854&amp;#39; --override-traits mcuBoot --inject &amp;#39;mcuBoot[COM23]=0&amp;#39;&lt;br /&gt;Error: No devices with requested filter found&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;&amp;gt;mcumgr -c myCOM image upload C:\ncs\v2.6.0\test\peripheral_uart\build\zephyr\app_update.bin&lt;br /&gt;&amp;#39;-c&amp;#39; is not recognized as an internal or external command,&lt;br /&gt;operable program or batch file.&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;&amp;gt;mcumgr -c myCOM image upload C:\ncs\v2.6.0\test\peripheral_uart\build\zephyr\app_update.bin&lt;br /&gt;&amp;#39;-c&amp;#39; is not recognized as an internal or external command,&lt;br /&gt;operable program or batch file.&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;mcumgr conn add myCOM type=&amp;quot;serial&amp;quot; connstring=&amp;quot;dev=COM23,baud=115200,mtu=256&amp;quot;&lt;br /&gt;Connection profile myCOM successfully added&lt;/p&gt;
&lt;p&gt;C:\Users\William&amp;gt;mcumgr -c myCOM image upload C:\ncs\v2.6.0\test\peripheral_uart\build\zephyr\app_update.bin&lt;br /&gt; 6.31 KiB / 219.90 KiB [=&amp;gt;------------------------------------------------------------------] 2.87% 2.38 KiB/s 01m29s&lt;br /&gt;C:\Users\William&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it is really hard to findout what&amp;#39;s wrong in my command.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;snr 683014854 should be correct as i can select this jlink to program:&lt;/p&gt;
&lt;p&gt;C:\ncs\v2.6.0\test\peripheral_uart&amp;gt;west flash --recover --snr 683014854&lt;br /&gt;-- west flash: rebuilding&lt;br /&gt;[0/4] Performing build step for &amp;#39;mcuboot_subimage&amp;#39;ninja: no work to do.&lt;/p&gt;
&lt;p&gt;[3/3] Completed &amp;#39;mcuboot_subimage&amp;#39;&lt;br /&gt;-- west flash: using runner nrfjprog&lt;br /&gt;-- runners.nrfjprog: reset after flashing requested&lt;br /&gt;-- runners.nrfjprog: Recovering and erasing all flash memory.&lt;br /&gt;Recovering device. This operation might take 30s.&lt;br /&gt;Erasing user code and UICR flash areas.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regrads,&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/485676?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 15:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:676d59b5-be13-44db-8ac8-96a6619e8093</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;nrfutil is searching for VID and PID of the device to match a pre-set number of PIDs.&lt;br /&gt;So you have three alternatives&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use another tool for the programming. See &lt;a href="https://docs.zephyrproject.org/latest/services/device_mgmt/mcumgr.html"&gt;here&lt;/a&gt; for a list&lt;/li&gt;
&lt;li&gt;add PID and VID to your nRF52840&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span dir="ltr"&gt;nrfutil device x-execute -o program --args &amp;#39;firmware[file]=./dfu_application.zip&amp;#39; --device-filter &amp;#39;serialNumber=4254EFB4D8746FF6&amp;#39; --override-traits mcuBoot --inject &amp;#39;mcuBoot[vcom]=0&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/485535?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 07:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e14ae5d-fb5c-4cf7-a84f-252c5172f650</guid><dc:creator>William.wei</dc:creator><description>&lt;p&gt;Sorry Siguard,&lt;/p&gt;
&lt;p&gt;i was testing&amp;nbsp;nrfutil device program --firmware command. for now i am able to upgrade thingy91 as documents described.&lt;/p&gt;
&lt;p&gt;the documents is :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-util-unified-command-line-utility"&gt;One tool to rule them all: nRF Util becomes a unified command line utility&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but, when i was testing 52840 peripheral uart, i am not able to upgrade 52840 with serial_recovery mode in mcuboot, or smp over uart in application. i don&amp;#39;t know if it was code problem&amp;nbsp; or our tool is only supporting thingy91?&lt;/p&gt;
&lt;p&gt;&lt;img style="height:31px;max-height:31px;max-width:431px;" alt=" " height="31" src="https://devzone.nordicsemi.com/resized-image/__size/862x62/__key/communityserver-discussions-components-files/4/pastedimage1716448277405v1.png" width="430" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:195px;max-height:195px;max-width:454px;" alt=" " height="176" src="https://devzone.nordicsemi.com/resized-image/__size/908x390/__key/communityserver-discussions-components-files/4/pastedimage1716448354603v2.png" width="453" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:42px;max-height:42px;max-width:463px;" height="39" src="https://devzone.nordicsemi.com/resized-image/__size/926x84/__key/communityserver-discussions-components-files/4/pastedimage1716451645457v1.png" width="462" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;however for the mcumgr, i can upgrade successfully. i don;t know the difference.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;William.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mcuboot enter with button</title><link>https://devzone.nordicsemi.com/thread/485323?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 08:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9652d3-b47f-4cfc-8b09-7c2c58b289ef</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>