Yahoo Groups archive

AVR-Chat

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

Thread

program counter reset???? help

program counter reset???? help

2004-02-09 by inpactmicro

IM using the ICC compiler trying to getstarted with a program
The program seems to get stuck in a loop when it reaches the end of 
the first function called
It steps through on the simulator goes to the start of the main() 
function in to the first function but at the end of that function 
seems to reset and instead of carrying on to the next instruction in 
the cycle goes back to the satrt of the main function again

any ideas?
watch dog??
thanks for any help

Re: [AVR-Chat] program counter reset???? help

2004-02-09 by frank lipowitz

I had a similar thing happen.   In my case, it was not
due to the compiler, but due to the ATmega103
compatibility mode bit (one of the device fuses) being
set.   I am targeting an ATmega128.   Once I figured
this out and cleared the fuse, my function calls
behaved properly.

--- inpactmicro <brendan.oflynn@nmrc.ie> wrote:
> IM using the ICC compiler trying to getstarted with
> a program
> The program seems to get stuck in a loop when it
> reaches the end of 
> the first function called
> It steps through on the simulator goes to the start
> of the main() 
> function in to the first function but at the end of
> that function 
> seems to reset and instead of carrying on to the
> next instruction in 
> the cycle goes back to the satrt of the main
> function again
> 
> any ideas?
> watch dog??
> thanks for any help
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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.