Skip to main content
DPavl.11
Associate II
April 9, 2022
Question

I am working with a stm32l452rct6 microcontroller and when power is connected, the microcontroller is immediately in boot mode. St-link v2 also does not connect. What should I do?

0693W00000LxRk8QAF.pngThis is scheme for debug with swd0693W00000LxRqkQAF.pngHow to do active sw-dp with st-link v2 and stm32cubeProgrammer?

This topic has been closed for replies.

7 replies

waclawek.jan
Super User
April 9, 2022

> when power is connected, the microcontroller is immediately in boot mode

How do you know it's in boot mode?

> St-link v2 also does not connect.

Try to connect under reset.

If you can connect through some of the bootloader protocols, check the option bytes.

JW

DPavl.11
DPavl.11Author
Associate II
April 9, 2022

I add second question. Gow to do active sw-dp with st-link v2 and stm32cubeProgrammer?0693W00000LxRqzQAF.png

YKMIN
Associate
April 9, 2022

Check a SWCLK pin it should be Pull-down at Reset state about 10K value.

Tesla DeLorean
Guru
April 9, 2022

Check part orientation

Check VDDA/VSSA

Check BOOT0

Check NRST

​Check VTarget goes to pin 1 or 2 of ST-LINK

N​o magic options, should work out of the box unless something wrong with device.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
DPavl.11
DPavl.11Author
Associate II
April 9, 2022

i don't connect only vdda and vssa, is it problem? do you know, how to solve this problem? Not connecting in my PCB, i need to rebuild PCB?

Tesla DeLorean
Guru
April 9, 2022

VDDA/VSSA power the PLLs and POR circuits, not just DAC/ADC

Without power, will clamp device in reset, you'll see NRST held low

Perhaps you can solder on some fine wires to test/check

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..