Replies: 1 comment 3 replies
-
This repo is only for help with zephyr, ncs questions should be directed to https://devzone.nordicsemi.com/ Error 1 can mean any number of things, that go tool is an antique, use https://github.com/thedjnK/AuTerm/ with SMP version 2 and see what the real error is |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm struggling with using
mcumgr
to upload a file to my board. There is probably a problem with overlapping CONFIG dependencies, but I'm not sure which of them may be the problematic ones. For tests I'm usingnrf9160dk_nrf9160_ns
andncs v2.5.0
.I have an application that uses uploading/downloading files to/from a board. Last working version was using
ncs v2.2.0-rc1
. After switching toncs v2.5.0
themcumgr
commands were returningNPM Timeout
s. So I've figured that there is a problem with Kconfig options and I've started an investigation.Using a sample from
zephyr/samples/subsys/mgmt/mcumgr/smp_svr
(ncs v2.5.0
) with configuration (from README) shown below:I am able to perform
mcumgr echo
,mcumgr fs upload
andmcumgr fs download
operations.Using my application with
ncs v2.2.0-rc1
and the following Kconfig option regardingmcumgr
selected:I am also able to perform
mcumgr echo
,mcumgr fs upload
andmcumgr fs download
operations.BUT using my application with
ncs v2.5.0
and the following Kconfig option regardingmcumgr
selected:I am NOT able to perform
mcumgr echo
,mcumgr fs upload
andmcumgr fs download
operations.So I've decided to add missing Kconfig options to my not working application. I've added all missing options from the working sample (
zephyr/samples/subsys/mgmt/mcumgr/smp_svr
). That way I'm able to performmcumgr echo
,mcumgr fs download
operations, BUT themcumgr fs upload
operation does not work. I've tried everything. Probably there is some dependency issue regardingmcumgr
Kconfig options. My application also sets some additional Kconfig options likeCONFIG_SHELL_MINIMAL
etc.Below there are logs both from working and not working application regarding uploading a file (the same in both cases) using
mcumgr fs upload
command. The command used ismcumgr --conntype serial --connstring "dev=/dev/ttyACM0,baud=115200" -ldebug fs upload test_file /factory/provision.cbor
.WORKING APPLICATION:
NOT WORKING APPLICATION:
There are only a few differences between those two files (beside timestamps):
I honestly don't know what the problem can be. I'm using the same
mcumgr
Kconfig options as in the working example. Do you know what may be cause of that behavior? Do you know why themcumgr fs upload
command does not work but the other works just fine?Thank you very much for help. If you decide that this should be converted to an issue, I will create one.
Beta Was this translation helpful? Give feedback.
All reactions