Author Topic: SWD Not working on PCB! (STM32)  (Read 390 times)

0 Members and 1 Guest are viewing this topic.

Offline AmeliaBunsTopic starter

  • Regular Contributor
  • *
  • Posts: 57
  • Country: ca
SWD Not working on PCB! (STM32)
« on: June 17, 2024, 03:10:33 am »
Hi, I finally got the latest version of my PCB and soldered just a few necessary components (I forgot which ones...) and the board was working great! So I finish the board and connect it up, and all of a sudden, no target found, my STLink (Those cheap crappy ones) also blinks red when I plug it in. Thinking I fried the MCU with heat, I swapped it to a blue pill and it works perfectly there, so it's a configuration issue I assume...
I checked the traces and they conducted to the pins on the MCU. I can't figure this out. I reviewed the datasheet again to see if I did something wrong with one of the pins (Like the wake pin or boot1) but it seems like my configuration is OK?

Any ideas about what could be happening? I've been trying to get it to work for the past 2-3 days.. this happened again on a second board. This project was supposed to be a quick and cheap DIY solution but it's been taking more than a month so far xD
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11720
  • Country: us
    • Personal site
Re: SWD Not working on PCB! (STM32)
« Reply #1 on: June 17, 2024, 03:43:28 am »
Are you sure you don't set RDP2 by accident? Or redefining the function of the  SWD pins to GPIO?

Connect the reset pin to the programmer, it might help.
Alex
 

Offline AmeliaBunsTopic starter

  • Regular Contributor
  • *
  • Posts: 57
  • Country: ca
Re: SWD Not working on PCB! (STM32)
« Reply #2 on: June 17, 2024, 04:02:00 am »
In a fit of desperate, resoldered a new MCU there and changed it. probably my resoldering but now it works?!!! it works perfectly!
I've never been so happy

sorry for the post I genuinely had tried this before... weird... THIS PCB was with a white solder mask from JLCPCB and the quality was utter garbage, so I wonder if one of the pins was somehow not making good connection, strange still... two boards. same issue?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf