cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging STM32F413xx with SWD using SWO.

Rajitha_at_UoM
Associate II

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

   

4 REPLIES 4

@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

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.


@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 ...

Ohh . It's working on Discovery board. Thank you
Now I need to know about above circuit is correct for the SWD interface with SWO?