Skip to content

Commit

Permalink
STM32F405.svd: Move the svd file for debugging.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ToveRumar committed Apr 11, 2024
1 parent 28e647b commit e500018
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docs/development/openocd_gdb_debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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!
Expand Down
File renamed without changes.

0 comments on commit e500018

Please sign in to comment.