Author Topic: ST-LINK/V3 ?  (Read 46638 times)

0 Members and 2 Guests are viewing this topic.

Offline josip

  • Regular Contributor
  • *
  • Posts: 163
  • Country: hr
Re: ST-LINK/V3 ?
« Reply #25 on: October 18, 2018, 07:43:56 am »
The STM32CubeProgrammer manual gives 24000kHz SWD and 21333kHz JTAG frequencies for the ST-Link v3 (via).

Don't see how this can improve anything. Pushing communication rate to insane level.
What cable should be used for connecting target device? HDMI Maybe?

That "USB 2.0 HS interface (rather than FS on all older stlinks)" could be very useful.

FS CDC can go up to 1 MByte/second. I don't see this rate as bottle neck for any flashing tool.

As always, it is all about bloated software.
 

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: ST-LINK/V3 ?
« Reply #26 on: October 18, 2018, 10:19:26 am »
It could be useful for tracing. ST have a Windows utility that visualizes the values of variables in real-time. Higher bandwidth could allow for monitoring more variables at a higher rate.

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15439
  • Country: fr
Re: ST-LINK/V3 ?
« Reply #27 on: October 18, 2018, 10:13:05 pm »
v3 bumped the processor to a F7 from a F103, a fairly significant jump, so unlikely to be a cost reduction revision.

Big deal. Yes it's a big jump in terms of performance, but on a cost level, the F7 they used is approx $8 by 1000 and the F103 approx $3.5 (public price, to get an idea). And they probably want to phase the F1 series out of new designs at ST anyway. Besides, I'm pretty sure ST has preferential rates on ST parts. ;D

There is practically nothing else on the PCB apart from a few passives and probably a couple regulators and protections diodes.
Looking at the design only, it could very well cost less that a V2. Or at worst be in the same ballpark.

As for performance, it's obviously going to be much faster, but is that going to really impact use in the field? Maybe for tracing as andersm said. To be fair, V2 or V3, those are low-cost dev. tools at $35. So the pricing is certainly right. Nothing to complain about here.

But still not impressed one bit.
« Last Edit: October 18, 2018, 11:40:01 pm by SiliconWizard »
 

Offline gamalot

  • Super Contributor
  • ***
  • Posts: 1389
  • Country: au
  • Correct my English
    • Youtube
Re: ST-LINK/V3 ?
« Reply #28 on: October 19, 2018, 03:16:12 am »
I have designed a bottom cover for my ST-Link V3.  :)

https://www.thingiverse.com/thing:3163349/files

I'm a poet, I didn't even know it. |  https://youtube.com/@gamalot | https://github.com/gamalot
 
The following users thanked this post: photovore, jabramo, Ribster, georges80, roman.isaikin

Offline Mr. Scram

  • Super Contributor
  • ***
  • Posts: 9810
  • Country: 00
  • Display aficionado
Re: ST-LINK/V3 ?
« Reply #29 on: October 19, 2018, 12:36:40 pm »
At least the cobbling together of your programmer is consistent with the rest of the STM toolchain. ;D
 

Offline bson

  • Supporter
  • ****
  • Posts: 2465
  • Country: us
Re: ST-LINK/V3 ?
« Reply #30 on: October 19, 2018, 03:05:23 pm »
Is the V3 protocol compatible with the V2?
 

Offline frogblender

  • Regular Contributor
  • *
  • Posts: 137
Re: ST-LINK/V3 ?
« Reply #31 on: October 04, 2019, 03:40:23 pm »
Is the V3 any faster?

Starting a gdb debug session in TrueStudio:  time from pressing "Debug" (F11 in my case) to code executing on the target:

V2 = about 10 seconds.
V3 = ????


On the v2, of the 10 seconds... less than 2 seconds are spent flashing the flash.   The rest of the time is "Waiting for debugger connection..." and stuff like that.
 

Offline Sal Ammoniac

  • Super Contributor
  • ***
  • Posts: 1764
  • Country: us
