You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to run the debugger on a "Generic STM32L0 series" board, the "gdb-server" console reads the following error:
embedded:startup.tcl:28: Error: Can't find target/stm32l0x.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 28
The launch.json'sconfigFiles section contains target/stm32l0x.cfg, but the file does not exist in xpack-openocd-0.12.0-3/openocd/scripts/target (nor in the latest 0.12.0-4). Instead there's a target/stm32l0.cfg file. When I update the launch.json to use the config that exists (without the x) the debugger starts without errors.
To Reproduce
Install STM32 Mcu based boards in the Boards Manager
Select the "Generic STM32L0 series" with the "/dev/cu.usbmodern1202 Serial Port (USB)"
File -> Examples -> Basics -> Blink
Press the "Start Debugging" button on the top left bar
Notice the error in the "gdb-server" console
Desktop (please complete the following information):
OS: macOS 14.5 (Apple M2)
Arduino IDE version: 2.3.2
STM32 core version: 2.8.1
Upload method: SWD
Board (please complete the following information):
Name: NUCLEO-L010RB
Hardware Revision: Rev C
Extra hardware used if any: No additional hardware. But the STLINK is broken off and is connected via CN7.
Activity
fix: wrong debug target config for stm32l0 and stm32l1
fpistm commentedon Aug 12, 2024
Thanks @nemtsov for pointing this.
It is now fixed.