Calumk.com - Programming the ESP8266 with Arduino IDE from OSX & esptool.py

preview_player
Показать описание
How to program the ESP8266 NodeMCU with Arduino IDE

Рекомендации по теме
Комментарии
Автор

That makes sense. I got it working with my FTDI board. You're tutorial was very helpful. Thanks!

pastorhudson
Автор

For those with Windows 7, just use ESPFlasher.exe to upload your BIN file to your ESP8266. You will need the BIN file, which is only available with the Arduino IDE program running (keep it running until after you have flashed your ESP8266 using ESPFlasher.exe)

ragedigital
Автор

i started to program ESP with Arduino but i cant use sensors because the libraries requires AVR what can i do?

gabyto
Автор

So from your video I gather the Arduino really does NOT work? I have worked my 8266 modules using nodeMcu but wanted to try the arduino IDE since I've worked with it a bit, but I had no luck with it at all. I uploaded the "blink" sketch (changing the pin to 2), an the only thing that happened was the blue led that indicates serial communication came on solid. I am using a generic ESP-07 with a CH340 converter from a windows10 machine. I should also mention that I do not see the "ESPTOOL" option shown in your video on my version (1.6.8)

googleuser
Автор

Calum, I ran into some snags following your video. When downloading I get the error as you do but my last lines before the error vary from yours quite a bit. Where do you get the .bin files at 0 and 0x4? I get the following last few lines (I'm on WIndows 10, Arduino 1.6.5 and using Adafruit's USB/TTLSerial Cable #954):


-eo
-bo
-bm dio -bf 40 -bz 512K -bs .text -bp 4096 -ec -eo
-bs .irom0.text -bs .text -bs .data -bs .rodata -bc -ec

Sketch uses 251, 138 bytes (57%) of program storage space. Maximum is 434, 160 bytes.

Global variables use 38, 516 bytes (47%) of dynamic memory, leaving 43, 404 bytes for local variables. Maximum is 81, 920 bytes.
-vv -cd ck -cb 115200 -cp COM5 -ca -cf



At this point I'm not sure what to do. I mentioned my setup and in the Windows version there is not a programmer called "esptool" so I tried with ArduinoISP, Arduino as ISP and USBasp but none work. Is one of the other posts correct in that this selection doesn't matter? Anyway, what do I need to do to generate the correct .bin files?
If I can get past this point I couldn't follow your procedure with the files. Can I enter it as a python statement through the Arduino Serial Monitor or is SM only equivalent to your CoolTerm? I assume your two lines of code under "Show More" are your specific and a generic python command statement.

hoboat
Автор

esptool options is not listen in programmer, kidly tell me how to resolve this

jaxim
Автор

Is the ide supposed to work uploading the bin files? Or is it an issue with your specific board?

pastorhudson
Автор

Thanks for the video, it was very helpful, however I found some extra info which makes thing work without the extra esptool stuff...

Download the CH340 serial USB driver...

Make sure you have Java installed, probably the SDK as you will need to run the ‘ant’ command
Go through : "Building latest version from source"…
after "ant dis"t type the following to start the IDE….
ant run

Follow the rest of the vid to fiddle with the examples. #nodemcu

javawocky
Автор

Anyone followed it successfully in 2020?

xamashee
Автор

I have some ideas. I would gladly share with you. Let's connect on hangouts.

pastorhudson