Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Legacy microcontrollers Forum Discussions

itsaps
Employee
Employee
Hello,

I've got the problem while working on an remote controlled load with an XC2797 as it's controller. We would like to have the option to trigger a reset over an dedicated uart command.
The command interpretation is working fine but I get a problem, that after writing to SCU_SWRSTCON the uC gets stuck, debug interface lost, main loop is not restarted, uart interface dead...

Any idea what can be wrong or if an alternative way to reset by software command is possible? Many thanks...

switch(i)
{
case reset:
ASC_printf("swcfg: %x\n",SCU_SWRSTCON >> 8);
SCU_RSTCON0 = 0x3 << 12 | 0x3 << 14;
SCU_RSTCNTCON = 0x3 << 8 | 0x3;
SCU_SWRSTCON = 0x73; //did not work....
//SCU_WDTTIM = 0xFFFF;
break;


BR
Sebastian
0 Likes
0 Replies