Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

How to use the mutex

Hello to everyone i am developing an application with two processor, one is using pure C code and the other one has an uCLinux running in it.

I want them to share the same onchip memory so they can comunicate with each other, i've done with no mutex and it works fine as long as one processor only reads and the other one only writes.

However i want both to be able to read and write from the same onchipmemory, how can i do it using mutex? I haven't understood how to use mutex properly, do i need two mutex (one for each processor) and how should i connect them on Q-Sys?

I've read the altera documentation but it isn't clear for me yet. Thanks

13 Replies