<?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>Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97442/not-able-to-communicate-with-the-bootloader-while-using-serial-recovery-example-on-custom-board</link><description>Hi, 
 I&amp;#39;ve integrated the nRF52840 SoC with my custom board(IMX6-ULL). I want to implement the serial recovery method for DFU mentioned in this GitHub project created by one of the Nordic Members which I got from another DevZone post. 
 https://github</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Mar 2023 13:22:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97442/not-able-to-communicate-with-the-bootloader-while-using-serial-recovery-example-on-custom-board" /><item><title>RE: Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/thread/416021?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 13:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9060a5de-277a-4d6b-9d2b-fafbb3cb11ef</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Glad to hear that you resolved the&amp;nbsp; issue and thank you for updating this here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/thread/416017?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 13:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a25eeab4-a67c-46ea-95b3-d5e6d920986a</guid><dc:creator>Tamizh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I resolved the issue and it&amp;#39;s working after putting the custom UART overlay file into the mcuboot.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/thread/416013?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 13:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b49ad411-fa08-4dc7-9bdc-17f6e707275a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the long response time I took here. I am still looking into this. I tried to build the same sample in NCS V2.2.0 and I am getting some issue and I have contacted my colleague (author of repository) about this.&lt;/p&gt;
&lt;p&gt;Have you included &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_MCUMGR_SMP_UART"&gt;CONFIG_MCUMGR_SMP_UART=&lt;/a&gt;y&lt;span&gt;&amp;nbsp;config in your file? And which SDK version are you trying with?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Abhijith&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/thread/414757?ContentTypeID=1</link><pubDate>Sat, 11 Mar 2023 13:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4973059e-ae25-4aac-9a5f-3aedac240066</guid><dc:creator>Tamizh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, I disabled the Mass Storage Mode. This is my connection profile&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@12050445:/real# ./mcumgr conn show
Connection profiles: 
  acm0: type=serial, connstring=&amp;#39;dev=/dev/ttymxc6,baud=115200,mtu=512&amp;#39;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And this is the detailed error I&amp;#39;m getting while attaching the log-level flag for mcumgr&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;root@12050445:/real# ./mcumgr -l debug -c acm0 image list
DEBU[2023-03-11 13:44:33.457] Using connection profile: name=acm0 type=serial connstring=dev=/dev/ttymxc6,baud=115200,mtu=512 
DEBU[2023-03-11 13:44:33.46] {add-nmp-listener} [serial_sesn.go:213] seq=66 
DEBU[2023-03-11 13:44:33.463] Encoded &amp;amp;{NmpBase:{hdr:{Op:0 Flags:0 Len:0 Group:1 Seq:66 Id:0}}} to:
00000000  a0                                                |.| 
DEBU[2023-03-11 13:44:33.466] Encoded:
00000000  00 00 00 01 00 01 42 00  a0                       |......B..| 
DEBU[2023-03-11 13:44:33.468] Tx NMP request: 00000000  00 00 00 01 00 01 42 00  a0                       |......B..| 
DEBU[2023-03-11 13:44:33.469] Base64 encoding request:
00000000  00 00 00 01 00 01 42 00  a0                       |......B..| 
DEBU[2023-03-11 13:44:33.47] Tx serial
00000000  06 09                                             |..| 
DEBU[2023-03-11 13:44:33.471] Tx serial
00000000  41 41 73 41 41 41 41 42  41 41 46 43 41 4b 44 31  |AAsAAAABAAFCAKD1|
00000010  4d 77 3d 3d                                       |Mw==| 
DEBU[2023-03-11 13:44:33.472] Tx serial
00000000  0a                                                |.| 
DEBU[2023-03-11 13:44:43.478] {remove-nmp-listener} [serial_sesn.go:213] seq=66 
DEBU[2023-03-11 13:44:43.481] goroutine 1 [running]:
mynewt.apache.org/newt/util.NewNewtError(0x430596, 0xb, 0xb)
	/home/rently/go/pkg/mod/mynewt.apache.org/newt@v0.0.0-20201028015609-b57111dbd19f/util/util.go:77 +0xa4
mynewt.apache.org/newt/util.ChildNewtError(0x4bf640, 0x200f8f8, 0x206aea0)
	/home/rently/go/pkg/mod/mynewt.apache.org/newt@v0.0.0-20201028015609-b57111dbd19f/util/util.go:103 +0x74
mynewt.apache.org/newtmgr/newtmgr/cli.imageStateListCmd(0x207f040, 0x20c8520, 0x0, 0x4)
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/newtmgr/cli/image.go:103 +0x168
github.com/spf13/cobra.(*Command).execute(0x207f040, 0x20c8440, 0x4, 0x4, 0x207f040, 0x20c8440)
	/home/rently/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:830 +0x1f4
github.com/spf13/cobra.(*Command).ExecuteC(0x207e640, 0x451d00, 0x2016940, 0x0)
	/home/rently/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x238
github.com/spf13/cobra.(*Command).Execute(...)
	/home/rently/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
main.main()
	/home/rently/mynewt-mcumgr-cli/mcumgr/mcumgr.go:94 +0xd8

goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
	/usr/local/go/src/runtime/sigqueue.go:168 +0x158
os/signal.loop()
	/usr/local/go/src/os/signal/signal_unix.go:23 +0x14
created by os/signal.Notify.func1.1
	/usr/local/go/src/os/signal/signal.go:151 +0x34

goroutine 9 [chan receive]:
main.main.func1(0x2016940)
	/home/rently/mynewt-mcumgr-cli/mcumgr/mcumgr.go:82 +0x34
