Reply by Scott June 23, 20042004-06-23
Thanks, i happen to move my ram during initialization which happens
to be a write once I believe. Thanks for the tip.

scott

--- In , "M.B." <manekb@p...> wrote:
>
> >asm("sei") //disable interrupts
> >asm("jmp __start") //jump to start of program > >This works fine when running through the BDM and debugger. But with
> >everything detached its useless. Any help would be appreciated.
>
> If You use once writeable registers you can't write this after your
sowtware
> reset.
> At BDM and debugger You can modify this register.
> Use COP reset...
>
> Mariusz




Reply by M.B. June 23, 20042004-06-23

>asm("sei") //disable interrupts
>asm("jmp __start") //jump to start of program


>This works fine when running through the BDM and debugger. But with
>everything detached its useless. Any help would be appreciated.

If You use once writeable registers you can't write this after your sowtware
reset.
At BDM and debugger You can modify this register.
Use COP reset...

Mariusz



Reply by Scott June 22, 20042004-06-22
Hi,

I am running into a problem where my software reset will work while
running with my debugger but when it is removed the code locks up
somwhere. Since I dont have a debugger attached when it locks up I
cant tell what happens, and it works with the debugger running.

I do not enable cop either thinking that cop could be timing out. On
top of that I make sure in my reset routine to disable cop.

Currently my reset routine will (i dont disable cop here)

asm("sei") //disable interrupts
asm("jmp __start") //jump to start of program This works fine when running through the BDM and debugger. But with
everything detached its useless. Any help would be appreciated.

Thanks
Scott