Pages: [1]   Go Down
Author Topic: Burning a bootloader with an AVR JTAGICE mkII  (Read 3719 times)
0 Members and 1 Guest are viewing this topic.
Nova Scotia
Offline Offline
Full Member
***
Karma: 4
Posts: 202
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This is my first post on this forum and I would have to say that the amount of information available and code examples for the Arduino is very impressive.
At my work place we have several small projects that use the ATmega1280 microcontrollers. Is is possible to burn the arduino bootloader into this micro using only the AVR JTAGICE mkII? I have seen bits of information that use the 'Burn Bootloader' option using the Arduino software but I'm still not clear. It would be nice if it is as simple as loading the hex file into it and setting the fuse bits.

Thanks,
Mike
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well it should be that simple. The 1280 bootloader hex file is located it the Arduino core folder called
ATmegaBOOT_168_atmega1280.hex . And the fuse settings are located in the 1280 section of the boards.txt file also in the arduino core directory.

Quote
##############################################################

mega.name=Arduino Mega (ATmega1280)

mega.upload.protocol=stk500
mega.upload.maximum_size=126976
mega.upload.speed=57600

mega.bootloader.low_fuses=0xFF
mega.bootloader.high_fuses=0xDA
mega.bootloader.extended_fuses=0xF5
mega.bootloader.path=atmega
mega.bootloader.file=ATmegaBOOT_168_atmega1280.hex
mega.bootloader.unlock_bits=0x3F
mega.bootloader.lock_bits=0x0F

mega.build.mcu=atmega1280
mega.build.f_cpu=16000000L
mega.build.core=arduino

##############################################################

Only complication would be if your boards are not running with an external 16mhz crystal or resonator, that would require changes to the bootloader hex file (baudrate value) and the boards.txt file.

Not sure what software tools you would use with your programmer, but If it can read and burn the hex file and can set fuse bits, it should be straight forward task.

Lefty
Logged

Nova Scotia
Offline Offline
Full Member
***
Karma: 4
Posts: 202
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Perfect! That is exactly what I was hoping.

Thanks,
Mike
Logged

Pages: [1]   Go Up
Jump to: