Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Can program Atmega128 ... but it *won't Run*

Can program Atmega128 ... but it *won't Run*

2004-02-10 by suri_list

Hi 

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 . 

*I checked the ~RESET Pin and have found it to be low after the 
programming*.Even on the scope it is a continous low. How is it being 
held low? 
Is this why the program isnt executing? I recycled power after 
programming : but the problem still exists. 

Do i have to disconnect the programming dongle header ICSP-10 from 
the board after i programmed it?. That doesnt make sense to me 
though. 

The power supply is clean and so there is no reason for the MCU to 
reset. 

This is the schematic: 

http://www.olimex.com/dev/images/avr-h103b-sch.gif 

I have disconnected Jumper J1 as i am using direct 5 volts to pin 52 
of atmega128 

Pls advise as to what i am doing wrong. 
This is the program i am starting with: 

#include 
#include 

int main(void) 
{ 
DDRD = 0x01; 
PORTD = 0xFF; 
return 1; 
} 

Any advice shall be appreciated 
Thanks a lot

Re: Can program Atmega128 ... but it *won't Run*

2004-02-10 by suri_list

i noticed the includes were not typed in my previous post.So this 
just a follow up.

the includes are 
#include <avr/io.h>
#include <inttypes.h>


--- In AVR-Chat@yahoogroups.com, "suri_list" <suri_list@y...> wrote:
> Hi 
> 
> 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 . 
> 
> *I checked the ~RESET Pin and have found it to be low after the 
> programming*.Even on the scope it is a continous low. How is it 
being 
> held low? 
> Is this why the program isnt executing? I recycled power after 
> programming : but the problem still exists. 
> 
> Do i have to disconnect the programming dongle header ICSP-10 from 
> the board after i programmed it?. That doesnt make sense to me 
> though. 
> 
> The power supply is clean and so there is no reason for the MCU to 
> reset. 
> 
> This is the schematic: 
> 
> http://www.olimex.com/dev/images/avr-h103b-sch.gif 
> 
> I have disconnected Jumper J1 as i am using direct 5 volts to pin 
52 
Show quoted textHide quoted text
> of atmega128 
> 
> Pls advise as to what i am doing wrong. 
> This is the program i am starting with: 
> 
> #include 
> #include 
> 
> int main(void) 
> { 
> DDRD = 0x01; 
> PORTD = 0xFF; 
> return 1; 
> } 
> 
> Any advice shall be appreciated 
> Thanks a lot

Re: [AVR-Chat] Can program Atmega128 ... but it *won't Run*

2004-02-10 by Brian Dean

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/

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.