-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add support for Memfault commands #165
base: master
Are you sure you want to change the base?
Conversation
732b88d
to
29fcc08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. In addition to the minor comment I left, could you please run gofmt on the changed files?
newtmgr/cli/memfault.go
Outdated
tmpName := args[0] + ".tmp" | ||
progressBytes := 0 | ||
file, err := os.OpenFile(tmpName, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0660) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ioutil.Tempfile()
(https://golang.org/pkg/io/ioutil/#TempFile) would be slightly better here. If the user quits with ctrl-C, there won't be a temp file in the current directory.
Hello @michal-narajowski , are you interested in progressing this PR? |
https://memfault.com/ Adds support for pulling coredump data, events and traces from the device.
29fcc08
to
dc6fe74
Compare
Hi @ddavidebor, I fixed mentioned in @ccollins476ad review. I can't test it anymore though. |
Do you have some instructions on how to use the feature?
…On Wed, 30 Mar 2022 at 13:12, Michał Narajowski ***@***.***> wrote:
Hi @ddavidebor <https://github.com/ddavidebor>, I fixed mentioned in
@ccollins476ad <https://github.com/ccollins476ad> review. I can't test it
anymore though.
—
Reply to this email directly, view it on GitHub
<#165 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACFC37RMSG77NWDQYVZWR7LVCRAL5ANCNFSM4NJPWM3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've done some research and it looks like my PR with support for Memfault has been scrapped. The feature has now been added to memfault repo: https://github.com/memfault/memfault-firmware-sdk/tree/master/ports/mynewt. I'm not sure but maybe you could still use it with these commands. You would also need apache/mynewt-mcumgr#84 since it implements the commands on the device side. Usage is rather simple (newtmgr memfault pull). Please refer to newtmgr docs: https://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html |
https://memfault.com/
Adds support for pulling coredump data, events and traces from
the device.