Pinout to read stm32F103zet6 using ST-LINK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 6:02 AM - last edited on ‎2025-06-20 6:05 AM by Andrew Neil
Hi,
I want to know pinout to read flash from CHIP stm32F103zet6 using ST-LINK.
Can someone provide it, im new on STM32 chip.
Thanks.
- Labels:
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 6:05 AM - edited ‎2025-06-20 6:08 AM
The pinout of the chip will be in its datasheet.
The pinout of the ST-Link will be in its User Manual.
If the STM32 is already programmed by someone else, it might be read-protected...
@tomero wrote:I'm new on STM32 chip.
Are you familiar with any other microcontroller(s) ?
Here are some getting started tips:
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-06-20 6:23 AM
Im very stuck to reading pinout from datasheet, but I try configuration like this:
But still not connected. Btw, I just want to connect it for read flash test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 6:37 AM
Is your STM32 on a development board? or a bare chip? If its on a board then tell us about the board like its name and make. Other wise if you are using bare chips, it still need few more connection in order to work. Like there are so many VCC pins but you have connected only one of them. Proper level on RESET and boot pins also required and decoupling capacitors also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 7:23 AM - edited ‎2025-06-20 7:24 AM
@tomero wrote:Im very stuck to reading pinout from datasheet
It's all in Table 5:
https://www.st.com/resource/en/datasheet/stm32f103ze.pdf#page=35
via: https://www.st.com/en/microcontrollers-microprocessors/stm32f103ze.html#documentation
Note that this is not a genuine ST-Link - it's a clone:
See How to recognize a genuine ST-LINK/V2 versus a cloned one; in particular, this comment.
Double-check that you have the pinout correct for the actual clone you have - as noted in the above comment.
You need to connect:
- SWDIO pin from the ST-Link to the SWDIO pin on the STM32;
- SWCLK pin from the ST-Link to the SWCLK pin on the STM32;
- RST pin from the ST-Link to the NRST pin on the STM32.
Plus 3.3V and GND
As @avinash_elec said, the STM32 needs to be in a functional circuit.
@tomero wrote:I just want to connect it for read flash test.
Why do you need to do that?
I hope you're not trying to steal someone's code ... ?
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-06-20 12:24 PM
SWDIO = PA13
SWCLK = PA14
NRESET = NRST
GND = VSS (All), VSSA, VREF-
3V3 = VDD (All), VDDA, VREF+
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 5:39 PM
Yeah, it looks like you're just randomly picking pins hoping for a connection.
The SWDIO and SWCLK are on the other side of the chip
TimerCallback tutorial! | UART and DMA Idle with multiple UART instances tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 5:40 PM
Thank you for your response and good explain. I will try it.
@Andrew Neil wrote:Why do you need to do that?
I have buy device with broken chip and its too slow response for the support, so I want to buy new one and backup the firmware for next repair.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 5:45 PM
@tomero wrote:Thank you for your response and good explain. I will try it.
@Andrew Neil wrote:Why do you need to do that?
I have buy device with broken chip and its too slow response for the support, so I want to buy new one and backup the firmware for next repair.
Well, you better hope the other STM32 isn't code protected. If it is, you're not going to be able to read the memory and save it.
TimerCallback tutorial! | UART and DMA Idle with multiple UART instances tutorial!
If you find my solution useful, please click the Accept as Solution so others see the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-20 6:02 PM
This is to the point, I will try this one.
Thank you.
