multiple epiphany .srec files in a host progral

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

multiple epiphany .srec files in a host progral

Postby Nader_Jendoubi » Sat May 16, 2015 4:30 pm

Hi

Can i load more than one .srec file in my host program, for example:

e_load_group("epiphany1.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);
//read operation from DRAM
e_reset_group();
e_load_group("epiphany2.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);
//read operation from DRAM

Is this syntax possible. Because i try it and i can't get the result of the operation e_read. Any solutions please??
Nader_Jendoubi
 
Posts: 41
Joined: Wed Feb 18, 2015 6:53 pm

Re: multiple epiphany .srec files in a host progral

Postby ysapir » Sun May 17, 2015 5:40 pm

Technically, I don't see why this will not be possible. The e_load() API merely parses the SREC or binary executable image and writes it to the respective core.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: multiple epiphany .srec files in a host progral

Postby Nader_Jendoubi » Sun May 17, 2015 8:32 pm

And what about e_reset_group(&dev);
It's a necessaty command before every load
Nader_Jendoubi
 
Posts: 41
Joined: Wed Feb 18, 2015 6:53 pm

Re: multiple epiphany .srec files in a host progral

Postby Nader_Jendoubi » Tue Aug 11, 2015 12:53 pm

I use the same group with all epiphany 16 cores to load the multiple .srec files

e_open(&dev, 0, 0, platform.rows, platform.cols);

then :

e_load_group("epiphany1.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);

e_load_group("epiphany2.srec", &dev, 0, 0, platform.rows, platform.cols, E_TRUE);


Will this make a problem in the main program????
Nader_Jendoubi
 
Posts: 41
Joined: Wed Feb 18, 2015 6:53 pm


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 11 guests

cron