From e500018816df60cf88ac36a824fac11fd951d263 Mon Sep 17 00:00:00 2001 From: Tove Rumar Date: Thu, 11 Apr 2024 14:18:21 +0200 Subject: [PATCH] STM32F405.svd: Move the svd file for debugging. Move the svd file for debugging to a tools-location. This way the user does not have to move this file around to debug. Also change this in the documentation --- docs/development/openocd_gdb_debugging.md | 6 +----- {docs/development => tools/debug}/STM32F405.svd | 0 2 files changed, 1 insertion(+), 5 deletions(-) rename {docs/development => tools/debug}/STM32F405.svd (100%) 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