created by main.main
	/home/rently/mynewt-mcumgr-cli/mcumgr/mcumgr.go:80 +0xd0

goroutine 10 [syscall]:
syscall.Syscall(0x3, 0x7, 0x20fc02d, 0xfd3, 0xdc250, 0x66cd7350, 0x72)
	/usr/local/go/src/syscall/asm_linux_arm.s:14 +0x8
syscall.read(0x7, 0x20fc02d, 0xfd3, 0xfd3, 0x0, 0x0, 0x0)
	/usr/local/go/src/syscall/zsyscall_linux_arm.go:686 +0x40
syscall.Read(...)
	/usr/local/go/src/syscall/syscall_unix.go:187
internal/poll.ignoringEINTRIO(...)
	/usr/local/go/src/internal/poll/fd_unix.go:581
internal/poll.(*FD).Read(0x2016fc0, 0x20fc02d, 0xfd3, 0xfd3, 0x0, 0x0, 0x0)
	/usr/local/go/src/internal/poll/fd_unix.go:162 +0x118
os.(*File).read(...)
	/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0x200f768, 0x20fc02d, 0xfd3, 0xfd3, 0x1000, 0xa, 0xffffffff)
	/usr/local/go/src/os/file.go:117 +0x5c
github.com/tarm/serial.(*Port).Read(0x200f770, 0x20fc02d, 0xfd3, 0xfd3, 0x0, 0x0, 0x0)
	/home/rently/go/pkg/mod/github.com/tarm/serial@v0.0.0-20180830185346-98f6abe2eb07/serial_linux.go:138 +0x38
bufio.(*Scanner).Scan(0x20176c0, 0x0)
	/usr/local/go/src/bufio/scan.go:214 +0x88
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Rx(0x2016f80, 0x20176c0, 0x0, 0x0, 0x0, 0x0)
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/nmxact/nmserial/serial_xport.go:304 +0xec
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Start.func1(0x2016f80)
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/nmxact/nmserial/serial_xport.go:135 +0xd4
created by mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialXport).Start
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/nmxact/nmserial/serial_xport.go:127 +0xf8

goroutine 11 [select]:
mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialSesn).Open.func1(0x206aea0)
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/nmxact/nmserial/serial_sesn.go:101 +0xbc
created by mynewt.apache.org/newtmgr/nmxact/nmserial.(*SerialSesn).Open
	/home/rently/go/pkg/mod/mynewt.apache.org/newtmgr@v0.0.0-20201028150837-60b2da78788c/nmxact/nmserial/serial_sesn.go:97 +0x1cc 
Error: NMP timeout
&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To add more context, &lt;span&gt;when I flash the SMP_SVR example (from samples)&amp;nbsp;&lt;/span&gt;the same mcumgr commands work (with the same port)&amp;nbsp; and I&amp;#39;m able to send mcumgr commands&amp;nbsp;without a timeout;&amp;nbsp;only with this serial recovery method, I get this&amp;nbsp;timeout(loading from the bootloader).&lt;/p&gt;
&lt;p&gt;I added a custom board overlay to the above project. Other than that, I haven&amp;#39;t made any changes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My custom overlay is,&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	current-speed = &amp;lt;115200&amp;gt;;
	status = &amp;quot;okay&amp;quot;;
};



/ {
	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart1;
		zephyr,bt-c2h-uart = &amp;amp;uart1;
		zephyr,ot-uart = &amp;amp;uart0;
	};
};

&amp;amp;pinctrl {
	uart0_default: uart0_default {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 29)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_RTS, 1, 13)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 31)&amp;gt;,
					&amp;lt;NRF_PSEL(UART_CTS, 1, 15)&amp;gt;;
			bias-pull-up;
		};
	};

	uart0_sleep: uart0_sleep {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 29)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RTS, 1, 13)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 31)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_CTS, 1, 15)&amp;gt;;
			low-power-enable;
		};
	};

	uart1_me: uart1_me {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;;
		};
		group2 {
			psels = &amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;;
			bias-pull-up;
		};
	};

	uart1_sleep_me: uart1_sleep_me {
		group1 {
			psels = &amp;lt;NRF_PSEL(UART_TX, 0, 9)&amp;gt;,
				&amp;lt;NRF_PSEL(UART_RX, 0, 10)&amp;gt;;
			low-power-enable;
		};
	};
};

&amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt; 0x1c200 &amp;gt;;
	pinctrl-0 = &amp;lt; &amp;amp;uart1_me &amp;gt;;
	pinctrl-1 = &amp;lt; &amp;amp;uart1_sleep_me &amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;mcuboot.conf&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SIZE_OPTIMIZATIONS=y
CONFIG_SINGLE_APPLICATION_SLOT=y

# Enable MCUboot Serial Recovery
CONFIG_MCUBOOT_SERIAL=y
CONFIG_UART_CONSOLE=n

CONFIG_MCUBOOT_INDICATION_LED=y

CONFIG_BOOT_SERIAL_WAIT_FOR_DFU=y
CONFIG_BOOT_SERIAL_WAIT_FOR_DFU_TIMEOUT=5000&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to communicate with the Bootloader while using Serial recovery example on Custom board</title><link>https://devzone.nordicsemi.com/thread/414635?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 12:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e4d1808-1231-4bfe-9f00-3cb563b7db5e</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart#:~:text=Disable%20the%20Mass%20Storage%20feature%20on%20the%20device%2C%20so%20that%20it%20does%20not%20interfere%3A"&gt;disabling the Mass storage&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Could you share &amp;nbsp;your connstring and type&amp;nbsp; in the mcumgr script ?And are you getting any error logs while doing this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>