Dear all,
I'm having some troubles with the mailboxes and I do know how to solve it. Console displays the following data:
enter taskFxn()
ti.sysbios.hal.Hwi: line 109: E_stackOverflow: ISR stack overflow.
xdc.runtime.Error.raise: terminating execution
Then if I comment all the Mailbox_pend and Mailbox_post the problem disapear. I create the mbox handle before starting the sysbios as following:
Mailbox_Handle spiMbox;
Mailbox_Params mboxParams;
Error_Block eb;
Error_init(&eb);
Mailbox_Params_init(&mboxParams);
mboxParams.instance->name = "mbox";
spiMbox = Mailbox_create(2,20, &mboxParams, &eb);
BIOS_start();
Then in my task I use:
unsigned char data_out[2];
Mailbox_pend(spiMbox, &data_out, BIOS_WAIT_FOREVER);
I think I'm doing it correctly. I guess it is something releated with the heapsize or some configuration of the sysbios but not sure whichone.
Does somebody has any idea of how to solve it?
Thanks in advance,
Aitor