cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards

Home Page:https://cyberman54.github.io/ESP32-Paxcounter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid head of packet (0x46): Possible serial noise or corruption

heaversm opened this issue · comments

Was able to build successfully, but in the process of uploading, I get

MAC: 4c:75:25:d4:fe:98
Uploading stub...
Running stub...

A fatal error occurred: Invalid head of packet (0x46): Possible serial noise or corruption.
*** [upload] Error 2
=================================================================== [FAILED] Took 27.13 seconds ===================================================================

Environment    Status    Duration
-------------  --------  ------------
usb            FAILED    00:00:27.131
============================================================== 1 failed, 0 succeeded in 00:00:27.131 ==============================================================
The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.

Any ideas for how to troubleshoot this? I get it consistently.

I have also occasionally gotten:

Uploading stub...

A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out)
*** [upload] Error 2
=================================================================== [FAILED] Took 12.95 seconds ===================================================================

Environment    Status    Duration
-------------  --------  ------------
usb            FAILED    00:00:12.954
============================================================== 1 failed, 0 succeeded in 00:00:12.954 ==============================================================
The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.

Please post board type and platformio.ini