I've got a situation where I'm running the ADC on a TM4C123GE6PMI at 500ksps and pushing the data into memory. I have the USB set to an interrupt priority of 0x60 using the
IntPrioritySet();
call. I've got the ADC set to 0x00 which is the highest priority. I'm DMAing the data to memory so the CPU just checks a couple if's in main, moves the samples to buffers and services the USB stack. The problem I'm having is that it works fine when it runs NOT plugged into USB. When I run it while plugged into USB I get errors in my data. It seems like the stack needs to be serviced so often or something and causes this problem. If I use these calls
USBDevDisconnect(USB0_BASE); USBDevConnect(USB0_BASE);
to disconnect it when I trigger and reconnect when my recording is done my data looks good. Is there anything I can do other than disconnect/reconnect to get the stack to chill out? I'm setup as a HID device.
Thanks,
Rob