Hi everyone I'm kinda new to Keil and STM32 MCU I managed to build very small projects but now I want to try something more complicated and I would like to use the debug, especially the debug (printf) viewer My MCU is a STM32F103C8T6
I simply tried with the printf function but I see nothing in the debug windows. I tried to find a tutorial for this MCU especially but I found nothing (or nothing understandable). I just want to try to have something easy to set up in order to know what is happening.
Also, I tried to set up a timer interrupt. How I'm supposed to know if it's working well in the debug ? because apparetnly, it's not.
Thank you for your help
I do use ST link v2 like this one: engenhariaegambiarras.files.wordpress.com/.../pic6_.jpg
st link v2 -> STM32F103 SWDIO -> PA13 GND -> GND SWCLK -> PA14 3.3v -> 3.3
I tried to connect PB3 with SWIM but it doesn't work, same for SWDIO -> PB3
and keil config: http://hpics.li/86c1c79 http://hpics.li/6e66788
I don't know what I'm missing here
Instead of trying random stuff, think a bit. As I explained you need the SWO pin connected from the SWV functionality to work, it is the pin the TRACE data uses.
From the pod on the right Pin 8 T_JTDO/T_SWO (PB3)
You might want to consider a real ST-LINK vs the fake/clone ones.
Thank you Clive, now I get it and finally found what i wanted: lujji.github.io/.../
here is what I need to do
I also have a ST link with my official stm32f411RE but i'm stick to STM32f103 for now ;)
Thanks again for your help
Note that there are at least 2 identical-looking versions of those ST-Link rip-offs, but they have different and incompatible pinouts!
So make sure you check very carefully - do not assume that any 2 will be the same, and do not assume they will match the photos in that article!