I've been running an XTCP stack for a webserver and TFTP on the xcore for a couple weeks. I ran into some problems when trying to send more than one file over XTCP without a system reset in between (crash on some "client ready" channel communication). Reseting after receiving a file is fine for me tho, so that is an okay workaround.
Now, about two hours ago, I could not connect to the webserver anymore. Hunting down the error showed that the XTCP stack wasnt initializing and got stuck here (core[3], set mac). The other channel communications shown did not advance any further either. More specifically, the xtcp_client and set_macaddr() got stuck when expecting a control token get_index() is stuck on "in (2r) r0, res[r1]", that should be a channel/ressource operation as well.
How may I debug fails like this?
Update: I loaded a backup from the day before. The first time I started a debug session, everything worked. After that: no success.
Update 2: Same behaviour on both custom hardware and eXplorerKit. Also, changing a define that alters some pins (custom hardware and devkit use different ports for e.g. an SPI interface) and the PHY driver used (AR8035 vs KSZ9031) will result in an error that i may only fix by doing a clean build of the project.
xcc1: terminated due to internal unrecoverable error
For bug reporting instructions, please see:
http://www.xmos.com/support
xmake[1]: *** [.build/src/xmos_modem_new.xc.o] Error 1
xmake: *** [bin//xmos_modem_new.xe] Error 2