Zephyr: mcumgr image upload (with smp_svr) does not work over serial/shell on the nrf52840dk

Created on 9 Nov 2020  路  10Comments  路  Source: zephyrproject-rtos/zephyr

I'm not able to get image upload to upload new images using the serial or shell overlays on the nrf52840DK. Passing in a longer timeout does not seem to have any effect on behavior. All other mcumgr commands seem to work correctly. I am able to upload images using bluetooth, so it's probably not flash driver related. image upload over shell on UART works correctly on the frdm_k64f BSP so this bug is probably not something on my computer or just a generic bug in the mcumgr port.

bug

All 10 comments

/cc @de-nordic @nvlsianpu

Which Zephyr commit do you have on top?

Which Zephyr commit do you have on top?

If you mean the tip, for the tests today it is: https://github.com/zephyrproject-rtos/zephyr/commit/f8956cfbc733bc76605e4fa1136a9542bd56d7ba

Also I should mention I have not tested the frdm_k64f today. I tested it a few weeks ago and it was working, and by then the nrf52840dk already was not. Also yesterday I tested some new MCUboot stuff with Mynewt and all mcumgr commands work correctly over UART on the nrf52840dk, so this bug must be something specific to Zephyr+mcumgr+UART.

Unfortunately works on my nrf52840dk.

Do you have CONFIG_UART_CONSOLE=n ?

My config for comparison
smp_svr.config.txt

Do you have CONFIG_UART_CONSOLE=n ?

Could be, I will try again later today to check. Do you have any particular option set for you mcumgr config, like mtu?

I was building according to https://docs.zephyrproject.org/latest/samples/subsys/mgmt/mcumgr/smp_svr/README.html serial option - works fine.

Ok, so I tried again now, and both overlay-serial.conf and overlay-shell.conf are working. Actually I was deceiving when I answered the SHA in the tip of my master, which is the one I am using today with BLE, but I was testing over serial/shell two weeks ago on 28/10, so either something changed in the interim, like a bug fix, or something else happened in my setup which will be quite hard to track down. Sorry about the noise; closing this!

Could be, I will try again later today to check. Do you have any particular option set for you mcumgr config, like mtu?

Nope. All I have added by, hand via -t menuconfig, is SHELL=y, UART_CONSOLE=n and MCUMGR_SMP_SHELL=y.

Could be, I will try again later today to check. Do you have any particular option set for you mcumgr config, like mtu?

Nope. All I have added by, hand via -t menuconfig, is SHELL=y, UART_CONSOLE=n and MCUMGR_SMP_SHELL=y.

I did not have to add any options apart from using the overlay files which are part of the smp_svr sample.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skylayer picture skylayer  路  4Comments

pabigot picture pabigot  路  4Comments

Nukersson picture Nukersson  路  4Comments

cfriedt picture cfriedt  路  3Comments

JusbeR picture JusbeR  路  5Comments