RTS = CH_PD
DTR = GPIO0
TX = RX
RX = TX
GND = common
wi07-12 is connected like:
GPIO15 = GND
GPIO2 = vcc
GPIO0 = DTR
TX = RX
RX = TX
AMS1117 3V3 connected to an 5v 1a usb charger, so plenty of power right?
Just trying to talk to it doesn't seem to work on any baud rate, just prints some garbage when toggling CH_PD...
So try flashing the blinky example....
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
Connecting...
Erasing flash...
Traceback (most recent call last):
File "/opt/Espressif/esptool-py/esptool.py", line 449, in <module>
esp.flash_begin(blocks*esp.ESP_FLASH_BLOCK, address)
File "/opt/Espressif/esptool-py/esptool.py", line 190, in flash_begin
struct.pack('<IIII', size, num_blocks, ESPROM.ESP_FLASH_BLOCK, offset))[1] != "\0\0":
File "/opt/Espressif/esptool-py/esptool.py", line 108, in command
raise Exception('Invalid head of packet')
Exception: Invalid head of packet
Fails, but esptool.py read_mac or load_ram, dump_mem, ... work except flash_id, run and flash_Write.
So connecting, syncing and the above operations work, but when sending the ESPROM.ESP_FLASH_BEGIN command no response is received and it times out... (expects \0\0)
esptool.py dump_mem 0x40000000 65536 iram0.bin seems to indicate something is on there, near the end of that dump bless shows stuff like
--snip--
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/s %s,rst cause:%d, boot mode:(%d,%d)
Jan 8 2013reset
--snip--
Any insights on what to try next? Are there more pins to be pulled high or low on this chip?
What needs to be connected for regular running operation? Anyone else has this version?
thank you