Is a reset possible in SW or is it HW only

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
DaveBest
Member++
Posts: 25
Joined: Mon Jan 18, 2010 3:36 pm

Is a reset possible in SW or is it HW only

Post by DaveBest »

Greetings.

It could be that we could come to the point where we need to reset our board; changed peripherals circumstances, different data in flash, commanded so by I2C,....

Hardware-wise there is the system reset pin which could be used to trigger a reset, i think.
In a worst case scenario i guess on could route a 1-bit output port to it and toggle the system reset in that way from a software side.

I understand its inherently "difficult" to reset all 4 cores from one core as there is no shared register which one could access it.

So is there a software way or is the only option to do this in software by using a port to toggle the pin?

Thanks in advance
Dave


DaveBest
Member++
Posts: 25
Joined: Mon Jan 18, 2010 3:36 pm

Post by DaveBest »

Ah okay, xmoslinkers was faster.

Sam says its possible for the G4 with:

Code: Select all

 
   void chipReset(void)
    {
      unsigned x;
     
      read_sswitch_reg(get_core_id(), 6, x);
      write_sswitch_reg(get_core_id(), 6, x);
    }
I'll try it out.
Post Reply