Calling e_reset_group(&dev); repeatedly?

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

Calling e_reset_group(&dev); repeatedly?

Postby etim » Mon Oct 12, 2015 1:21 pm

I have arm code that sets a flag at `0x7000` on each core. When each core is done, it sets the flag at `0x7000` to 1. If on the arm I want to send a task several times out to the eCores, I found that I always need to reset the group before writing the flag out to the cores like:

Code: Select all
e_reset_group(&dev);
e_write(&dev, i, j, 0x7000, &clr, sizeof(clr));


If I don't have
Code: Select all
e_reset_group(&dev);
, the program hangs and I need to manually unplug-plug the Parallella to reset it. Why do we need to reset the group each time? Why is it hanging? Or am I missing something?

Thanks in advance! ~Tim
etim
 
Posts: 22
Joined: Sat Jun 27, 2015 6:08 pm

Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 3 guests

cron