Hi,
We are having an issue with the mailbox API function : altera_avalon_mailbox_open.
We call it with:
altera_avalon_mailbox_dev* mailbox_sender = altera_avalon_mailbox_open("/dev/mailbox_simple_0", tx_cb, NULL);
But we get a null pointer as a return value.
The callback function being a simple printf :
void tx_cb (void* report, int status) {
if (!status) {
printf("Sent message\n");
} else {
printf("Error sending message\n");
}
}
We also have an issue when compiling, the generated file alt_sys_init.c is looking for Mailbox macros which do not exist in our system :
alt_sys_init.c:74:41: error: 'MAILBOX_SIMPLE_0_BASE' undeclared here (not in a function)
But in system.h, the macros generated are :
MAILBOX_SIMPLE_0_AVMM_MSG_SENDER_BASE
and
MAILBOX_SIMPLE_0_AVMM_MSG_RECEIVER_BASE
We are using this mailbox in the Qsys :