I am making progress with using an ES32-WROVER based module but I have run into an odd problem when I try to run an msys2 script from within Eclipse to stop the OpenOCD server.
The script I use to start the OpenOCD server, which I can call perfectly well from Eclipse is:
Code: Select all
#!/bin/bash
echo "Starting OpenOCD"
cd /C/msys32/home/ESPdev/esp/openocd-esp32
bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32-wrover.cfg
Code: Select all
#!/bin/bash
echo "Stopping OpenOCD"
echo "shutdown" | /c/msys32/usr/bin/telnet localhost 4444
Info : accepting 'telnet' connection on tcp/4444
Info : dropped 'telnet' connection
Obviously the OpenOCD server is working but why would it not accept the shutdown command?
Any help much appreciated.