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.
Delay all cores from starting (xcore-200)
-
- Member
- Posts: 12
- Joined: Sun Sep 03, 2017 10:12 pm
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
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.
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.
-
- Member
- Posts: 12
- Joined: Sun Sep 03, 2017 10:12 pm
Aha. That sounds reasonable. Thanks!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.