I am using Arduino IDE 1.6.9 and board manager as "Node MCU 0.9 (ESP-12 Module). When I compile the program using the verify button. It creates a .bin file and my expectation is a .hex file.
I went through earlier posts and all suggested me to look for a .hex file using these options:
- Look for the hex file path in the black screen
- Look for the hex file under
C:\Users\simbu\AppData\Local\Temp\buildXXXX.tmp
folder - Sketch => Export compiled Library
Unfortunately all the above options are creating a .bin file for my program. I am expecting a file with the .hex extension. Are .bin and .hex files the same?
I have three questions here.
- If .bin and .hex are different files, how can I generate a .hex file ?
- Can I use the .bin file (Size 228Kb) to upload into my AtMega MicroController using AVRDude commands?
- Can I use ESP8266 as a programmer interface to upload the program/bin file into ATMega MicroController?
You compiled for ESP8266 so of course you can't use that file with an ATmega microcontroller. You need to compile for the board you're going to upload to. When you do that you will indeed get the .hex file you are expecting.
Yes, you can use the ESP8266 as an ISP (in-system programming) programmer for AVR microcontrollers: