Hi!
I am testing some features of my applicaction, and I was trying to reset my device via PMM.
I wrote 3 routines called, SoftwareBOR, SoftwarePOR and SoftwarePUC.
Their implementations are:
void SoftwareBOR()
{
PMMCTL0 = PMMSWBOR|PMMPW ;
while(1);
}
void SoftwarePOR()
{
PMMCTL0 = PMMSWPOR|PMMPW ;
while(1);
}
void SoftwarePUC()
{
PMMCTL0 = PMMSWBOR ; //without the password-> PUC
while(1);
}
Maybe the while(1) lines are innecesary. However, SoftwareBOR and SoftwarePUC work perfectly, but SoftwarePOR doesn't. Moreover, the system hangs up badly. I am doing this while debugging (IAR) and also the debbuger hungs up (I have to kill the process). It happens without the debugger attatched also.
Any ideas?
Thanks in advance.
Franco