STMicroelectronics / OpenOCD

STMicroelectronics customized version of OpenOCD supporting STM32 MCUs and MPUs
Other
123 stars 32 forks source link

STM32H5 Error: The selected transport doesn't support this target #27

Open DBY29681 opened 3 months ago

DBY29681 commented 3 months ago

Open On-Chip Debugger 0.12.0-00024-g34afaa939 (2024-05-31-15:10) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "hla_swd". To override use 'transport select '. Error: The selected transport doesn't support this target D:/Environment/MSYS64/mingw64/bin/../share/openocd/scripts/target/stm32h5x.cfg:55: Error: in procedure 'script' at file "embedded:startup.tcl", line 28 at file "D:/Environment/MSYS64/mingw64/bin/../share/openocd/scripts/target/stm32h5x.cfg", line 55

MartinPoupa commented 2 weeks ago

Hello, i have similar problem. I am training flesh stm32H503 via STM32CubeMX and VSCode on ubuntu 22. Thanks you for help.


Open On-Chip Debugger 0.12.0-00024-g34afaa939 (2024-08-29-13:52) [https://github.com/STMicroelectronics/OpenOCD]
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Error: The selected transport doesn't support this target
/usr/local/bin/../share/openocd/scripts/target/stm32h5x.cfg:55: Error: 
in procedure 'script' 
at file "embedded:startup.tcl", line 28
at file "./openocd.cfg", line 8
at file "/usr/local/bin/../share/openocd/scripts/target/stm32h5x.cfg", line 55
cosmikwolf commented 3 days ago

Having this same problem, with the STM32H563 Nucleo 144 board

cosmikwolf commented 2 days ago

I found that if I set the CHIPNAME to something that wasn't stm32h5x, it diddn't like it. I had it set to STM32H563 before. I just removed the chipname setting all together, since it is set in the stm32h5x.cfg and it works now

DBY29681 commented 1 day ago

Can you share your configuration? I remember configuring the target as stm32h5x and encountering this error where the linking script cannot find the target under the openocd target