Heltec-Aaron-Lee / WiFi_Kit_series

Arduino source codes and toolchain for WiFi_Kit_series made by HelTecAutomation.
GNU Lesser General Public License v2.1
766 stars 308 forks source link

ESP8266 compile failure on OS X #74

Closed rworne closed 5 years ago

rworne commented 5 years ago

Installed via instructions on readme. Apparently some files are not included. The following appears in the Arduino console:

Sketch uses 252364 bytes (24%) of program storage space. Maximum is 1044464 bytes. Global variables use 27584 bytes (33%) of dynamic memory, leaving 54336 bytes for local variables. Maximum is 81920 bytes. java.io.IOException: Cannot run program "/Users/Robert/Documents/Arduino/hardware/heltec/esp8266/tools/esptool/esptool": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ... ... 11 more An error occurred while uploading the sketch

Copying the file out of the esp32 directory and installing it yields this:

Sketch uses 252364 bytes (24%) of program storage space. Maximum is 1044464 bytes. Global variables use 27584 bytes (33%) of dynamic memory, leaving 54336 bytes for local variables. Maximum is 81920 bytes. usage: esptool [-h] [--chip {auto,esp8266,esp32}] [--port PORT] [--baud BAUD] [--before {default_reset,no_reset,no_reset_no_sync}] [--after {hard_reset,soft_reset,no_reset}] [--no-stub] [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]]

           {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,version}
           ...

esptool: error: argument --chip/-c: invalid choice: 'd' (choose from 'auto', 'esp8266', 'esp32') esptool: error: argument --chip/-c: invalid choice: 'd' (choose from 'auto', 'esp8266', 'esp32')

rworne commented 5 years ago

Found the fix: Go to the directory: ~/Documents/Arduino/hardware/heltec/esp8266/tools

run the python script: get.py

Now it works.