Forum Discussion
Altera_Forum
Honored Contributor
17 years agoMailboxes error in multicore system
Hi, I have a 2-CPU system based on the NEEK, with two mailboxes (one for each CPU). One CPU send a 4-bytes message to the other, which displays it. The problem is that after that, the send and get...
Altera_Forum
Honored Contributor
17 years agoOk, I overlooked that. This will nevertheless give you an unpredictable behaviour, because there is no way of knowing wich CPU will wake up first. I guess the second one will wake up later because of the extra delays in the printf, but it can't be guaranteed.
Can you make a LED flash in the code fr the first CPU? That way you'll know if it's stuck or not. Do the CPU share some RAM? In that case are you sure there is no collisions between their memory areas for text / rwdata / heap / stack?