michaelb33:
Yes I have one end of the 10k resistor connected to the power line of my bread board which is connected to the 3.3v of the uno as well as the vcc and ch pd of the esp. And the other end of the 10k connected to the gpio0 on the esp.
Is it likely my esp isn't working correctly even thought the leds on it work?
Cheers
open Serial Monitor on COM port of the Uno/esp8266, set the baud rate to 74880 and reset the esp8266 by disconnecting the CH-PD and connecting it back. you should see the bootlog of the esp8266. then try the same with 115200 baud. you should see the startup prints of the AT firmware
Does the uno provide enough power for the esp01. I came across this on the net:
ESP8266 all models run on 3.3V, first time I thought I could use Arduino 3.3V to power up the ESP8266-01, but this didn't work, because the pin which Arduino provide outputs current just merely 50mA, If you looking through the datasheet of ESP8266, you will find out that ESP8266 require 200mA in maximum. so that is way too low for it, we need an external power supply!
From this project, which is similar to what I want to eventually achieve:
michaelb33:
Does the uno provide enough power for the esp01. I came across this on the net:
ESP8266 all models run on 3.3V, first time I thought I could use Arduino 3.3V to power up the ESP8266-01, but this didn't work, because the pin which Arduino provide outputs current just merely 50mA, If you looking through the datasheet of ESP8266, you will find out that ESP8266 require 200mA in maximum. so that is way too low for it, we need an external power supply!
From this project, which is similar to what I want to eventually achieve:
yes it does supply enough power (R3 3.3 V pin can supply 150 mA). It is not enough for esp8266 full power wifi radio (170 mA) if far away from AP, but for normal function, it is ok.
michaelb33:
Yea I tried all the different baud rates and I just get less gibberish with a lower baud rate. The only one that did something different is at 74880.
Cheers
then the AT firmware is not there. time to upload it (at Espressif they call it download)
wire io 0 to ground to put the esp8266 into flashing mode on reset and reset it
download the AT firmware version 1.6.2 (1.7 doesn't fit into esp-01)
use Espressif Flash Download Tool (Windows only)
the addresses for 1 MB flash of the esp-01 are in chapter 1.2.4 of the AT firmware reference
Right so I followed your instructions and it ended up saying com fail on the flash tool and and error message. Here are screen shots of the settings and results. Thanks for being patient with me.
Forgot to add that I connected the gpio0 to ground then unplugged the ch_pd pin and plugged it back in to reset it in flash mode like you said.... and im pretty sure I did everything else right.
And there was 2 options for the esp_init_data_default_v08.bin file so I tried that one and the esp_init_data_default_v05.bin file as well. The pictures are when I used the v05.bin file.
Juraj:
try to reset the esp-01 right before the upload
So I disconnect the ch_pd pin the reconnect it just before I click start and I still get the same result:
test offset : 1028096 0xfb000
case ok
test offset : 1032192 0xfc000
case ok
test offset : 516096 0x7e000
case ok
test offset : 1040384 0xfe000
case ok
test offset : 0 0x0
case ok
test offset : 4096 0x1000
case ok
CONNECT BAUD: 115200
..................................................[2019-07-05 19:12:51,845][ESP8266Loader_spi[1]][espDownloader.py][line:358][ERROR]: Chip sync error: Failed to connect to ESP8266: Timed out waiting for packet header
[2019-07-05 19:12:51,845][ESP8266Loader_spi[1]][espDownloader.py][line:446][ERROR]: ESP8266 Chip sync error esp_sync_blocking.
Sorry for talking so much of your time. So frustrating lol.
When I do the reset then try to flash the esp I am suppose to have the gpio0 wired to ground right?
yes. the 1 in boot mode shows that you really have io 0 LOW. but the second value should be 6 or 7, not 3. pull io 2 HIGH over a resistor
I don't know yet what to do with it. doesn't something touching the soldering points of the module?
Juraj:
yes. the 1 in boot mode shows that you really have io 0 LOW. but the second value should be 6 or 7, not 3. pull io 2 HIGH over a resistor
I don't know yet what to do with it
I just tried it with the gpio0 wired high on a resistor then back to low and this is the response I got.
No nothing touching the soldering point although when I first got the esp in the mail I noticed a white stain around the solder points on top of the module. Kind of similar to a light calcium built up on a tap or window. Most of it disappeared when I rubbed it with my finger.
Every time I reset it now it shows this in the serial monitor:
test offset : 1028096 0xfb000
case ok
test offset : 1032192 0xfc000
case ok
test offset : 516096 0x7e000
case ok
test offset : 1040384 0xfe000
case ok
test offset : 0 0x0
case ok
test offset : 4096 0x1000
case ok
CONNECT BAUD: 115200
..................................................[2019-07-05 22:44:01,150][ESP8266Loader_spi[1]][espDownloader.py][line:358][ERROR]: Chip sync error: Failed to connect to ESP8266: Timed out waiting for packet header
[2019-07-05 22:44:01,150][ESP8266Loader_spi[1]][espDownloader.py][line:446][ERROR]: ESP8266 Chip sync error esp_sync_blocking.