In an XC file, Interrupt handler is declared as follows:
Code: Select all
void patch_board_handler(chanend c_audio,chanend c_host)
{
// memaccess error happens here when stack is prepared with the args
}
Code: Select all
set_interrupt_handler(patch_board_handler, 2, c_audio,c_host,0);
Code: Select all
register_interrupt_handler(patch_board_handler, 2, 200)
I'm using xTimecomposer 14.1.2 and the device is an xcore-200.
Any ideas on how to fix this? Otherwise, I'll have to put the 2nd arg in a global and use asm statements to perform channel operations with it.