Skip to content

Commit

Permalink
Merge pull request #1365 from bitcraze/toverumar/move_svd_debug_file
Browse files Browse the repository at this point in the history
STM32F405.svd: Move the svd file for debugging.
  • Loading branch information
ToveRumar authored Apr 11, 2024
2 parents 28e647b + e500018 commit 9bcb278
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 9bcb278

Please sign in to comment.