Hello , i have a problem . I have UsbAVr programmer and i export hex form the Arduino software and burn it with averdude on a barebone atmega328 and it working perfect , i can download it back in to .hex and the arduiono software open it , no problem . The problem comes when i have a program arduino nano with Arduino Softwere , averdude can download the hex file from the arduino nano, so far soo good . The funnny part is that i try to open it the Arduino Softwere say it can open only ,ino or .bsp. So How exported hex can be open and code that is burned on Nano that uses Arduino Software and USB to serial ic cant be open when it be downloaded ot hex > Help me how to Open The Hex file from arduino nano that is downloaded from Averdude
The Arduino IDE is not designed for .hex files. Could you explain how you got the IDE to open the hex file from the barebone atmega328?
Please do not cross-post.
Please do not cross-post.
Threads merged.
Isaac96:
The Arduino IDE is not designed for .hex files. Could you explain how you got the IDE to open the hex file from the barebone atmega328?
1 Open Arduino App
2 Write some code.
3 Compile code as you choose arduino nano board (They use Atmega328p) It will want to save it somewhere
4 When you ok, you go to Sketch > Export Compiled Binary , and in this momement , Arduino App make .Hex from you Project (.ino) and give you ( 2 things ).
Your project is blink , you will have a folder (blink) inside you will have 1 file named Blink.ino
2 one is named "Blink.ino.eightanaloginputs"
3 one is "Blink.ino.with_bootloader.eightanaloginputs"
then i Use mu USBavr clone with Averdudess 2.4 and burn it to the barebone atmega328 that have 16mhz cristal , 10kOhm to reset and 5 volts and work , you will have to see the coresponding pins of the atmega328 and bam its working no problem . Conection are Miso to Miso , Mosi to Mosi , SCK to SCK, 5v to 5V , ground to graund, RXD to RXD and TXD to TXD , Averdude recognize the Atmega328 and you choose the arduino nano priset . they you are done. The Bare bone arduino is working. Now You can download back the hex file in Intel Hex and you get the program from the atmega328 on the barebone. you can open it with the Arduino App , no problem just like the original files 2 , 3 that App give you . and you can reuploade and still works , no problem . The Averdudess have option to download from Arduino Nano board that is Atmega328 with 5v regulator and cristal for the clock . and USB to Serial Convertor IC. You program the arduino with the Arduino App directly and working like a charm . My problem start when for example i want to download the code from my nano that is working for severl years and i lost the original file . I go to Averdude choose arduino nano , Averdudess recognize the Atmega328 from the arduino nano (clone) original I Read Hex file just like the Barebone i made and have the hex file like the barebone , but when i try to open it the Arduino App give me Error , The Funny Part is How so Arduino App can export .hex and burn to a barebone atmega 328p and retreve it and i n the same time i cant read from arduino nano the same way I even try to copy the files and write in to them with no change of the format and still not working
Please make a little effort with your posts. Spelling!!! Punctuation!!! Capitalization!!! How can you expect us to make the effort to help you when you won't even make the minimal effort to make your post legible.
So the problem is that avrdude doesn't decode the .hex into a .ino file. Good luck with that. I believe you could use a disassembler after converting the machine code into .asm, then you would get C code. But there are no programs out there (AFAIK) that will convert back from .hex to .ino.
The IDE exports a .hex and retrieves a .hex. It does not open the .hex. However, when you still have the original compiled hex, the IDE may just compare it to the one taken from the chip. But when there is nothing to compare it to, the IDE cannot open it. The IDE does not and cannot open a hex file.