I was following this AN10127 in http://www.xmos.com/support/examples, but after I compile (with no errors or warnings) and try the xrun command given in the example xrun just crashes. I have a STARTKIT connected to the computer which I have checked works using xrun -l and other projects.

The xsim command given works fine however. Could someone help me out here?
Also, I plan to apply this to xC (the example is in C). Is there a way to do this? It seems you can't have input arguments in the main function of .xc files.
Thanks