I'm trying to work on the installation according to the following link:
I have got an arduino mega, ESP8266 and FTDI USB to TTL Converter.
I am currently received an error of "exit status 1 - Error compiling for board Generic ESP8266 Module.",
stuck at "set USB to TTL Converter as Uploader hardware. Just plug the converter in and set the right port in Tools>Port. It's ready to Upload."
I couldn't find where can I set the USB to TTL converter as uploader hardware, and how the circuit board for the converter. Can anyone give me some advice please?
When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the error between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.
Thank you very much for your advice. Please find the error message below for your reference and use:
Arduino: 1.8.9 (Mac OS X), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), ck, 26 MHz, 40MHz, DOUT (compatible), 512K (no SPIFFS), 2, nonos-sdk 2.2.1 (legacy), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
Build options changed, rebuilding all
Sketch uses 386044 bytes (77%) of program storage space. Maximum is 499696 bytes.
Global variables use 28736 bytes (35%) of dynamic memory, leaving 53184 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.6
2.6
esptool.py v2.6
Serial port /dev/cu.usbmodem145101
Connecting........_____....._____....._____....._____....._____....._____.....____Traceback (most recent call last):
File "/Users/chankalun/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/upload.py", line 25, in <module>
esptool.main(fakeargs)
File "/Users/chankalun/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 2653, in main
esp.connect(args.before)
File "/Users/chankalun/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.2/tools/esptool/esptool.py", line 468, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
That's not the compilation error you mentioned in your original post, it's an upload error. This means your code compiled fine but the process of flashing the compiled code to the ESP8266 failed for some reason. I don't have any advice on how you can solve the upload problem, but you should at least be aware of the difference, since the possible causes of each error are completely different. The upload error is likely caused by a hardware problem, while compilation errors are always caused by a software problem.