2022-04-09 2:50 AM
This is scheme for debug with swd
How to do active sw-dp with st-link v2 and stm32cubeProgrammer?
2022-04-09 3:01 AM
> 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
2022-04-09 3:25 AM
I add second question. Gow to do active sw-dp with st-link v2 and stm32cubeProgrammer?
2022-04-09 3:28 AM
Check a SWCLK pin it should be Pull-down at Reset state about 10K value.
2022-04-09 3:36 AM
Check part orientation
Check VDDA/VSSA
Check BOOT0
Check NRST
Check VTarget goes to pin 1 or 2 of ST-LINK
No magic options, should work out of the box unless something wrong with device.
2022-04-09 6:08 AM
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?
2022-04-09 6:45 AM
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
2022-04-13 7:16 AM
Hi @DPavl.1 ,
You can refer to AN4555 Getting started with STM32L4 Series and STM32L4+ Series hardware development for details about good setup mainly for power supply and debug management.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.