Hi, I am trying to use some memory between two parallel tasks and I am ensuring that same memory regions are never used at same time in these two threads.But xc compiler throws parallel usage rules error. After going through some post, I decided to add c functionality to write to and read from memory regions.To do this I am trying to pass unsafe pointer from xc file to C function, but then I get function mismatch error because of xC pointer and C pointer.How to fix this?

Pointers in C are always unsafe pointer equivalents. You need to ensure that when you include a C-header from an XC file that the function prototypes will be correctly interpreted. The easiest way is to use the extern "C" in your header so that XC knows the function is a C function:

Hi there, Sorry, about that.I found the issue. It was a configuration setting that wasn't correctly set. Before only moderators could mark a topic as answered.I've updated the settings so both moderators and the topic author can mark a particular topic as answered.Thanks,Miguel