ESP32 + Jlink Timeout problem

Firstly, you need to get it working in “upload” mode. So, pio run -t upload should work via J-Link. only if it works, you can move to debugging. In your case, it looks like an issue with drivers/zadig/cables. Have you tried different options described in this topic ESP32 + J-link debugger does not start ?