chirag2239
Member level 3

Hi All,
I have two problems. I am working on 2 projects. One based on ATmega1280 and ATmega2560.
In the ATmega2560, I am confused that I have prepared the code in Arduino IDE for Arduino Mega2560. Now, I have to prepare my own project board. So I have ordered new ATmega2560. I have found the hex file which generated during compiling the code in Arduino IDE. I have doubt that does that code works with by just loading the hex file? Or I have to load a bootloader before loading hex file?
Because I have read that for the standalone microcontroller, we need pin mapping for Arduino. SO do I need to load bootloader and pin mapping and all?
Can anyone guide me through this project such that I can make my board working? I have checked my code Arduino Mega2560 already. But now I need that my code should work on my project board which is non Arduino. What I have to do?
For the second one, I want to know that is there any difference between Arduino Mega1280 and Arduino Mega2560? Because by mistake I have ordered ATmega128 instead of ATmega1280. I just want to test the code. So I want to know that does the code of Arduino Mega2560 will work with Arduino Mega2560? May I load this code of Arduino Mega1280 to the ATmega2560? Will it be work?
Please help me and guide me.
Thanks
Chirag
I have two problems. I am working on 2 projects. One based on ATmega1280 and ATmega2560.
In the ATmega2560, I am confused that I have prepared the code in Arduino IDE for Arduino Mega2560. Now, I have to prepare my own project board. So I have ordered new ATmega2560. I have found the hex file which generated during compiling the code in Arduino IDE. I have doubt that does that code works with by just loading the hex file? Or I have to load a bootloader before loading hex file?
Because I have read that for the standalone microcontroller, we need pin mapping for Arduino. SO do I need to load bootloader and pin mapping and all?
Can anyone guide me through this project such that I can make my board working? I have checked my code Arduino Mega2560 already. But now I need that my code should work on my project board which is non Arduino. What I have to do?
For the second one, I want to know that is there any difference between Arduino Mega1280 and Arduino Mega2560? Because by mistake I have ordered ATmega128 instead of ATmega1280. I just want to test the code. So I want to know that does the code of Arduino Mega2560 will work with Arduino Mega2560? May I load this code of Arduino Mega1280 to the ATmega2560? Will it be work?
Please help me and guide me.
Thanks
Chirag