esptool fatal error

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

esptool fatal error

Postby kostyan5 » Wed Jan 24, 2018 10:35 pm

Something was recently changed in ESP-IDF and now I can no longer program at 1500000 baud. The max it will do is 115200. Anything higher than that and I get:

A fatal error occurred: Invalid head of packet

Any ideas what could be causing this? Nothing changed but the esp-idf was updated. 1500000 baud used to work just fine.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: esptool fatal error

Postby WiFive » Wed Jan 24, 2018 10:41 pm


ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esptool fatal error

Postby ESP_Angus » Wed Jan 24, 2018 11:21 pm

Hi kostyan,

What OS are you on and which esptool version are you using (it's printed in the output)?

esptool v2.2 (which was just updated on IDF master branch) had a bug with high baud rates which is fixed in v2.2.1. We'll be updating the version in ESP-IDF shortly.

In the meantime, you can update it yourself by

Code: Select all

cd components/esptool_py/esptool
git fetch origin
git checkout v2.2.1
If this doesn't resolve the issue, please provide more details about your host OS, development hardware, and full output from esptool.py.

Angus

kostyan5
Posts: 50
Joined: Mon Mar 06, 2017 3:16 pm

Re: esptool fatal error

Postby kostyan5 » Thu Jan 25, 2018 3:45 pm

ESP_Angus, thanks for help. Updating esp tool to 2.2.1 fixed the issue.

Who is online

Users browsing this forum: Google [Bot] and 146 guests