Debugging STM32F413xx with SWD using SWO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 12:58 AM
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)
 
   
- Labels:
-
Schematic
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:12 AM
@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 AN4488, Getting started with STM32F4xxxx MCU hardware development:
via: https://www.st.com/en/microcontrollers-microprocessors/stm32f413vg.html#documentation
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:20 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 1:28 AM
@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 ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-02 3:38 AM
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?
