How to set custom esptool "--before" reset method in PlatformIO
Use these options:
board_upload.before_reset = usb_reset
board_upload.after_reset = no_reset
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow