Go Down

Topic: Programming ATMega16 without bootloader (Read 1 time) previous topic - next topic

pingflip

Hi,

I want to program this http://tiny.cc/4nmwkw Development Baord with the Arduino IDE.
The board has the following specs:

  • AtMega16

  • TEA5767 FM-Radio receiver chip (this is why i bought this board)

  • 10pin ISP connector

  • LCD1602 LCD connector

  • 4 pushbuttons



I do not want to use the Arduino bootloader because of the delay on powerup/reset.

I read through this http://arduino.cc/forum/index.php/topic,24073.0.html article and took a look at the modified board.txt file from http://www.avr-developers.com/corefiles/index.html, but they are all about using the bootloader and reference arduino 0020 or older.

So here is my question:

How do I  have to modify the boards.txt and the pins_arduino.h file to make the IDE compile for ATMega16 and program with the USBTinyISP ?

I am a bit confused by the following lines from the boards.txt file from avr-developers.com:

Code: [Select]

arduino_atmega16.upload.protocol=stk500v2
arduino_atmega16.upload.maximum_size=14336
arduino_atmega16.upload.speed=57600

arduino_atmega16.bootloader.low_fuses=0xE4
arduino_atmega16.bootloader.high_fuses=0x98
arduino_atmega16.bootloader.extended_fuses=0xFF
arduino_atmega16.bootloader.path=atmega
arduino_atmega16.bootloader.file=ATmegaBOOT_168_atmega16.hex
arduino_atmega16.bootloader.unlock_bits=0x3F
arduino_atmega16.bootloader.lock_bits=0x0F


Can I just erase the arduino_atmega16.bootloader... lines to prevent use of the bootloader?
And how do I change the ...upload... lines to use an ISP programmer?

Many thanks in advance for any helping comments :)

-pingflip


Go Up