Hello,
I have an XC-3 dev board, but when chipReset()-function is triggered,
My device doesn't restart properly (I think..).
It doesn't run the initialization I have written;
so my application doesn't work after a watchdog triggered.
chipReset() function:
void chipReset(void)
{
unsigned x;
read_sswitch_reg(get_core_id(), 6, x);
write_sswitch_reg(get_core_id(), 6, x);
}
Greetz,
Ganux_
Reset an XC-3 in software
-
- Active Member
- Posts: 35
- Joined: Tue Mar 08, 2011 12:58 pm
-
- XCore Expert
- Posts: 754
- Joined: Thu Dec 10, 2009 6:56 pm
Code: Select all
#include <xs1.h>
void chipReset(void)
{
unsigned x;
read_sswitch_reg(get_core_id(), 6, &x);
write_sswitch_reg(get_core_id(), 6, x);
}