Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Has anyone made a custom stm32 board with swd programming connections
i need help with na stm32l031k6, I want to just start the processor and read it with an st-link v2, I have connected BOOT0 to GND(i haven’t added a 10k resistor, but that shouldn’t be the problem ), NRST with pull-up 1k to VDD, VDDA and VDD are connected together. From what I read online I can pass without the external crystal because there is an internal one. So when I connect the VDD to 3v3 on the st-link, the GND to the st-link GND, SWCLK to PA14, SWDIO to PA13 and the chip isn’t recognized. I have ruled out an faulty st link because it recognizes a blue pill f103 board.
Hi @lub0_o
you connect VDD to 3V3. do you have an other power source on VDD ? 3V3 on st-link cannot supply your board, it just read the voltage level.
have you connected NRST to the Reset pin on ST-link ? the st-link need to force reset the mcu to start the connection, to insure that SWD pins have the right configuration
dont worry i fixed it, the st-link does provide power though, i power it on that way and the nrst pin has an internal pullup so it really its never hung
Yeah
the problem was that i am a big dumb dumb and switched swdio and swclk
CONTRIBUTE TO THIS THREAD