-
-
Notifications
You must be signed in to change notification settings - Fork 799
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 ESP crash trace decoding to monitor #3383
Add ESP crash trace decoding to monitor #3383
Conversation
Wow!!! Great PR! Thank you so much!!! I like your questions and the answers are the next:
Users can pass multiple filters using
Each argument in a new line. |
d95ff83
to
6d77765
Compare
I have split it as you suggested, thanks for quick response! As for 3., what I meant was if there was some good way to make it enabled by default, so that people don't have to add that to their platform.ini. |
@@ -58,7 +58,7 @@ def is_bytes(x): | |||
def path_to_unicode(path): |
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.
This returns unicode if it already is unicode, but string if it isn't? Seemed like a bug to me, and it doesn't seem to be used anywhere yet, so I changed it to always return unicode (I needed it in the filter in plaftorm-espressif32).
Hi, just bumping this, anything I can do to make it easier to merge/review for you? |
Hi @Tasssadar , Sorry for the delay! I think about this PR each day! I remember. Thank you so much for your contribution. We need some changes on the PlatformIO Core side with extending API for dev-platforms. I'll back soon here. |
Great work! Let me finalize documentation and we will release it in the upcoming PlatformIO Core 4.3. It's planned to be released this week in pair with support for official JetBrain's extension for CLion: https://plugins.jetbrains.com/plugin/13922-platformio-for-clion |
Is there any documentation on how to set this up and to use it? |
Hi @greg-wood ! Have you seen this doc page? Just add the following line to your environment in
|
I'm not seeing a difference.
|
TODO:
This PR has been split into three parts, this one implements an interface to add more filters into miniterm and more in in platform repos, adding filters to decode the traces:
Original text below:
I've implemented automatic ESP crash trace decoding in the device monitor in platform.io. It is using a miniterm filter, add
--filter=esp_exception_decoder
tomonitor_flags
to use it.It looks like this with a debug build (the indented part is new):
This is pretty much just a proof of concept, I've got some questions:
miniterm.TRANSFORMATIONS
dict. I wasn't sure where to put it, so I just kind kept it in the device monitor, figured I'd ask you.addr2line
and to the built firmware file?--filter=esp_exception_decoder
? Or perhaps we could include that flag in board configs for ESP devices?Looking forward to your response!
Updates platformio/platform-espressif32#105
Updates platformio/platform-espressif8266#31