Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey!
Found this demo pretty useful to help me play around with my ST B-L475E-IOT01A Discovery. The only issue I came across was that running the debug with the current platformio.ini example yields the following error for the SWO pin:
Also, note the deprecated warnings. I managed to fix these by using the syntax recommended in the official docs.
I changed the platformio.ini to comply with the recommended syntax and, at least on my end, I am not getting any errors or warnings. I can successfully observe the ITM trace via the
swo_parser.py
script after starting the debug session with the correct trace clock value. Unfortunately, the SWO pin frequency is still required even though the docs mention that it can be omitted for the driver to pick up the frequency.The TPIU enable command also must follow the
itm ports on
, otherwise the TRACE_IOEN will remain 0 and there will be no trace pins assigned.