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 agoThere is no problem. The get function returns EWOULDBLOCK because there is no further message to read. It is the expected result, as you post only one message, and then wait for a long period of time.
If you want the receiving CPU to wait until a new message is available, you should use the altera_avalon_mailbox_pend() function.