USB Audio device disappears running debugger, runs fine when flashed
Posted: Sat Sep 22, 2018 4:51 am
Here's something really odd. Code based on the USB Audio kit (the MQA dev kit).... ported to custom hardware. When flashed, code runs great. In the debugger, if I set it to break at main, it shows up (USB Prober, Mac OS X) until you hit run, then the USB device disappears.
The USB Phy is connected to tile[0], whereas in the stock driver it's on tile[1], though changing to tile[0] in the stock kit still works fine in the debugger.
Just wondering where to look... I've made the setups, .xn files, etc. match as closely as possible. Seems like it's a timing issue where the USB firmware isn't responding quickly enough. The xmos is actually running, and everything looks ok from the debugger (sitting in the right calls when you manually break, etc.)
The USB Phy is connected to tile[0], whereas in the stock driver it's on tile[1], though changing to tile[0] in the stock kit still works fine in the debugger.
Just wondering where to look... I've made the setups, .xn files, etc. match as closely as possible. Seems like it's a timing issue where the USB firmware isn't responding quickly enough. The xmos is actually running, and everything looks ok from the debugger (sitting in the right calls when you manually break, etc.)