Page 1 of 1

Delay all cores from starting (xcore-200)

Posted: Mon May 07, 2018 11:11 am
by osch
Hi! I am trying to find a way to stall all the tasks/cores in the usb reference design from starting without rewriting too much of main(). I want the xmos to start up with a function on both tiles that check for a certain condition before they return and let the audio-cores start up.

Is this even possible? I know you cant have more than one par in a multi-tile project so the only thing i can see working is adding the function to every task-call, but it seems a bit wierd to have to do that. I want them to all wait for a single delay function.

Re: Delay all cores from starting (xcore-200)

Posted: Mon May 07, 2018 12:40 pm
by mon2
The par{} construct does not have be used in the main routine.

Reference:
http://www.xcore.com/viewtopic.php?t=3407

Can you shift the par construct to another core? Then inside the main routine, perform your conditional check and wait for the condition to be TRUE -> then call the par{} construct in the other core. Please review Eric's example in the above link.

Re: Delay all cores from starting (xcore-200)

Posted: Tue May 08, 2018 11:43 am
by osch
mon2 wrote:The par{} construct does not have be used in the main routine.

Reference:
http://www.xcore.com/viewtopic.php?t=3407

Can you shift the par construct to another core? Then inside the main routine, perform your conditional check and wait for the condition to be TRUE -> then call the par{} construct in the other core. Please review Eric's example in the above link.
Aha. That sounds reasonable. Thanks!