I purchased a Huzza ESP8266 wifi module from adafruit and am trying to flash the firmware to the module with problems.
When I compile the firmware, it doesn't finish and throws an error:
Arduino: 1.8.3 (Windows 7), Board: "Adafruit HUZZAH ESP8266, 80 MHz, 115200, 4M (1M SPIFFS)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\willys e6500\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\willys e6500\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\willys e6500\Documents\Arduino\libraries -fqbn=esp8266:esp8266:huzzah:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M1M -ide-version=10803 -build-path C:\Users\WILLYS~1\AppData\Local\Temp\arduino_build_463733 -warnings=all -build-cache C:\Users\WILLYS~1\AppData\Local\Temp\arduino_cache_148136 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Users\willys e6500\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -prefs=runtime.tools.mkspiffs.path=C:\Users\willys e6500\AppData\Local\Arduino15\packages\esp8266\tools\mkspiffs\0.1.2 -prefs=runtime.tools.esptool.path=C:\Users\willys e6500\AppData\Local\Arduino15\packages\esp8266\tools\esptool\0.4.9 -verbose C:\leaf\wificode\ESP8266_WiFi_v2.x-master\ESP8266_WiFi_v2.x-master\src\src.ino
Board huzzah (platform esp8266, package esp8266) is unknown
Error compiling for board Adafruit HUZZAH ESP8266.
Sorry for the long error messages, but wanted to include all the errors.
I have added the esp8266 ver.2.3.0 in the boards manager along with the
string in the preferences without any problems.
Selected the Adafruit Huzza esp8266 board, set the correct port and speed, but it never gets that far as I am just verifying the compile.
Is something missing, do I have something configured wrong? I am at a loss right now and haven't found anything on the forums as per this problem.
Most of the developers have abandoned the Arduino IDE and moved over to PlatformIO.
Here are details on the code and loading with platform IO.
You can also load the firmware fro our latest release binary with esptool.
Is there a reason you need to compile the code yourself? We provide pre-compiled firmware releases for each major version on our website.
We also sell the Huzzah modules with the UBEC power supply and harness ready to go with the firmware pre-loaded.
Setting up a development environment and uploading firmware can be a real headache. This is precisely why we offer the Adafruit Huzzah with a custom wiring harnesses, power supply and pre-loaded firmware.
Loading the firmware from a BIN is a bit easier.
You will need to load esptool and its dependencies from here:
Then you will need the firmware BIN release from here:
Enter programming mode (press and hold GPIO0 then press reset, then release GPIO0)
From the windows command prompt run:
esptool.py -b 1500000 -p COM4 write_flash 0x000000 firmware.bin
*note Substitute COM4 for your COMM port.
I must admit I am really lost because I am having so much trouble with something that should be so simple I'm sure.
I don't know how to use python so that may be the problem, but there seems to be something that I need to install from python to get this to work?
Here is the Adafruit page that explains the setup process of esptool and python.
Both the esptool guide linked above and the Adafruit guide require pyserial, your error looks like pyserial is missing.
If you have trouble, this is the Adafruit Support Forum:
Thank you so very much again for your help!