diff --git a/docs/development/openocd_gdb_debugging.md b/docs/development/openocd_gdb_debugging.md index 36c737713c..c3e92ed970 100644 --- a/docs/development/openocd_gdb_debugging.md +++ b/docs/development/openocd_gdb_debugging.md @@ -181,7 +181,7 @@ Inside of the file, replace everything with the following: "request": "launch", "type": "cortex-debug", "device": "STM32F405", - "svdFile": "STM32F405.svd", + "svdFile": "${workspaceRoot}/tools/debug/STM32F405.svd", "servertype": "openocd", "configFiles": ["interface/stlink-v2.cfg", "target/stm32f4x.cfg"], "runToMain": true, @@ -210,10 +210,6 @@ Inside of the file, replace everything with the following: > **Note: Debugging thread aware** > To debug thread aware you need to add ```"rtos": "FreeRTOS"``` to your configuration in the launch.json file - however, while this can be very handy we also occasionally experienced some issues with setting breakpoints while using this configuration. -#### Installing the SVD file - -Now for the SVD file: just download it from [here](STM32F405.svd) and into the firmware root dir, or download it from the ST website (search for `svd stm32f4`). Make sure it has the exact name of ```STM32F405.svd``` ! - ### Debug! After setup, go to the 'Run and Debug' tab of VS Code (on the left sidebar, the icon with the little bug next to the play button), select the chip you want to debug from the drop-down menu at the top of the pane, and hit the play button! diff --git a/docs/development/STM32F405.svd b/tools/debug/STM32F405.svd similarity index 100% rename from docs/development/STM32F405.svd rename to tools/debug/STM32F405.svd