1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Merge pull request #7946 from erstec/erstec-debugging-docs

Update Windows 11 - VS Code - WSL2 - Hardware Debugging.md
This commit is contained in:
Darren Lines 2022-04-03 22:26:34 +01:00 committed by GitHub
commit adaef39172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,13 @@ sudo udevadm control --reload-rules
## Debugging
- Connect SWD from ST-Link to FC board (at least GND, SWDIO and SWCLK should be connected, but connecting Vref to +3.3V pad and RESET accordingly will improve debugging stability a lot!)
- Power FC (can be powered from USB)
- Use VS Code Run -> Start Debugging (F5) menu
- Select (Debug) CMake configuration
- Build required target from VSCode
- Use VS Code Run -> Start Debugging (F5) menu (make sure debugging target is "Cortex Debug")
**NOTE:** sometimes "autobuild" script is not performed well, it is recommended to repeat last two steps every time you change code and need "reflash-debug"
**NOTE:** after long and/or intensive debugging OpenOCD can crash, in this case just reopen VSCode, replug ST-Link USB, reattach USB to WSL and start debug session again
# Troubleshooting
- OpenOCD shows Permission denied during "Flashing":