From: Laurent <lau...@pr...> - 2024-03-20 14:26:08
|
Thank you for your prompt reply. I've put the logs displayed by vscode at the end of the message. What happens if you try running OpenOCD 0.12.0 standalone from the command line using `openocd -f board/stm3241g_eval_stlink.cfg`? You're right, by executing openocd via a terminal and disabling the launch of openocd in vscode, I was able to debug my executable. However, I can't understand why it works with version 10 of openocd and not version 12... do you have any ideas? here are the logs to which vscode gives me access: Starting: "/path/to/openocd" -f board/stm3241g_eval_stlink.cfg --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (20316) <-logout\n"},"seq":8} --> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (20383) Send Event AD7MessageEvent\n"},"seq":10} 1: (20383) Send Event AD7MessageEvent --> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"17.8.20302.1","VS.Diagnostics.Debugger.HostVersion":"17.8.20302.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.ErrorCode":1005,"VS.Diagnostics.Debugger.Launch.IsError":true}},"seq":12}--> R (launch-2): {"type":"response","request_seq":2,"success":false,"command":"launch","message":"Unable to start debugging. Debug server process failed to initialize.","body":{"error":{"id":1005,"format":"Unable to start debugging. Debug server process failed to initialize."}},"seq":14} On Wednesday, March 20th, 2024 at 12:40, Tommy Murphy <tom...@ho...> wrote: > Sounds like the VSCode attempt to run OpenOCD 0.12.0 fails for some reason. Does VSC provide any further logging or the option to get more details? > > What happens if you try running OpenOCD 0.12.0 standalone from the command line using `openocd -f board/stm3241g_eval_stlink.cfg`? |