build
mkdir build
cd build
rm -rf *
cmake -DBOOTSTRAP_VERSION=1 ..
cmake -DDEBUG=1 -DBOOTSTRAP_VERSION=1 ..
cmake -DDEBUG=1 -DBOOTSTRAP_VERSION=1 -GNinja .. ## use ninja
make -j
ninja
cp src/openocd.exe ../../../dev/nlp_sdk/tools/openocd/bin/
run server with debug
#openocd.sh
set style enabled off
file bin/openocd.exe
set args -s scripts -c "codasip_suppress_first_gdb_ack on" -c "bindto 0.0.0.0" -c "gdb_port 3333" -c "telnet_port 4444" -c "tcl_port disabled" -f "scripts\codasip\digilent-jtag-hs2-2wire-d2xx.cfg" -f"scripts\codasip\openocd-jtag.cfg" -c init -c halt
# mingw64
cgdb -d gdb -- -x openocd.sh
client connect
LLDB:
bk3-32IMC-Upid-ca-lldb
gdb-remote 192.168.4.xxx:3333
GDB:
arm-none-eabi-gdb
target remote 192.168.4.xxx:3333