Upload in Arduino IDE fails after using PlatformIO: "No DFU capable USB device available"

I went through all tips, but unfortenutely it doesn't work for me.
I could once upload a sketch via platformio, but now either with platformio nor with the Arduino IDE I can't upload anything. I get always the message "No DFU capable USB device available".

Checking the device manager I also don't see any dfu device. But under USB-devices the device "USB JTAG/serial debug unit" is listed which disappears if I discinnetect the Nano ESP32. And this is the same on my PC and on my laptop.

Does anybody have an advice for me?

Thanks and regards
Ralf

/edit: I am runing Win 11 and both, and the sketch I could upload once is still running

OK, I am answering myself. Seems that my sketch (compiled with platformio) has changed VID/PID. By using Enter Bootloader Mode the correct devices are showing up.

But I have still to check how to use serial communication via USB.
Regards
Ralf

Hello @elral I am glad you were able to get the correct device. Were you able to upload sketches to it? If not could you please indicate the status of the LED whenever you get to the bootloader mode?

Hello psousalima,
yes, I can upload sketches now. One have to be carefull with the double click, it must not be too fast. And sometimes an additional press after a short time is required. After this is done the serial port gets back it's correct VID/PID and the dfu port shows up.

Another topic is that after a serial connection with while using DTR the VID/PID changes, so the COM port disappears and a new COM port comes back. In this status also the dfu port changes to "USB JTAG/serial debug unit" and no upload is possible. So the above metioned procedure has to be done. But I guess this is another topic which might be related to platformio.

Thanks and regards
Ralf