Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By olegivani4
#46818 Hello guys,

Can't find what I'm doing wrong.

I have:
1) ESP12F
2) FTDI232 programmer (jumper is on 3.3V)
3) 4x1.5 V batteries
4) LD1117AV33 voltage regulator
5) some resistors, capacitors and wires

Originally I was using this circuit - http://i1.wp.com/esp8266.ru/wp-content/ ... jpg?w=1170
My current circuit is - http://screencast.com/t/68qg9Ps8
* gray wire is used to enable programming mode (should be removed in normal mode)
* near regulator I have 0.1mf capacitor
* other capacitor is 100mf (also tried with 0.1mf)
* led is connected throw R100 to GPIO4

From regulator I have constant 3.25V (tested with multimeter)

Trying to upload from Arduino IDE simple scatch:
Code: Select allvoid setup(void) {
    pinMode(4, OUTPUT);
}

void loop() {
  digitalWrite(4, HIGH);
  delay(500);
  digitalWrite(4, LOW);
  delay(500);
}

Arduino IDE settings - http://screencast.com/t/G8KDJMFh

To start uploading:
1. GPIO0 is low (gray wire)
2. I press "reset" button (blue led flashes 1 time)
3. from Arduino IDE press "Upload" button
4. Uploading is starting. Blue led is blinking while uploading.
5. And it's freezing when it should finish (blue led stops blinking)
This is how it looks (video) - http://screencast.com/t/nk5Iqs4cjUR

And if I remove gray wire, reset esp, each ~10 sec I get message in serial monitor:
Code: Select allets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld


What I'm doing wrong or what should I else do?
User avatar
By olegivani4
#46853
chanders wrote:Are you using a Mac by chance? If you are then esptool.py is probably the issue. Search on Google for esptool.py edit and you will see what needs to be edited in the file.


Thanks, It's almost solved my problem :)
Installed esptool.py and replaced original esptool by esptool.py
instruction - http://hpclab.blogspot.com/2015/06/esp8 ... -os-x.html

Then I've got error: A fatal error occurred: Invalid head of packet
And this solution helped me to fix it: viewtopic.php?f=6&t=2791&start=4#p16043

I've tried :
Code: Select allESP_RAM_BLOCK = 0x180
ESP_FLASH_BLOCK = 0x40

it worked, but uploading was very slow. Then I changed it to:
Code: Select allESP_RAM_BLOCK = 0x900
ESP_FLASH_BLOCK = 0x200
and it worked perfect.