Skip to main content
JOlso.12
Associate III
August 22, 2021
Question

What To Do When SWD Port is Non-Responsive to STLINK?

  • August 22, 2021
  • 2 replies
  • 1385 views

I have a newly-birthed target board based on 32F413. My programmer is an STLINK V2 with STMCubeProgrammer code.

What are good strategies when the SWD port is non-responsive to the STLINK programmer?

Must the micro's unused JDTO and JTDI pins be terminated with a pull up or pull down resistor?

Any heartbeat pin on the micro that would tell me that it awaits a firmware download on the SWD port?

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
August 22, 2021

Review schematic, PCB, and netlist.

More likely the part isn't functional in your circuit.

SWD pin complement should be sufficient.

Check part orientation

Check voltage at VCAP pin(s)

Check VDDA connected, check VDD/VDDA voltage

With BOOT0 pulled high you should be able to connect via USART1 PA9/PA10 at 9600 8E1, send an 0x7F data pattern, check if you get an 0x79 response.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
August 22, 2021
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
August 23, 2021

Hold the chip in reset and SWD will be active. This is an option in STM32CubeProgrammer. If that doesn't work, look for a solution elsewhere. Power rails, signal connections, etc.

"If you feel a post has answered your question, please click ""Accept as Solution""."