open-dynamic-robot-initiative / master-board

Hardware and Firmware of the Solo Quadruped Master Board
BSD 2-Clause "Simplified" License
120 stars 41 forks source link

A fatal error occurred: Timed out waiting for packet header #137

Closed sofiakwok closed 1 year ago

sofiakwok commented 1 year ago

I am having issues flashing the master board, following the exact steps given on https://github.com/open-dynamic-robot-initiative/master-board/blob/master/firmware/README.md. I am using Ubuntu 20.04 and python 3.8.10.

When I run espefuse.py set_flash_voltage 3.3V, I get the following message:

Connecting........_

Enable internal flash voltage regulator (VDD_SDIO) to 3.3V.
The following efuses are burned: XPD_SDIO_FORCE, XPD_SDIO_REG, XPD_SDIO_TIEH.
This is an irreversible operation.
Type 'BURN' (all capitals) to continue. 

I type BURN and successfully burn the pins. I then source the esp environment variables from master-board/firmware and roll back to the older version of esp-idf (8d1a9c0).

When I run make flash, I get the following error message:

Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
/home/sofia/esp/esp-idf/tools/check_python_dependencies.py:22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Python requirements from /home/sofia/esp/esp-idf/requirements.txt are satisfied.

App "masterboard" version: v1.0.5-57-g361f446-dirty
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x10000)...
esptool.py v2.7-dev
Serial port /dev/ttyUSB0
Connecting........_
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 0c:dc:7e:e9:5a:9c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 2000000
Changed.
Configuring flash size...

A fatal error occurred: Timed out waiting for packet header
make: *** [/home/sofia/esp/esp-idf/components/esptool_py/Makefile.projbuild:67: flash] Error 2

I am confused on why it is timing out waiting for the packet header after it is already able to see the board. If anybody else has experienced a similar error advice would be appreciated!

sofiakwok commented 1 year ago

Resolved! I had to reduce the baud rate to 115200 from the suggestions on this post (https://odri.discourse.group/t/flashing-the-master-board-timed-out/267/3).

emrecemal commented 3 months ago

I still have the same issue. Changing the boud rate didn't help, can someone help?