2020-03-09 06:00 AM
Hello!
Having some issues getting this to work, is it even possible with this setup?
PB3 (connected to the JTAG connector) has been reassigned to "SYS_JTDO_SWO", and core clock is at 168MHz.
A schematic of the EVAL-boards JTAG connector is available on page 6/24 in this pdf:
JP3 has been tested in both open and closed configurations.
The ST-LINK/V2 documentation gives this pinout ( page 12/19):
In CubeMX, under the SYS tab, debugging is configured to "Trace Asynchronous Sw", as seen in the image below. JTDO (JTAG connector pin 13) is hence reassigned to SWO.
The clocking is configured as:
Debug settings in STM32CubeIDE is:
And SWV settings as below:
After starting a recording and running the code, I get 3-5 samples, and then nothing. I've tried multiple PC sampling resolutions in the SWV settings without any difference.
Live expressions are working as intended, confirming that the code is still running.
Any help would be greatly appreciated!
Solved! Go to Solution.
2020-03-10 12:54 AM
Live expressions and SWV is using different communication method.
First thing that comes to mind is whether your application later re-initiates PB3 to some other functionality? Or does your code change clock speed on the fly?
Maybe you can check GPIOB configuration in the SFR-view to see if anything is modified between when you get 3-5 samples and when the trace goes dead..
2020-03-10 12:54 AM
Live expressions and SWV is using different communication method.
First thing that comes to mind is whether your application later re-initiates PB3 to some other functionality? Or does your code change clock speed on the fly?
Maybe you can check GPIOB configuration in the SFR-view to see if anything is modified between when you get 3-5 samples and when the trace goes dead..