2024-04-28 09:38 AM
Hello everyone.
I want to connect a STLINK-V3MODS to a microcontroller STM32L031 using SWD protocol, I have tried the following the following conection:
Is that enough to flash a program using stmcube mx?
Solved! Go to Solution.
2024-05-13 11:21 PM - edited 2024-05-13 11:23 PM
Ooooo,
1. connect ALL Vss to gnd and ALL Vdd/Vdda to 3v3 .
2. place cer.caps CLOSE to vss/vdd from cpu , maybe solder smd cer.cap at/between pins of pinheader;
0805 size can be soldered perfect between two pins at 0,1" distance. (pin 16 -- 17 )
Then try connect again.
2024-04-28 09:57 AM
Hi,
>I want to connect a STLINK-V3MODS
ok, but its connections are on the edge - not the STDC14 connector. So this cannot work. :)
see manual:
-> STLINK-V3MINI only !!!
>Is that enough to flash a program using stmcube mx?
If you make the connections to the edge connector : yes, just need : gnd, vdd (input), swd , swc .
2024-04-28 10:23 AM
Thank you! I am going to be careful when reading datasheet :D
2024-05-12 03:36 PM
I already tried the solution bit it is still not working for me.
I Update connecttions as follow:
I run debug in STCube and got the following error:
I connected a logic analyzer in swd wires and I see that there are communication
Since I am using Ubuntu as OS, I gave all permission to the programmer (sudo chmod 777 /dev/ttyACM0)
Someone know what else I have to do in order to flash a program?
2024-05-12 11:14 PM - edited 2024-05-12 11:41 PM
>I connected a logic analyzer in swd wires and I see that there are communication
Good, so it should work...
Can you install CubeProgrammer ? We can see more info about, whats not working .
+
Is your STM32L031xx on know working board or first test of something new ? (show circuit then.)
2024-05-13 06:17 AM
2024-05-13 06:32 AM
@David Littell , with > software reset < setting , NRST not needed (except special cases, target in power down mode etc.).
And he showed in pic, he used NRST for the connection...
2024-05-13 06:59 AM
@AScha.3 wrote:@David Littell , with > software reset < setting , NRST not needed (except special cases, target in power down mode etc.)...
@Gomar Indeed it's not generally essential, but I would strongly advise to included it - to avoid all risk of getting yourself stuck in one of those "special cases" where you really do need it!
2024-05-13 05:43 PM - edited 2024-05-13 05:43 PM
>Is your STM32L031xx on know working board or first test of something new ? (show circuit then.)
I just placed a microcontroller in a PCB and put it in a protoboard.
In a protoboard I connected the following signals:
>Can you install CubeProgrammer ? We can see more info about, whats not working .
2024-05-13 11:21 PM - edited 2024-05-13 11:23 PM
Ooooo,
1. connect ALL Vss to gnd and ALL Vdd/Vdda to 3v3 .
2. place cer.caps CLOSE to vss/vdd from cpu , maybe solder smd cer.cap at/between pins of pinheader;
0805 size can be soldered perfect between two pins at 0,1" distance. (pin 16 -- 17 )
Then try connect again.