Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot flash Punyforth to ESP8285 with dout #40

Closed
cefn opened this issue Jun 3, 2018 · 1 comment
Closed

Cannot flash Punyforth to ESP8285 with dout #40

cefn opened this issue Jun 3, 2018 · 1 comment

Comments

@cefn
Copy link

cefn commented Jun 3, 2018

Hi there,

I have flashing routines working routinely with the hardware under test, flashing Micropython, Circuitpython Lua(NodeMCU) and Espruino. It is a NodeMCU-M with an ESP8285 (an ESP8266 with 1MB flash) and a CH340 UART.

However, I can't seem to get the punyforth flash.py routine to function properly. Is there anything I can try?

I have overridden the mode to 'dout' as normally required when flashing this module, but I still get...

$ python2 flash.py --flashmode dout /dev/ttyUSB0
Selected modules: ALL
Flashing binaries..
Flashing 0x0: rboot.bin, 0x1000: blank_config.bin, 0x2000: punyforth.bin
Connecting...

A fatal error occurred: Failed to connect to ESP8266
Flashing LAYOUT.tmp
Connecting...

A fatal error occurred: Failed to connect to ESP8266
Flashing 0x52000: APP.tmp, 0x53000: CORE.tmp, 0x56000: DHT22.tmp, 0x57000: FLASH.tmp, 0x58000: FONT57.tmp, 0x59000: GPIO.tmp, 0x5a000: MAILBOX.tmp, 0x5b000: NETCON.tmp, 0x5d000: NTP.tmp, 0x5e000: PING.tmp, 0x5f000: SONOFF.tmp, 0x60000: SSD1306I2C.tmp, 0x62000: SSD1306SPI.tmp, 0x64000: TASKS.tmp, 0x65000: TCPREPL.tmp, 0x66000: TURNKEY.tmp, 0x67000: WIFI.tmp, 0x68000: EVENT.tmp, 0x69000: RINGBUF.tmp, 0x6a000: DECOMP.tmp, 0x6b000: PUNIT.tmp
Connecting...

A fatal error occurred: Failed to connect to ESP8266

@cefn
Copy link
Author

cefn commented Jun 3, 2018

Found a fix. Replacing the esptool.py in the bin directory of the repo with this one...

https://github.com/cefn/esptool/blob/master/esptool.py

...then worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant