Jumpering the ESP-WROVER-KIT-VB for debug

With many, many thanks to @ maxgerhardt for his patience and help with my previous question, I can now debug, after a fashion.

However, it seems ot me that when I have jumpered to Enable JTAG functionality, PlatfomIO cannot upload my code:

Executing task: C:\Users\me.platformio\penv\Scripts\platformio.exe run --target upload <

Processing esp-wrover-kit (platform: espressif32; board: esp-wrover-kit; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 1.11.0 > Espressif ESP-WROVER-KIT
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (ftdi) On-board (ftdi) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), tool-mkspiffs 2.230.0 (2.30), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0)
LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies…
Dependency Graph
|-- 1.0
Linking .pio\build\esp-wrover-kit\firmware.elf
Retrieving maximum program size .pio\build\esp-wrover-kit\firmware.elf
Checking size .pio\build\esp-wrover-kit\firmware.elf
Building .pio\build\esp-wrover-kit\firmware.bin
esptool.py v2.6
Memory Usage → Redirecting...
DATA: [= ] 12.0% (used 39272 bytes from 327680 bytes)
PROGRAM: [===== ] 48.4% (used 634750 bytes from 1310720 bytes)
Configuring upload protocol…
AVAILABLE: esp-prog, espota, esptool, ftdi, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port…
Use manually specified: COM10
Uploading .pio\build\esp-wrover-kit\firmware.bin
esptool.py v2.6
Serial port COM10
Connecting…__
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: c4:4f:33:17:2e:71
Uploading stub…
Running stub…
Stub running…
Configuring flash size…
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Compressed 15872 bytes to 10319…

A fatal error occurred: Timed out waiting for packet content
*** [upload] Error 2
=================================================================================================== [FAILED] Took 14.02 seconds ===================================================================================================
The terminal process terminated with exit code: 1

If I power off the board, remove the JTAG jumps and reconnect, I can upload, but then I have to power off again to reattach the JTAG jumpers in order to be able to debug.

What am I doing wrongly?