-
Notifications
You must be signed in to change notification settings - Fork 269
Description
I try to setup a devcontainer for stm32 with jlink. I have windows with wsl2 with a running docker container. Inside the container I have stm32cubeclt installed and cortex debug extension. I started Jlink GDB server on Windows it connects to the uC after that start debug inside the container with that configuration:
{ "name": "J-Link cortex-debug gdbServer", "type": "cortex-debug", "request": "launch", "serverpath": null, "servertype": "external", "gdbTarget": "host.docker.internal:2331", "cwd": "${workspaceFolder}", "executable": "${command:cmake.launchTargetPath}", "armToolchainPath": null, "device": "STM32xxxx", "interface": "swd", "runToEntryPoint": "main", //"main" or "ResetISR" "rtos": "FreeRTOS", "svdFile": "STM32xxx.svd", },
The issue is that the gbd session is working, but it does not flash the compiled SW. I can use cortex debug on windows with vscode and usb connection without any problem.
What is missing from the config or maybe on docker side.
Thank you