This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

debug STM32F103

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

Parents
  • You seem to have more items checked than necessary.

    Your board/connection, which you fail to describe, must provide the PB3 SWO signal to the debugger. For the DISCO and NUCLEO boards you'd want to double check the connectivity, and if solder bridges (SB) need to be made to effect that connectivity. Read documentation for the board, or review schematic.

    The internal speed of the core can be checked by emitting a clock via the PA8 MCO pin.

Reply
  • You seem to have more items checked than necessary.

    Your board/connection, which you fail to describe, must provide the PB3 SWO signal to the debugger. For the DISCO and NUCLEO boards you'd want to double check the connectivity, and if solder bridges (SB) need to be made to effect that connectivity. Read documentation for the board, or review schematic.

    The internal speed of the core can be checked by emitting a clock via the PA8 MCO pin.

Children