cancel
Showing results for 
Search instead for 
Did you mean: 

Using ST-LINK V2

Scott Dev
Senior
Posted on April 17, 2018 at 14:11

Hi

  I have been using a Nucleo board (STM32L0 and STM32L4) and now want to design my own boards. I have been looking through the web and found information on pins to use. I want to make sure I use the correct ones before I design my board. I want to debug the code too.

I was thinking of connecting the ST-LINK V2 as follows:

STM32L4    ST-LINK V2

SWCLK   -----> PA14

SWDIO   ------>PA13

0V --------------->0v

3.3v-------------->3.3v

NRST ----------->RST     (some have this, but others say not needed)

Would this be all that is needed to program and debug a chip? 

Also, I assume by doing the above, PA14 and PA15 cant be used for anything else?

Many Thanks

Scott

1 ACCEPTED SOLUTION

Accepted Solutions
Scott Dev
Senior
Posted on April 17, 2018 at 16:11

Hi

  I managed to get all the above working no problem. I simply connected as above and worked as expected

Scott

View solution in original post

2 REPLIES 2
Scott Dev
Senior
Posted on April 17, 2018 at 14:15

Hi

 Sorry , I forgot to add to the original email:

 Some posts say use the SWO to the processor, but my STLINK doesnt have this pin, what is this and is it needed to do the same job as the Nucleo on board STLINK?

Thanks

Scott

Scott Dev
Senior
Posted on April 17, 2018 at 16:11

Hi

  I managed to get all the above working no problem. I simply connected as above and worked as expected

Scott