2020-07-19 05:49 AM
I am trying to debug the STM32C8T6 with st-link and STM32CubeIDE, following errors happened, I need help to solve this problem,
"
STMicroelectronics ST-LINK GDB server. Version 5.5.0
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
The detected ST-Link firmware version does not support the DAP read command
Waiting for debugger connection...
Debugger connected
The detected ST-Link firmware version does not support the DAP read command
-------------------------------------------------------------------
STM32CubeProgrammer v2.4.0
-------------------------------------------------------------------
Error: ST-LINK V1 not supported
Error: ST-LINK V1 not supported
Error: ST-LINK v1 not supported.
Encountered Error when opening C:\ST\STM32CubeIDE_1.3.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.3.0.202002181050\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Debugger connection lost.
"
One thing to mention that I have updated the ST-link firmware to V1J13S4 STM8/STM32 debugger from older version by clicking the menu->help->st-link update
2020-07-19 09:57 AM
> Error: ST-LINK V1 not supported
ST-Link V1 is not supported by STM32CubeIDE or STM32CubeProgrammer.
2020-07-19 12:43 PM
Hi, you can buy original new STLink V3 mini at affordable prices.
Stlink V3 is quite expensive, carry a lot of functionality but I don't like too much casing and connectivity mapping.
A lot of cheap V2 clone are on market and I use on regular basis in parallel to originals ST board and stand alone unit.
Clone are cheap but miss some functionality from ST Brand, they always work on simple usage.
About old V1 you can see here:
Regards
2020-07-24 10:56 PM
yes, I have used IAR 5.4, it worked now, thanks
2020-07-24 10:57 PM
Thanks for your good suggestion, maybe I will buy V3 next step.
2020-07-25 02:08 AM
Additionally J-Link EDU Mini is another great inexpensive debug probe.
2020-07-26 09:06 PM
Hi Piranha, yes it is a good alternative but remember about licensing:
---> Licensing: J-Link EDU Mini may only be used for non-commercial educational purposes <---
Segger il a good independent debug tools, it support multi vendor part. No idea how perform compared to new Stlink V3
2020-09-05 02:34 AM
Although debug is not supported, you still can use st-link v1 to perform flash and run WITHOUT debug in STM32CubeIDE:
Now after writing some code you can perform build and run by pressing Ctrl+B and then Ctrl+F11. It is very convenient, because you do not need to open st-link utility manually, "flash and run" is performed by pressing Ctrl+F11 hotkey without leaving CubeIDE.
I just tried this method with latest version of STM32CubeIDE and ST-LINK Utility and it works very well.
2020-09-05 04:11 AM
Hi Georgy, good hack, but why settle for less when applying two simple wire you can convert?
STLink V2 enable debug too and is upgradeable to last version so it support all devices.
As I wrote, STLink V3 has some cheap part named mini, mod.
Appreciated the solution to still use as programmer.