Re: ST-LINK/V3 ?
« Reply #32 on: October 04, 2019, 06:40:38 pm »
The V3 does download code to a board faster, but the "Eclipse overhead" is still there to make starting a debug session seem slow on tools like TrueStudio and STM32CubeIDE.
"That's not even wrong" -- Wolfgang Pauli
 

Offline AE7OO

  • Regular Contributor
  • *
  • Posts: 65
  • Country: us
Re: ST-LINK/V3 ?
« Reply #33 on: October 31, 2019, 04:58:01 pm »
Greetings,

As far as cost goes, as of about 5 mins ago, you could get a STLINK-V3MINI from Digi-Key for $10.37.
STLINKV3MINI

And Mouser has them for $9.75..  STLINK-V3MINI

It looks like it does almost everything the big one does. Except take the adapter boards..
« Last Edit: October 31, 2019, 05:04:23 pm by AE7OO »
 
The following users thanked this post: thm_w

Offline Harjit

  • Regular Contributor
  • *
  • Posts: 141
  • Country: us
Re: ST-LINK/V3 ?
« Reply #34 on: October 31, 2019, 05:31:18 pm »
A friend is using the STLINK-V3MINI with the STMCUBE development environment which is Eclipse based and said it is significantly faster to startup, program and debug compared to the V2. He said once he builds, he can have the chip programmed and running in a second. The chip he is using in a STM32F4. I do not know the size of his code but would imagine it to be in the 20k to 40k range.
 
The following users thanked this post: thm_w

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4778
  • Country: dk
Re: ST-LINK/V3 ?
« Reply #35 on: October 31, 2019, 05:58:37 pm »
Greetings,

As far as cost goes, as of about 5 mins ago, you could get a STLINK-V3MINI from Digi-Key for $10.37.
STLINKV3MINI

And Mouser has them for $9.75..  STLINK-V3MINI

It looks like it does almost everything the big one does. Except take the adapter boards..

so it is basically cheaper than buying the MCU, could also be useful ad a small dev board if you don't need too many pins

 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 7236
  • Country: ca
  • Non-expert
Re: ST-LINK/V3 ?
« Reply #36 on: October 31, 2019, 09:57:56 pm »
so it is basically cheaper than buying the MCU, could also be useful ad a small dev board if you don't need too many pins

It is a good value.
STM32F723 if anyone is wondering: https://www.st.com/en/microcontrollers-microprocessors/stm32f723ze.html
216MHz, 512kB flash, 256kB ram.

Yeah not so many pins are broken out: CAN/UART/I2C/SPI/4 GPIO. Maybe 20 usable total?
Also I'm not sure how you'd program it, if those pins are part of the ones that are broken out or not. They might have purposefully avoided letting you do this.

https://www.st.com/content/ccc/resource/technical/document/user_manual/group1/00/14/17/68/0f/01/48/01/DM00555046/files/DM00555046.pdf/jcr:content/translations/en.DM00555046.pdf
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: ST-LINK/V3 ?
« Reply #37 on: October 31, 2019, 11:22:44 pm »
You would likely have to program it using the inbuilt USB DFU interface.
And would likely have to figure out how to get it into the DFU mode to program. but once you do you can just use the cube programmer
 
The following users thanked this post: thm_w

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4778
  • Country: dk
Re: ST-LINK/V3 ?
« Reply #38 on: October 31, 2019, 11:35:51 pm »
so it is basically cheaper than buying the MCU, could also be useful ad a small dev board if you don't need too many pins

It is a good value.
STM32F723 if anyone is wondering: https://www.st.com/en/microcontrollers-microprocessors/stm32f723ze.html
216MHz, 512kB flash, 256kB ram.

Yeah not so many pins are broken out: CAN/UART/I2C/SPI/4 GPIO. Maybe 20 usable total?
Also I'm not sure how you'd program it, if those pins are part of the ones that are broken out or not. They might have purposefully avoided letting you do this.

