Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 1 month ago.
How to debug STM32F746-disco on vs code?
Hi - I've imported a working blinky project for F746G-disco into VS code and tried stting set it up as per various instructions.
"debugServerArgs": "-f \"C:/Program Files/GNU MCU Eclipse/OpenOCD/0.10.0-5-20171110-1117/scripts/board/stm32f7discovery.cfg", the debugserverpath is C:/Program Files/GNU MCU Eclipse/OpenOCD/0.10.0-5-20171110-1117/bin/openocd.exe
but I get 'VScode error Unable to start debugging. Debug server process failed to initialize'. Anyone any ideas? Thanks
DEBUG CONSOLE: debug console: 1: (551) STDERR: For bug reports, read 1: (551) STDERR: http://openocd.org/doc/doxygen/bugs.html 1: (557) STDERR: Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD 1: (558) STDERR: adapter speed: 2000 kHz 1: (558) STDERR: adapter_nsrst_delay: 100 1: (558) STDERR: srst_only separate srst_nogate srst_open_drain connect_deassert_srst 1: (559) STDERR: Info : Listening on port 6666 for tcl connections 1: (560) STDERR: Info : Listening on port 4444 for telnet connections 1: (561) STDERR: Info : Unable to match requested speed 2000 kHz, using 1800 kHz 1: (561) STDERR: Info : Unable to match requested speed 2000 kHz, using 1800 kHz 1: (561) STDERR: Info : clock speed 1800 kHz 1: (741) STDERR: Info : STLINK v2 JTAG v29 API v2 SWIM v18 VID 0x0483 PID 0x374B 1: (742) STDERR: Info : using stlink api v2 1: (748) STDERR: Info : Target voltage: 3.234782 1: (764) STDERR: Warn : Silicon bug: single stepping will enter pending exception handler! 1: (834) STDERR: Info : stm32f7x.cpu: hardware has 8 breakpoints, 4 watchpoints 1: (863) STDERR: Info : Listening on port 3333 for gdb connections 1: (10531) <-logout
1 Answer
7 years, 1 month ago.
Does this help? https://os.mbed.com/questions/79289/How-to-get-vscode-debugging-working-with/ it has instructions for another OpenOCD board.