Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Atombuilder
#22558 Hello iothing,

Your answer is a nice one, now I have hope to restore my module :)

I have a direct "ground" connection from the serial module to the esp8266 module. But knowing that there is nothing lost I will try to get a connection while programming. I used esptool.py on Linux but maybe it's worth to try the Windows tools.

Regards,
Roland
User avatar
By iothing
#22559 Sometimes it helps to reset the esp after power up to be able to flash. You'll know that the reset was successful if the blue led flashes briefly (that is the bootloader message). You can reset the device by touching the rst pin with a piece of wire as it's very sensitive - or the official way: pull it low for a second by connection to gnd. If the blue led does not flash disconnect rx and tx just to make sure there is nothing wrong with these lines.
User avatar
By Atombuilder
#22716 You are right, it should be GPIO0 instead of GPIO1. Unfortunately it's a typo in my post, not in my wiring.

However, today I played with it again and I have made some progress :) At first I disconnected all wires to start all over in a clean setup. But I still got this output:

Code: Select allpeppermint Downloads # ./esptool.py -p /dev/ttyUSB0 write_flash 0x0000 boot_v1.1.bin 0x01000 user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
Connecting...
Traceback (most recent call last):
  File "./esptool.py", line 482, in <module>
    esp.connect()
  File "./esptool.py", line 158, in connect
    raise Exception('Failed to connect')
Exception: Failed to connect


So I started looking for new hints but I found nothing, except a diagram that showed me the pins of my board. There seems to be a reset pin. And reset pins are created to reset an electrical circuit so I connected the reset pin shortly to GND. And the blue led flashed for a moment (boot message?)...

Then I tried again to flash the thing:

Code: Select allpeppermint Downloads # ./esptool.py -p /dev/ttyUSB0 write_flash 0x0000 boot_v1.1.bin 0x01000 user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
Connecting...
Erasing flash...
Writing at 0x00006c00... (100 %)
Erasing flash...
Writing at 0x00036c00... (100 %)
Erasing flash...
Writing at 0x00082800... (100 %)
Erasing flash...
Writing at 0x00088000... (100 %)

Leaving...
peppermint Downloads #


That looks promising :o

So now I have a new firmware in my esp8266 which is a big step forward. In minicom I can see some garbage when I reset the device, but I didn't get a ready message yet. Probably a baud rate issue....

I'll keep you informed and thanks all for your replies.