[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - e_init command

e_init command

Discussion about Parallella (and Epiphany) Software Development

Moderators: amylaar, jeremybennett, simoncook

e_init command

Postby Urhixidur » Tue Jun 16, 2015 7:25 pm

Where does `e_init(char *hdf)` look for its `platform.hdf` file? According to the Epiphany SDK Reference, if the `hdf` parameter is `NULL`, then the file location is read from the `EPIPHANY_HDF` environment variable. If the variable is not set, then the function tries to locate the `platform.hdf` file "located in the current BSP directory".

My tiny example (`epiphany_examples/cpu/remote_call/main.c`) works fine if I give `e_init` a fully qualified path (i.e. `e_init("/opt/adapteva/esdk/bsps/current/platform.hdf")`), but dies suddenly if I give it a `NULL` (i.e. `e_init(NULL)`). This is strange because `EPIPHANY_HDF` is set properly. Note also that I get no error message besides `e_init`'s initial 'No Hardware Definition File (HDF) is specified. Trying "platform.hdf".'.

What is wrong?
User avatar
Urhixidur
 
Posts: 16
Joined: Mon Jan 19, 2015 7:19 pm
Location: Québec, QC, Canada

Re: e_init command

Postby Urhixidur » Tue Jun 16, 2015 8:19 pm

User avatar
Urhixidur
 
Posts: 16
Joined: Mon Jan 19, 2015 7:19 pm
Location: Québec, QC, Canada


Return to Programming Q & A

Who is online

Users browsing this forum: No registered users and 10 guests