mynewt-mcumgr icon indicating copy to clipboard operation
mynewt-mcumgr copied to clipboard

Print plain text error message rather than error code

Open Olivier-ProGlove opened this issue 6 years ago • 3 comments

I recently got Error: 1 while I was expected my mcumgr command line to work. See my issue report here: https://github.com/zephyrproject-rtos/zephyr/issues/7924#issuecomment-407478098

Luckily @nvlsianpu pointed me the statement in the documentation saying this error was expected:

Note that if you try to send the very same image that is already flashed in slot-0 then the procedure will not complete successfully since the hash values for both slots will be identical.

I would not have this issue if mcumgr would have returned a plain text error message.

Olivier-ProGlove avatar Aug 17 '18 08:08 Olivier-ProGlove

What means Error: 6?

Olivier-ProGlove avatar Dec 07 '18 14:12 Olivier-ProGlove

I believe this error means:

/**
 * mcumgr error codes.
 */

#define MGMT_ERR_EBADSTATE 6 /* Current state disallows command. */

Error code(s) can be found in this header file (from your zephyr project root): modules\lib\mcumgr\mgmt\include\mgmt\mgmt.h

n3rd4i avatar Sep 30 '19 09:09 n3rd4i

What means Error: 6?

Hi @Olivier-ProGlove did you figure out how to fix Error: 6? I don't know what's causing it or how to fix it

sparkhead95 avatar Jan 27 '20 15:01 sparkhead95