Open VeniaminGH opened 5 months ago
Update
I have installed STM32 VS Code Extension for VSCode and tried to load Zephyr build with modified launch.json configuration
"serverpath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver",
"stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin",
"stlinkPath": "${config:STM32VSCodeExtension.cubeCLT.path}/STLink-gdb-server/bin/ST-LINK_gdbserver",
"armToolchainPath": "${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin",
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb",
"serverArgs": ["-m","0"],
and it started to work. I will play more to understand what is going on. But one thing I'm certain, that Cortex-Debug is not happy with Zephyr GDB.
After investigation it all boiled down to this line that makes a difference -> don't use Zephyr GDB
"gdbPath":"${config:STM32VSCodeExtension.cubeCLT.path}/GNU-tools-for-STM32/bin/arm-none-eabi-gdb",
Dear All,
Please find issue report I'm experiencing with coretx-debug v1.12.1 using it with VSCode v1.88.1 under Ubuntu LTS v22.04 with NUCLEO-WL55JCx board when trying to run \sample\basic\blinky demo from zephyr-sdk-0.16.5-1
Describe the bug
NUCLEO-WL55JCx is working fine with STM32CudeIDE, have updated STLINK debugger to V3J14M5. Zephyr-SDK installation is working fine with FRDM-K64F boards with VSCode using MCUXpresso plugin. I can also flash and manually GDB debug Blinky example on NUCLEO-WL55JCx board with
west
.west flash
andwest debug
all work are expected using "openocd" version 0.11.0+dev-00728-gb6f95a16c (2024-02-17-23:51) from Zephyr SDK.But I can't do source level debugging using cortex-debug neither with "stlink" nor with "openocd"
To Reproduce Steps to reproduce the behavior:
VSCode Terminal Output for "openocd" servertype
VSCode Termial Output for "stlink" servertype
Expected behavior
I expect to be able to do source level debugging of Zephyr blinky demo on NUCLEO-WL55 board but instead I'm getting this error: Screenshots
Environment:
Please include
launch.json
VSCode workspace is literally followed this https://github.com/KozhinovAlexander/zephyr_vscode_workspace. Below is the content oflaunch.json
I added the following to
Zephyr.code-workspace
after reading https://github.com/Marus/cortex-debug/issues/598, but it did not helped. Adding it tolaunch.json
makes no difference.Attach text from
Debug Console
stlink server type output
openocd server type output
Both outputs are fundamentally the same
Additional context
Manual execution of of the following works as expected. I do get all symbols and version info
both produce about 50kb files
produce the following output
Zephyr
west debug
outputI'm able to execute (gdb) run and see LED blinking
Any support or help is highly appreciated. Thank You!