Copyright
©
Kanda 2013
4
Load File
Once the board is connected properly, the next step is to load a file into the buffer. All
operations are carried out on the data in the buffers. There are two buffers, one for code
– Flash and one for data – EEPROM
Go to File Menu and choose Load > Flash, and select a file such as Samples > STK300
> LED Flash > LEDflash.hex
To load EEPROM data, follow the same procedure or type data directly into the buffer, in
Hex numbers or ASCII characters.
Programming the AVR
All operations on the AVR chip are carried out from the Device Menu.
Note
:
AVR devices must be erased first if they have been programmed before.
To program and run the example file we have loaded into the buffer on to the STK300,
1) Choose Device > Erase
2) Choose Device > Program > Flash
3) Choose Device > Run – Run releases the chip from ISP so it can run its code
The LEDs on the board should begin to flash. Follow this procedure to program other
code into the AVR on the STK300 board.