2024-02-12 06:05 AM
Used this ST-Link V2 with W10 some years ago. Now on Linux I want to use it with openocd and got error:
ST-Link version does not support DAP direct transport
Most likely the cable adapter needs update.
But the STLinkUpgrade.jar reported Unexpected flash size after opening the cable in update mode.
What can I do to use the cable?
2024-02-12 06:15 AM
1, Which st-link v2 - the "usb-stick" ?
2. Version of st-link firmware on it ?
3. Use with ..IDE or CubeProgrammer (on Linux, i use it also) ?
4. Check with CubeProgrammer - connect - what it telling ?
2024-02-12 06:26 AM - edited 2024-02-12 07:23 AM
There are low cost CMSIS-DAP dongles if you need such things.
There is also a tool to convert ST-LINK/V2-1 to Segger J-LINK OB
2024-02-12 06:32 AM
@Andreas_Engineer wrote:this ST-Link V2
What "ST-Link V2"? Did you mean to add a photo or link?
Beware that any so-called "ST-Link V2" looking like this:
is not a genuine ST product - so you get what you pay for!
2024-03-18 12:54 PM
I am getting the same error on a genuine ST Link v2. My StLink looks like https://uk.farnell.com/stmicroelectronics/st-link-v2/icd-programmer-for-stm8-stm32/dp/1892523
2024-03-18 12:59 PM
I have been using CubeIde 1.10.0. But as part of project migration had to upgrade to 1.15.0. But the ide wont download the application image till I upgrade the firmware of StLink. Unfortunately, stuck with the STLink firmware upgrade!
2024-03-18 01:08 PM
again:
4. Check with CubeProgrammer - connect - what it telling ?
2024-03-18 01:23 PM
Please see below.
I tried to upgrade the firmware using CubeProgrammer too. Unfortunately it reports STLinkUpgrade.jar not found.
2024-03-18 03:48 PM
1. voltage 0,6V -> VDD is not connected to st-link (refuses to work usually), connect this vdd .
2. Data read success. -- no error here.
3. What shows CubeProgrammer if you just connect to your target cpu ?
2024-03-19 01:56 AM
1. Why does it require the target VDD to be connected to update st-link firmware? Isn't it powered by the USB host bus? The target does not expose VDD. We only use SWDIO,SWDCLK and GND.
3. The log above is when I click connect. It shows no error. So I guess, I will be able to flash the target images. But not be able to debug from CubeIde without updating st-link firmware.
I am guessing the flash size check of st-link was added recently? Can you please let me know the last version of the IDE which does not have this check? I guess I will have to revert to that version till this is fixed.