Author Topic: ESP8266 Programming Circuit  (Read 3199 times)

0 Members and 1 Guest are viewing this topic.

Offline Thane of CawdorTopic starter

  • Regular Contributor
  • *
  • Posts: 96
ESP8266 Programming Circuit
« on: July 08, 2017, 07:45:13 am »
Hi everyone!

I'm having some difficulty uploading an Arduino sketch to the ESP12-E module using a standard Sparkfun FTDI USB-serial converter (getting a espcomm_upload_mem failed error). Are there any particular issues with the circuit I'm using to reset/program the ESP8266 (from the NodeMCU schematic https://raw.githubusercontent.com/nodemcu/nodemcu-devkit/master/Documents/NODEMCU_DEVKIT_SCH.png

Thank you :)
 

Offline JoeO

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: us
  • I admit to being deplorable
Re: ESP8266 Programming Circuit
« Reply #1 on: July 08, 2017, 02:48:55 pm »
Sparkfun has a list of things to check.  Did you do these?

https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/discuss
The day Al Gore was born there were 7,000 polar bears on Earth.
Today, only 26,000 remain.
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2572
  • Country: fr
    • kripton2035 schematics repository
Re: ESP8266 Programming Circuit
« Reply #2 on: July 08, 2017, 03:28:06 pm »
RX on the esp must go to TX on the serial-usb-converter
TX go to RX
 

Offline TJ232

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Re: ESP8266 Programming Circuit
« Reply #3 on: July 08, 2017, 05:35:35 pm »
For ESP8266 programming, might worth to look also at this USB Programming adapter:
USBProgv8.4
ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: ESP8266 Programming Circuit
« Reply #4 on: July 08, 2017, 06:02:39 pm »
If you're using USB for power, try an external supply instead. I've had problems with USB ports supplying enough current for the eeprom write operation to succeed on the esp8266.
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2572
  • Country: fr
    • kripton2035 schematics repository
Re: ESP8266 Programming Circuit
« Reply #5 on: July 08, 2017, 06:25:50 pm »
For ESP8266 programming, might worth to look also at this USB Programming adapter:
USBProgv8.4
you can also program the esp8266 OTA (over the air) that is program it remotely with wifi.
complete isolation guaranteed !
 

Offline TJ232

  • Frequent Contributor
  • **
  • Posts: 331
  • Country: 00
  • www.esp8266-projects.org
    • ESP8266 Projects
Re: ESP8266 Programming Circuit
« Reply #6 on: July 08, 2017, 06:49:26 pm »
For ESP8266 programming, might worth to look also at this USB Programming adapter:
USBProgv8.4
you can also program the esp8266 OTA (over the air) that is program it remotely with wifi.
complete isolation guaranteed !

Absolutely, OTA Programming is the best IF you are allowed to use OTA.


ESP8266 Projects - www.esp8266-projects.org
MPDMv4 Dimmer Board available on Tindie: https://www.tindie.com/stores/next_evo1/
 

Offline Thane of CawdorTopic starter

  • Regular Contributor
  • *
  • Posts: 96
Re: ESP8266 Programming Circuit
« Reply #7 on: July 10, 2017, 02:51:43 pm »
Thanks for the responses! Yes, I have made sure that TX/RX are connected the right way around, am using an external power source and did look through the setup guide but still having some issues (which curiously is quite intermittent if I click on the reset button about 2-3 times a second and manage to get the reset timing just right  :-DD - although this defeats the purpose of the digital reset line I guess).

I just wanted to make sure there are no specific issues with the circuit I'm currently using before I purchase any new devices.

Will have a look into OTA - any particular things I should be looking out for here?

« Last Edit: July 10, 2017, 02:55:17 pm by Thane of Cawdor »
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2572
  • Country: fr
    • kripton2035 schematics repository
Re: ESP8266 Programming Circuit
« Reply #8 on: July 10, 2017, 03:21:19 pm »
to program the chip OTA, you first have to download a program in it with the serial link.... then only it will be OTA
so we are at the same point !

take a look at the OTA examples of the arduino IDE.


edit: video about OTA
« Last Edit: July 10, 2017, 08:07:32 pm by kripton2035 »
 

Offline tablatronix

  • Regular Contributor
  • *
  • Posts: 199
  • Country: us
Re: ESP8266 Programming Circuit
« Reply #9 on: July 12, 2017, 04:50:18 pm »
You did not mention how you are trying to upload.. arduino IDE, esptool ? what flags baud rates? Or log output besides  espcomm_upload_mem
« Last Edit: July 12, 2017, 04:52:35 pm by tablatronix »
 

Offline JoeO

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: us
  • I admit to being deplorable
Re: ESP8266 Programming Circuit
« Reply #10 on: July 12, 2017, 09:17:31 pm »
Good in focus pictures of your hardware would help alot.
The day Al Gore was born there were 7,000 polar bears on Earth.
Today, only 26,000 remain.
 

Offline tablatronix

  • Regular Contributor
  • *
  • Posts: 199
  • Country: us
Re: ESP8266 Programming Circuit
« Reply #11 on: July 13, 2017, 02:40:44 pm »
I would do what others mentioned.

Good clean power, no breadboards etc.

Use manual reset mode, not auto until you know the board works and communication works, first thing first.

Use 9600 baud for testing.

Use esptool and see if you can talk to the board, a simple flash check or erase etc. or something else that has verbose output

Loopback test your ftdi adapter via a terminal or putty, make sure it works.

 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8515
  • Country: us
    • SiliconValleyGarage
Re: ESP8266 Programming Circuit
« Reply #12 on: July 13, 2017, 03:05:24 pm »
power supply is key.
i had trouble with some esp8266 boards as well. slapping 470uf on the power rail solved that.

a usb connector is NOT a reliable power source !
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline JoeO

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: us
  • I admit to being deplorable
Re: ESP8266 Programming Circuit
« Reply #13 on: July 13, 2017, 08:16:53 pm »
Pictures.
The day Al Gore was born there were 7,000 polar bears on Earth.
Today, only 26,000 remain.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf