Platformio.exe device monitor stops the execution on a device

Aha, so the device is in bootloader mode. Likely caused by the serial monitor setting the DTR and RTS pins in a “position” that causes reboot to bootloader through the auto-reset circuit.

Please try all 4 possible combinations of monitor_rts and monitor_dtr being 0 or 1 per this topic and use the “Upload and Monitor” project task.