Dennis
I have a blinking LED using timer interrupt. This is what I use to check
if the board is working or not.
When I program the board with debugWIRE and run the code, the LED stops
blinking in on or off state just after I press the reset button.
After more tests programming and running the code, I left the debug
session after pressing "disable debugWIRE" in AVR Studio. It was a
surprise for me the board restarted running my code after I pressed
reset button.
My conclusion is the board stays in debugWIRE mode unless I press the
disable debugWIRE in AVR Studio. If I do not press the button and exit
the software, debugWIRE is not disabled and something wrong happens when
I press reset button.
Solution: always press "disable debugWIRE".
Adeilton Oliveira
GMB
Dennis Clark wrote:
>
>
>
> > Hello Guys,
> >
> > I'm working with ATMEGA328P (Arduino Board) in C, in AVR Studio and AVR
> > Dragon. When I download and run, every time I press the reset button the
> > board freezes.
> > Could anyone suggest a reset interrupt handler I can use in my project?
> > I am more familiar with Assembly and in this case it would be
> > straightforward, but in C I don't know how the compiler handles this.
> >
> > Thank you in advance.
>
> Reset takes you to "location 0", the same as a power up. If you are
> using an Arduino that restart location is the bootloader. Some of the
> Arduino bootloaders that I've seen hang out there for several seconds
> before jumping to user code. How long do you wait before you decide
> that you've "frozen"?
>
> DLC
> --
> Dennis Clark
> TTT Enterprises
>
>
[Non-text portions of this message have been removed]