Skip to main content
Explorer II
April 2, 2025
Question

Debugging STM32F413xx with SWD using SWO.

  • April 2, 2025
  • 1 reply
  • 643 views

Hello, 

Please help me.

I'm a beginner to designing stm32 hardware designs. I need to program my STM32F413VGT3 microcontroller using SWD(Serial wire debugger). Also I need to use SWO option. I designed a circuit for this.

1. I want to know about can I use SWO with SWD interface?

2. Is my circuit(attached) is correct? (I'm not sure that 50ohm resistors and 100K pullup resistor)

Screenshot 2025-04-02 131221.png

Screenshot 2025-04-02 131251.pngScreenshot 2025-04-02 131201.png

    This topic has been closed for replies.

    1 reply

    Super User
    April 2, 2025

    @Rajitha_at_UoM wrote:

    I'm a beginner to designing stm32 hardware


    Are you familiar with any other microcontroller(s)? In particular, ARM Cortex-M microcontrollers?

     

    The best starting point is to get the manufacturer's development/evaluation/demo board(s), and use that to gain familiarity.

    Then you can base your own design on that board.

    To find development boards for any ST part, got to the Product Page and look on the 'Tools & Software' tab:

    https://www.st.com/en/microcontrollers-microprocessors/stm32f413vg.html#tools-software

     

    You will see that there's a NUCLEO-F413ZH and a 32F413HDISCOVERY:

    https://www.st.com/en/evaluation-tools/nucleo-f413zh.html#documentation

    https://www.st.com/en/evaluation-tools/32f413hdiscovery.html#documentation

    They both have SWO

     

    Also, see Application Note AN4488Getting started with STM32F4xxxx MCU hardware development:

    https://www.st.com/resource/en/application_note/an4488-getting-started-with-stm32f4xxxx-mcu-hardware-development-stmicroelectronics.pdf

    via: https://www.st.com/en/microcontrollers-microprocessors/stm32f413vg.html#documentation

    Explorer II
    April 2, 2025

    Yes I familiar with development boards. I checked my project using a Discovery board. But now i need a build a custom circuit. 

    I designed this circuit using the Application notes, data sheets. Now I need to verify that is my wirings are correct?

    Also I want to know about can I use SWO with SWD interface?

    Thank you.

    Super User
    April 2, 2025

    @Rajitha_at_UoM wrote:

    Also I want to know about can I use SWO with SWD interface?


    You could answer that by trying it on the Disco board ...