Hi Mayank,
If you are using UART as a connection type, then please disable other communication channels like BT and shell - at least in my case with STM32 it helped.
I assume that flash partition layout corresponds to what you've wrote: "I have flashed MCUBOOT (0x0 to 0x8000) and smp_svr (0xC000 to 0x27000)." I assume that you have signed the 'smp_svr' binary. Please take a look at https://lists.zephyrproject.org/g/users/topic/dfu_over_uart/27861342?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,20,27861342 - maybe you will find some hint there. Regards, Adam
toggle quoted messageShow quoted text
Hi Adam,
Thanks for the quick reply. I have flashed MCUBOOT (0x0 to 0x8000) and smp_svr (0xC000 to 0x27000). The flag CONFIG_UART_MCUMGR_ON_DEV_NAME is defaults to 'UART_0'.
My DTS file has following configuration right now. chosen { zephyr,console = &uart0; zephyr,shell-uart = &uart0; zephyr,uart-mcumgr = &uart0; zephyr,bt-mon-uart = &uart0; zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; };
&uart0 { compatible = "nordic,nrf-uart"; current-speed = <115200>; status = "ok";
//For i.MX DCE configuration tx-pin = <8>; rx-pin = <4>; rts-pin = <26>; cts-pin = <6>; };
Command used from imx6ul board running on yocto linux: sudo mcumgr --conntype serial --connstring='dev=/dev/ttymxc0,baud=115200' echo hello
So, am i missing some configuration or do you see any other issue?
Regards,Mayank Patel (M.Tech VLSI & Embedded system) Ganpat University +91-9722260070
Hi Mayank,
If you are sure the partition layout of flash memory is correct and you flashed MCUboot and SMP_SVR sample respectively, then please check if the CONFIG_UART_MCUMGR_ON_DEV_NAME is set correctly.
Regards, Adam
Hi, I have nrf52840 on my custom board (Based on IMX6, Running Yocto linux) which is connected over UART. I want to do an OTA of zephyr OS on that chip over serial/ble and for that i had already tried following things. 1) I have build smp_svr and flashed it to nrf52840 so that i can use 'mcumgr' command line tool for the flashing. Referred https://docs.zephyrproject.org/1.14.0/samples/subsys/mgmt/mcumgr/smp_svr/README.html?highlight=build%20smp_svr to know how to use 'mcumgr'.
Now, when i use mcumgr to communicate 'hello' message over serial/UART, It shows error of connection timed out. (Also tried with -t switch, but no luck). Command used are : sudo mcumgr --conntype serial --connstring='dev=/dev/ttymxc0,baud=115200' echo hello --> So it's not able to open the connection using mcumgr and not getting any reply (Getting timeout).
|