https://www.st.com/content/ccc/resource/technical/document/user_manual/group1/00/14/17/68/0f/01/48/01/DM00555046/files/DM00555046.pdf/jcr:content/translations/en.DM00555046.pdf

it doesn't mention what the four pin connector cn3 is for, maybe it is swd

 
The following users thanked this post: thm_w

Offline aandrew

  • Frequent Contributor
  • **
  • Posts: 277
  • Country: ca
Re: ST-LINK/V3 ?
« Reply #39 on: November 01, 2019, 01:01:30 am »
I'd love to know wtf was going through their heads screwing with the standard 2x5 0.050" connector. Now you need a stupid adapter board or custom cable to use it for all the existing systems.  :palm:
 

Offline TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: ST-LINK/V3 ?
« Reply #40 on: November 01, 2019, 01:26:46 am »
There are lots of pinouts on ST-LINK-V3MODS but it has yet to appear except as a data sheet. Perhaps a guru can give us a timetable.
 

Offline pigrew

  • Frequent Contributor
  • **
  • Posts: 680
  • Country: us
Re: ST-LINK/V3 ?
« Reply #41 on: November 02, 2019, 03:38:38 am »
it doesn't mention what the four pin connector cn3 is for, maybe it is swd

Yes, it's attached to the SWD port. One can also ask it use USB DFU in order to flash it.

See attached. If someone would draw up a schematic, that'd be great. I'm starting to wonder if the module could be used as a high-speed GPIB adapter.

