Is a reset possible in SW or is it HW only

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
DaveBest
Member++
Posts: 25
Joined: Mon Jan 18, 2010 3:36 pm

Is a reset possible in SW or is it HW only

Postby DaveBest » Mon Jan 18, 2010 3:38 pm

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

Postby DaveBest » Mon Jan 18, 2010 3:50 pm

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.

Who is online

Users browsing this forum: No registered users and 0 guests