On Tue, Feb 10, 2004 at 03:48:04AM -0000, suri_list wrote:
> I'm using the H128 header board for atmega128 from olimex with a
> AVRPG2 parallel port prgrammer. This is really a newbie qn so pls
> excuse me.
> I am able to Program the Atmega128 successfully using linux,avr-
> gcc,uisp. BUT no program is able to run .
Double check that you have disabled ATmega103 compatibility (on by
default) by unprogramming the appropriate fuse bit.
> int main(void)
> {
> DDRD = 0x01;
> PORTD = 0xFF;
> return 1;
> }
Try a while loop and hooking up to a scope to see if there is
activity, i.e.:
while (1) {
PORTD ^= 0x01
}
-Brian
--
Brian Dean, bsd@bdmicro.com
BDMICRO - Maker of the MAVRIC ATmega128 Dev Board
http://www.bdmicro.com/Message
Re: [AVR-Chat] Can program Atmega128 ... but it *won't Run*
2004-02-10 by Brian Dean