Here are a few pins, though this could have some typos. (PM me and I'll fix the table)
CN3-1VDD
CN3-2PA14 (SWCLK)
CN3-3GND
CN3-4PA13 (SWDIO)
CN4-1GND
CN4-2nRST
CN5-2PB14(USB DM)
CN5-3PB15(USB DP)
1PB11Bridge UART RX(1)
2PD11Bridge UART CTS
3PD12Bridge UART RTS
4PH7T_JTMS/T_SWDIO
5PG5GNDDetect(2)
6PC7T_JTDO/T_SWO(3)
7PA9Bridge SPI CLK
8GNDGND
9PA11Bridge CAN RX(1)
10PA12Bridge CAN TX(4)
11PC10Bridge UART TX(4)
12PG9T_VCP_TX
13PB3T_JCLK/T_SWCLK(SWO)
14PB4Bridge SPI NSS
15PG14T_VCP_RX
16PB6Bridge I2C SCL
17PB9Bridge I2C SDA
18PE2Bridge GPIO0
19PE4Bridge GPIO1
20PE5Bridge GPIO2
21PE6Bridge GPIO3
22(LoadSW out)Reserved(5)
23PC1Bridge SPI MISO
24GNDGND
25PC2Bridge SPI MOSI
26GNDGND
27GNDGND
28PA1,PF8T_JTDI/NC(6)
29GNDGND
30T_VCC(7)
31PA6T_NRST
32PA7T_SW_DIR
PA0T_VCC (pin 30), divided down
Load_ENPB0(load_EN (w 10k pulldown)
OSC 25MHzPH0 OSC-IN
(VBUS detect???)PB1/ADC?(Vsw divided by (4.7k+2.7k))
LD1_1PA10(through 330 ohm)
LD1_2PA10(through 330 ohm)
LD1_3GND
LD1_4VDD3.3V
LD2ST-Link faultLoad-switch Fault
LD35V/VBUS?5V power + resistor

There are two ESDALC6V1W5 (marking C61) 6.1V Zener ESD devices near the JTAG connector.

There is also a STMPS2151 load-switch.
« Last Edit: November 09, 2019, 03:38:50 pm by pigrew »
 
The following users thanked this post: thm_w

Offline TimCambridge

  • Regular Contributor
  • *
  • Posts: 98
  • Country: gb
Re: ST-LINK/V3 ?
« Reply #42 on: November 02, 2019, 08:19:48 am »
See attached.

It looks as if all (or some?) decoupling caps are on the top. Is that OK (when done carefully)?
 

Offline Fire Doger

  • Regular Contributor
  • *
  • Posts: 208
  • Country: 00
  • Stefanos
Re: ST-LINK/V3 ?
« Reply #43 on: November 02, 2019, 12:53:54 pm »
See attached.

It looks as if all (or some?) decoupling caps are on the top. Is that OK (when done carefully)?

There is no difference on which layer they are.
The important is how far they are. Top far is equal bad to bottom far.
The difference is that at bottom you can place them directly under the pads.

Being carefull doesn't change physics laws.

In picture bellow the trace in circle has some inductance. Longer trace = more inductance.
It may be an issue, it may not. You will find it out at the end...
In this case it wasn't causing any issues (i guess they tested it a lot...), in your case same distance may cause glitches.
Closer is always better.
« Last Edit: November 02, 2019, 12:57:27 pm by Fire Doger »
 

Offline pigrew

  • Frequent Contributor
  • **
  • Posts: 680
  • Country: us
Re: ST-LINK/V3 ?
« Reply #44 on: November 02, 2019, 01:59:55 pm »
It looks as if all (or some?) decoupling caps are on the top. Is that OK (when done carefully)?

It's done this way so that the entire module can be flat on the bottom and surface-mounted onto a larger board.

The GND pads are a ways away from the capacitors, but it's probably fine.

I've added a few more pins to the table I was writing up... still not complete. It looks like there is a load switch on the output to the target, and ESD protection for the JTAG pins.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 7236
  • Country: ca
  • Non-expert
Re: ST-LINK/V3 ?
« Reply #45 on: November 04, 2019, 09:17:15 pm »
Yes, it's attached to the SWD port. One can also ask it use USB DFU in order to flash it.

Nice work.
Looks like PB1 would be the only ADC or DAC pin, otherwise nothing else is broken out.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline pigrew

  • Frequent Contributor
  • **
  • Posts: 680
  • Country: us
Re: ST-LINK/V3 ?
« Reply #46 on: November 04, 2019, 11:08:39 pm »
Yes, it's attached to the SWD port. One can also ask it use USB DFU in order to flash it.

Nice work.
Looks like PB1 would be the only ADC or DAC pin, otherwise nothing else is broken out.

You're right... not too many.

I don't have the board in front of me, but it looks like PB0 goes somewhere, as well as PA1, PA6 and PA7. I have a feeling that they go to the RGB LED, though... So, there are other ADC pins available, but I'm not sure if they are connected to one of the 32 module pads or not. My table is only about half complete, and it'd probably be better to just create a schematic since there are so few components on the board.
« Last Edit: November 04, 2019, 11:32:13 pm by pigrew »
 
The following users thanked this post: thm_w

Offline EmBlocks

  • Contributor
  • Posts: 17
  • Country: nl
Re: ST-LINK/V3 ?
« Reply #47 on: December 09, 2019, 07:09:42 am »
@ frogblender

I'm using the STlinkV3 with a STM32H7 project and it is much faster than the old V2. I'm using my own GDB server https://github.com/EmBitz/EBlink. It's for me (almost) the same as with a J-link.

Also those new boards with integrated V3 like STM32G474 (Nucleo-64) are insane fast.

Only down-side: I also use those STlinkV2 for other vendors like Silabs and NXP but I don't get that working with the STlinkV3.

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15439
  • Country: fr
Re: ST-LINK/V3 ?
« Reply #48 on: December 09, 2019, 03:00:54 pm »
If you want to use OpenOCD, AFAIR, it has support for the V2 but not (yet?) for the V3.
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: ST-LINK/V3 ?
« Reply #49 on: December 09, 2019, 06:37:55 pm »
OpenOCD does now support the v3, however it has to be a reasonably recent build. I think something from 2019 (im not sure the exact date).
I recently manually compiled and installed it on my ubuntu machine and it works great.

However i think im am going to look into EBLink. the ability to auto detect and run the correct script for ST processors sounds very appealing.
 
The following users thanked this post: SiliconWizard


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf