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

Add support for Memfault commands #165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michal-narajowski
Copy link

https://memfault.com/

Adds support for pulling coredump data, events and traces from
the device.

Copy link
Contributor

@ccollins476ad ccollins476ad left a 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?

Comment on lines 39 to 41
tmpName := args[0] + ".tmp"
progressBytes := 0
file, err := os.OpenFile(tmpName, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0660)
Copy link
Contributor

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.

@ddavidebor
Copy link

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.
@michal-narajowski
Copy link
Author

Hi @ddavidebor, I fixed mentioned in @ccollins476ad review. I can't test it anymore though.

@ddavidebor
Copy link

ddavidebor commented Mar 30, 2022 via email

@michal-narajowski
Copy link
Author

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

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

Successfully merging this pull request may close these issues.

3 participants