Jun 06, 2018
07:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2018
07:06 AM
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...
BR
Sebastian
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
Labels
- Tags:
- IFX
0 Replies