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

Fix SWO pin frequency error #1

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

cristianfrasineanu
Copy link
Contributor

@cristianfrasineanu cristianfrasineanu commented Mar 1, 2022

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:

image

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.

@maxgerhardt maxgerhardt merged commit f94a936 into maxgerhardt:main Sep 2, 2022
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.

2 participants