I am working on a project which has a Teensy (3.1/3.2) and an ESP8266 board. I am using PlatformIO (Core 3.5.0rc6) with Atom as the IDE. The two components of the program (host, esp) build with no errors, the host uploads successfully to the teensy; however the ‘esp’ upload fails as follows:
Looking for upload port…
Auto-detected: COM3
Uploading .pioenvs\esp\firmware.bin
esptool.py v1.2-dev
Connecting…
Running Cesanta flasher stub…
A fatal error occurred: Invalid head of packet (‘\xcd’)
I get the same error if I run the upload command from a Windows Command Window. Interestingly if I run this command:
esptool.py -p COM3 write_flash 0x0 .pioenvs\esp\firmware.bin
from the Command Window, the (esp) program loads successfully.
The pertinent section of the .platformIO.ini file looks like this:
[env:esp]
src_filter = +<common/>,+<esp/>
# TODO: enable -Werror once platformio published v2.4 of esp8266/Arduino (pr #3271)
build_flags = -Wall -Isrc/common -Isrc/esp -DHAVE_STRLCPY -DHAVE_STRLCAT
platform = espressif8266
framework = arduino
board = esp_wroom_02
extra_scripts = tools/platformio_cfg_esp.py
lib_ldf_mode = deep
lib_ignore = NMEA2000-Teensy, FlexCAN_Library, Time
lib_deps =
${common.lib_deps_common}
Adafruit NeoPixel
elapsedMillis
*GitHub - me-no-dev/ESPAsyncTCP: Async TCP Library for ESP8266
*GitHub - me-no-dev/ESPAsyncWebServer: Async Web Server for ESP8266 and ESP32
Does anyone have any thoughts on why the ‘esp’ upload fails?
thanks,
Ron