Usb_msc_main.c If I add a "return OK" as the first line of main, msconn runs and returns.
If I put a printf statement before it, I get a crash. If I do the same in an example app I've written, it is fine. If I put a breakpoint at the printf statement and step over it, into there it gets to "void exit(int status)", then nxtask_exithook(tcb, status, false), then group_leave(tcb). This is crazy...I just don't get this - surely a built in system app should not be crashing like this!!!