I don't think that using malloc() on the Epiphany cores is a good idea. Dynamic memory might be allocated in shared memory, which has different access semantics, which will cause your code to fail. There are provisions for using alloca() instead, but I don't know if this replaces all malloc()-calls. Try it.
Check your program size. If you put your data at 0x2000, then your whole kernel must be smaller than 8 KB. Try using a higher address, but make sure that your data does not overlap either your program (easy to check) or the stack (harder to check, if using alloca).
Also, quite some time ago, I released a program called e-top on this forum. Search for it, it might help you see what's going on within the cores.
Best Regards,
sebraaStatistics: Posted by sebraa — Wed Aug 30, 2017 12:37 pm
]]>