Arduino Bootloader for atmega 128

Hi everybody,

i recently bought a Atmega128 64 QFP and i want to make Arduino mega board from it so that i can program it from Arduino IDE and for this i need a bootloader.hex file for it.can anybody help me in getting it....any help is appreciated... :frowning:

can anybody tell me.....what type of bootloader is inside Arduino Mega board(atmega1280).....i want to make my own Arduino Mega board.Please Help :frowning:

Do i have to use this bootloader .hex file for Arduino mega(1280) board, for programing it using Arduino IDE.

Location of Bootloader:-Arduino\arduino-1.0.1\hardware\arduino\bootloaders\atmega\ATmegaBOOT_168_atmega1280.hex

Please do not cross-post.

sorry for posting continuously and thanks for moving it to right sections.....thanks again Moderators....

A question related to this topic:

Can Arduino Uno, loaded with Arduino ISP, be used directly by avrdude to program an Atmega128? if one makes the connections:
Arduino Uno---Atmega128
SS---------------RESET
MOSI------------MOSI
MISO------------MISO
SCK-------------SCK

I know Uno works as an ordinary ISP programmer for Atmega8, Atmega328, Atmega32U4 but I do not know if same thing is true for Atmega128.

Can Arduino Uno, loaded with Arduino ISP, be used directly by avrdude to program an Atmega128?

Yes, that should work.

The MEGA bootloader implements STK500v2, and is located in \hardware\arduino\bootloaders\stk500v2
or the more recent version at GitHub - msproul/Arduino-stk500v2-bootloader: STk500v2 bootloader for AVR 2560 and otherchips

It does claim to support the ATmega128 as well as a number of other "larger" ATmega chips.

The MEGA bootloader implements STK500v2 ...
It does claim to support the ATmega128 as well as a number of other "larger" ATmega chips.

My Atmega128, stand alone microcontroller, does not have a bootloader and what I want to do is to write it with a code that have nothing to do with a bootloader. I also want to use an Arduino Uno (with Atmega328p on it) ISP programmer not an Arduino Mega.

ManasviSihag, here you go:
for atmega 128 arduino bootloader check this out:
http://arduinoexplained.blogspot.ca/2012/03/how-arduino-download-programs-to-board.html
http://arduinoexplained.blogspot.com/2012/03/custom-board-programming-on-arduino-10.html
its a big tricky business (for me as i am not an expert programmer :roll_eyes:) but i think its doable XD
good luck

I have something of the same problem.

I built an Atmega128 board.
I followed the Atmega128 Minimum Schematic - which seemed to generally follow the Atmega328 mini Pro.

I followed the previous Links directions posted above.

I connected an Arduino Mini Pro 328 via SPI to the Atmega128.
I can download code to the 128 via Programmer=ArduinoAsIsp.
Also when I connect the UsbToSerial (FTDI) to the PE0/RX0,PE1/RX1 , I can see/use the Serial from the program.

I can download (supposedly) the ATmegaBOOT_168_atmega128.hex to the Atm128.
But, if I again connect the UsbToSerial (FTDI) to the PE0/mosi,PE1/miso,Dtr->reset , change Programmer=AvrISP , then the Arduino just spits back NoSync error.

I have been back and forth repeatedly.

I can download code via ArduinoAsISP - but the FTDI to Atmega128 just gives me NoSync.

What am I missing ?

Figured out now, I was missing the Atmega128_via_FTDI in the BOARDS.txt file. Both are needed below:

##############################################################
atmega128A.name=Custom ATmega 128 Breakout Board using AVRISP
atmega128A.upload.using=avrispmkii
atmega128A.upload.maximum_size=126976
atmega128A.bootloader.low_fuses=0xFF
atmega128A.bootloader.high_fuses=0xCA
atmega128A.bootloader.extended_fuses=0xFF
atmega128A.bootloader.path=atmega
atmega128A.bootloader.file=ATmegaBOOT_168_atmega128.hex
atmega128A.bootloader.unlock_bits=0x3F
atmega128A.bootloader.lock_bits=0x0F
atmega128A.build.mcu=atmega128
atmega128A.build.f_cpu=16000000L
atmega128A.build.core=arduino
atmega128A.build.variant=standard
##############################################################
atmega128B.name=Custom ATmega 128 Breakout Board using FTDI
atmega128B.upload.protocol=arduino
atmega128B.upload.speed=57600
atmega128B.upload.maximum_size=126976
atmega128B.bootloader.low_fuses=0xFF
atmega128B.bootloader.high_fuses=0xCA
atmega128B.bootloader.extended_fuses=0xFF
atmega128B.bootloader.path=atmega
atmega128B.bootloader.file=ATmegaBOOT_168_atmega128.hex
atmega128B.bootloader.unlock_bits=0x3F
atmega128B.bootloader.lock_bits=0x0F
atmega128B.build.mcu=atmega128
atmega128B.build.f_cpu=16000000L
atmega128B.build.core=arduino
atmega128B.build.variant=standard
##############################################################

You should probably check out MegaCore, which is an up-to-date Arduino core for 1.6.3 and later for the ATmega64 and ATmega128 :slight_smile: