Reset an XC-3 in software

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Ganux
Active Member
Posts: 35
Joined: Tue Mar 08, 2011 12:58 pm

Reset an XC-3 in software

Post by Ganux »

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_


User avatar
Bianco
XCore Expert
Posts: 754
Joined: Thu Dec 10, 2009 6:56 pm

Post by Bianco »

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);
    }
Try this, it's something i long time reported but has not been processed yet.