Skip to content

STM32 + Jlink + Docker + Vscode #1180

Description

@totti001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions