Hello, I mainly use segger for debugging and do not have issues with it, but when i try to use OpenOCD I run into an issue due to our IT policies.
The policies do not like exe’s being executed outside of specific folders. Is it possible to change the location from the user’s local appdata to a custom location?
I’ve had slight success with manually copying the whole OpenOCD folder into my source directory and using the Custom GDB Stub option with the folowing settings:
Command: $(SourceDir)\com.sysprogs.arm.openocd\bin\openocd.exe
Arguments: -c “gdb_port 60729” -c “telnet_port 60727” -f interface/stlink.cfg -f target/stm32g0x.cfg -c init -c “reset init” -c “echo VisualGDB_OpenOCD_Ready”
Working directory: $(SourceDir)\com.sysprogs.arm.openocd\share\openocd\scripts
TCP port for GDB: 60729
I am just trying to do some quick and dirty debugging with a nucleo board and would love to use the on-board ST-Link instead of haveing to wire up the segger everytime