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

User avatar
By hob
#32553 Hi,

first of all, I have to say, I'm kind a newbie on this microcontroller and electrical engineering stuff, but I'm very interested in it... So i played around with the ESP-01, had some success and was missing some more GPIO's and bought the ESP-12-Q - and have no luck anymore.

What I just want to do is get it running in any mode (AT, flashed with Arduino IDE or anything else).

After I soldered some legs on the pins to put it on a breadboard, I connected it with an USB to TTL UART (CP2102). And I double checked that all outputs are using only 3.3v. All my connections are:

Code: Select allVCC -> VCC and via 100nF capacitor to GND (I read this would improve stability).
GND -> GND
CH_PD -> VCC
RST -> via 10k pullup to VCC and via button to GND
GPIO0 -> via 10k pullup to VCC and via button to GND
GPIO2 -> via 10k pullup to VCC
GPIO -> via 10k pulldown to GND
RXD -> TXD
TXD -> RXD


Now, I'm only using the USB to TTL UART as a power supply, but I also tried to use an Arduino (which made no difference for me).

When I started the ESP using the "out of the box" Firmware, I got the information that it used:

Code: Select all2nd boot version : 1.4(b1)
SPI Speed      : 40MHz
SPI Mode       : QIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)


and then some exceptions.

I tried to flash the newest firmware from "esp_iot_sdk_v1.4.0_15_09_18" with the above configuration and with SPI Flash Size & Map: 32Mbit(512KB+512KB), since the ESP comes with a 4 MB flash. For this, i followed the adresses of the contained "readme.txt" and tried different actual flash tools like "nodemcu-flasher", "FLASH_DOWNLOAD_TOOLS" and so on.

The informations I get are (76800 baud rate):

Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000


and then (115200 baud rate)

Code: Select alldon't use rtc mem data


That's it - nothing more happens. The same behaviour occurs when I try to flash an Arduino program.

Can anybody help me? Thank you guys.

hob
User avatar
By xtal
#39739 Its my understand that the later SDK's need more than 512k Flash..............

Code: Select allI have good luck  with

GPIO0   junction    1500 ohm -->  flash sw  --> gnd
                    910 ohm --->  LED --> 3.3 volt

        turn on flash sw [LED Bright]  press RESET [LED Dims]   -- indication flash mode
        You can turn off the flash sw, I prefer to leave on until after flash .....
        The 2 resistors control the brightness have used 510/510.
        Note   all leds are not created equal they give different Bright/Dim...

GPIO15 --- 510 ohm --> gnd    can use larger resistor

CH_EN  --- 3900 ohm  ---> 3.3
CH_PD
EN


RESET  ---> 510 ohm ---> reset sw ----> gnd  -- using no pullup [ maybe add later]   
 
GPIO2   --- I leave as is I think internal pullups may be enabled
            I have had no issues [ maybe add later]


RX -->  TX   thru Sparkfun LevelShifter   
TX -->  RX   thru Sparkfun LevelShifter

usb converter I had lot of problems with FT232RL  only 2 of 10 FLash
  went with crystal controlled unit ,,no more problems

All this being said I had similial prob with sdk 1.4.0
First flash worked using ESP Flasher ,  later flashes would not work

Finally ESP FLASH DOWNLOAD TOOL V2.4 worked

I've had issues where I had to remove power to clear whatever ......

I'm now using nodemcu - DEV SDK 1.5.1