this is perhaps something more for the sc_ethernet maintainers from XMOS. Nevertheless since I do not know if is an error in the software or an error in my programming I post it here:
I get really strange exceptions in my led tile application:
In ethernet_rx_server.xc:serviceLinkCmd():59 I get an ET_ILLEGAL_RESOURCE exception. The line says:
Code: Select all
is_cmd = inuchar(link);
Code: Select all
case (int i=0;i<num_link;i++) serviceLinkCmd(link[i], i, cmd):
Code: Select all
ethernet_rx_server(rx, num_rx);
Code: Select all
ethernet_server_two_port(mii_0, mii_1, mac_address, rx, 2, tx, 2, smi_0, smi_1, null);
Code: Select all
chan rx[2], tx[2];
Nevertheless my XMOS is convinced that I am accessing an illegal resource. Unfortunately I did not find what inuchar() does or is.
So from logical deduction (don't know if it applicable here) I can only assume that either the variable link is not good (but it is one of my rx channels) or there is something wrong with inuchar - which means it is simply not there. But it compiles & links fine. So I assume it must be there...
Anybody any idea what I am doing wrong?
Thanks
Marcus