The first step was to get the STK500 up and going and write a small test program, like flash an LED or something. No problem.
Installation Guide
- Download and install AVR Studio to your PC.
- Install AVR Studio. When installing, you can skip the Jungo usb driver unless you have one of the Atmel USB devices.
- As an added bonus you can install the SP1 update for Win AFR
- Download and install WinAVR. AVR Studio only contains an assembly compiler. Since I would like to program in C. We will use WinAVR. to get gcc. Install with all of the defaults.
- Hook up the serial cable to your computer and the STK500 board.
- Start up AVR studio.
- Select Tools->Program AVR-Connect (or Auto connect if you are feeling brave).
- For the platform pick the STK500, and for the port pick your com port.
- At this point the STK-500 will try and go through an upgrade. If you are having problems here and you are using a USB to RS-232 cable, then you might be out of luck. I called tech support about this and they said that USB-RS-232 adapters don't work. If you find one that does, let me know.
- You will now get a STK500 menu and you can start programing your device.
And that program for flashing the LEDs on the board? Here it is:
#include
int
main()
{
unsigned int i;
while (1) {
for (i=0; i<10000; i++) {
PORTB=0xf;
}
for (i=0; i < 5000; i++ ) {
PORTB=0x0;
}
}
}
No comments:
Post a Comment