Part Number: SK-AM62B-P1
Hello,
I'm trying to setup OpenOCD for gdb debugging within VS code in my WSL2 environment. I installed the two TI VS code extensions (TI Embedded Debug and TI Embedded Development). Now, when I start a debug session, the script is trying to setup OpenOCD with ports 50000 and up. For some reason, I get a bind error on port 50001 because it is in-use. I ran lsof and netstat and didn't find any process using that port, so not sure who is using it. So, I went into scripts/board/ti_am625evm.cfg and added this line to use port 3333 instead:
gdb_port 3333
Now, OpenOCD starts fine on that port and creates gdb servers on ports 3333-3339 for the different cores. However, when arm-none-eabi-gdb is started, it is still trying to connect to OpenOCD remote target using port 50000 and it fails. How do I tell the startup script to use port 3333 instead of 50000 for both openocd and arm-none-eabi-gdb? I tried adding this line in my launch.json but it didn't like that property: