Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print plain text error message rather than error code #10

Open
Olivier-ProGlove opened this issue Aug 17, 2018 · 3 comments
Open

Print plain text error message rather than error code #10

Olivier-ProGlove opened this issue Aug 17, 2018 · 3 comments

Comments

@Olivier-ProGlove
Copy link
Contributor

I recently got Error: 1 while I was expected my mcumgr command line to work. See my issue report here: zephyrproject-rtos/zephyr#7924 (comment)

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
Copy link
Contributor Author

What means Error: 6?

mlaz pushed a commit to mlaz/mynewt-mcumgr that referenced this issue Sep 27, 2019
@n3rd4i
Copy link

n3rd4i commented Sep 30, 2019

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

@sparkhead95
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants