ESP-Prog with Platformio works.... but

Brand new to esp-prog and pretty new to Platformio. Got the debug working after a couple of attempts, ZADIG installed the correct driver for Dual RS232-HS(0) and Dual RS232-HS(1) remains as a Com port.

Using the example Blink file for starters and my platformio.ini is:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino

upload_protocol = esp-prog
debug_tool = esp-prog
debug_init_break = tbreak setup

When I compile all goes as expected until the following appears:

*WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release*.

I realise it is just a warning, does anything need to be done to alleviate it?

The second issue is:

Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED

But the programme continues to compile albeit with 4 iterations of:
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **

    RAM:   [          ]   4.7% (used 15356 bytes from 327680 bytes)
    Flash: [==        ]  16.1% (used 210941 bytes from 1310720 bytes)
    esptool.py v3.0
    Configuring upload protocol...
    AVAILABLE: esp-prog, espota, esptool, 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 = esp-prog
    Uploading .pio\build\esp32dev\firmware.bin
    Open On-Chip Debugger  v0.10.0-esp32-20201202 (2020-12-02-17:38)
    Licensed under GNU GPL v2
    For bug reports, read
            http://openocd.org/doc/doxygen/bugs.html
    debug_level: 1

    adapter speed: 20000 kHz

    *WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release*.
    adapter speed: 20000 kHz

    Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
    ** Programming Started **
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    ** Programming Started **
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    ** Programming Started **
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    ** Programming Started **
    ** Programming Finished **
    ** Verify Started **
    ** Verified OK **
    shutdown command invoked
    ================================= [SUCCESS] Took 17.49 seconds =================================

As I said it all appears to work, the chip gets programmed, the programme runs as expected as does debugging. The messages have me confused (not difficult).
Any thoughts?

This stems from the fact that the board defintion for board = esp32dev is to use a certain openocd configuration

However in the current version of openocd this config file simply sets one option and refers to another config file.

This is OK for now, but will be addressed in Issues · platformio/platform-espressif32 · GitHub later.

Meaningless – this just says that openocd has tried to open another USB device with libUSB, but failed. (Probably the other interface of the Dual RS232-HS / FTDI FT2332H device). In the end, it finds and opens the right device and JTAG communication takes place. Duplicate of this.

Many thanks for the reply. It all makes sense now!