I’m using the WROVER Dev Kit (v3) and figured out how to use the JTAG port on MacOS - the reason for me to use the JTAG connection is not the debugger, but so I can keep another window open, listening to the serial port, while uploading new code revisions in the main CLI window.
My question is: can the openocd setup be configured to suppress its “Info : …” messages? There are 130+ lines, telling me all is well. Doh.
Also, somewhat surprisingly, JTAG uploads take more time than esptool upload. Maybe there’s a way to keep openocd running, and have pio connect into it whenever it needs to upload?
PS. And while on this topic: is there a way to further streamline uploads? Right now, we’re resending multiple flash partitions, which makes the process considerably slower than with STM32 builds, for example. It might be useful to have a full upload config for initial setup, and then just a re-flash of the code changes, just as -t uploadfs only re-flashes the SPIFFS partition.
Yes, openocd file tweaking works - ~/.platformio/packages/tool-openocd-esp32/share/openocd/scripts/target/esp32.cfg - edited to add debug_level 1 reduces verbosity a lot (29 lines now). Excellent, thanks for the tip. My vote would be to include this. Here is what remains, it’s more than enough for day to day use IMO:
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
debug_level: 1
** Programming Started **
auto erase enabled
wrote 204800 bytes from file .pioenvs/esp32doit-devkit-v1/firmware.bin in 3.567845s (56.056 KiB/s)
** Programming Finished **
** Programming Started **
auto erase enabled
wrote 20480 bytes from file /Users/jcw/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin in 1.022751s (19.555 KiB/s)
** Programming Finished **
** Programming Started **
auto erase enabled
wrote 4096 bytes from file /Users/jcw/Code/jcw/pio/esp32-wrover/.pioenvs/esp32doit-devkit-v1/partitions.bin in 0.634305s (6.306 KiB/s)
** Programming Finished **
** Programming Started **
auto erase enabled
wrote 8192 bytes from file /Users/jcw/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin in 0.704276s (11.359 KiB/s)
** Programming Finished **
shutdown command invoked
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
Your git version fails without the -v flag: Unexpected command line argument: 1 - and with the -v it’s verbose, as expected. I haven’t set upload_flags.
Looks like openocd doesn’t like that way of calling it: