Page 1 of 1
Up-to-date Epiphany SDK manual ?
Posted:
Tue May 31, 2016 2:16 pm
by alfadnf
Hi,
I was reading this documentation Epiphany SDK manual and also staring at Epiphany examples in images.
I noticed some library functions (e_shm_attach) in examples aren't in Epiphany SDK manual. Is the docs obsolete or...???
SDK manual:
Cheers,
Re: Up-to-date Epiphany SDK manual ?
Posted:
Tue May 31, 2016 6:56 pm
by 6thimage
I wouldn't say obsolete, it just hasn't been updated for a while. The examples are the best available information on the new functions (i.e. ).
Changes don't tend to be publicly documented very quickly, but it might be that they still consider some of the functionality to be in testing. I have tried to use the shared memory features quite recently, but I couldn't get it to reliably work with the large memory allocations I needed, so I just used the older eram technique.
Re: Up-to-date Epiphany SDK manual ?
Posted:
Wed Jun 01, 2016 9:38 am
by alfadnf
Re: Up-to-date Epiphany SDK manual ?
Posted:
Wed Jun 01, 2016 3:27 pm
by 6thimage
The shared memory allocations are persistent - so if you allocate it but do not free it (i.e. your program crashed) the allocation will fail.
That code snippet firsts tries to allocate the shared memory, if it fails, it tries to attach to the shared memory (in case the alloc fail was due to it already existing). And I'm guessing if that fails it will display an error message and exit the program.
Re: Up-to-date Epiphany SDK manual ?
Posted:
Wed Jun 01, 2016 4:06 pm
by cmcconnell
Re: Up-to-date Epiphany SDK manual ?
Posted:
Wed Jun 01, 2016 4:14 pm
by alfadnf
Thank you !
Re: Up-to-date Epiphany SDK manual ?
Posted:
Wed Jun 01, 2016 9:14 pm
by 6thimage
Re: Up-to-date Epiphany SDK manual ?
Posted:
Thu Jun 02, 2016 2:37 am
by cmcconnell