Summary: I'm trying to understand why I can't simultaneously debug the HID composite audio device sample code (frdmk66f_dev_composite_hid_audio_unified_freertos) on my FRDM-K66F while also using it as a USB device with my host machine; I can only do one or the other.
Details: With only the DAPLink / SDA USB port (clockwise of the Ethernet port when the board is viewed from above) attached to my host computer, I am able to deploy and debug the sample code with no problems. While the code is running (not stopped in the debugger), I then connect the "device" USB port (counterclockwise of Ethernet port) to my host. I would expect to see new audio in and audio out ports appear on my host, but this does not happen. However, if I stop debugging, disconnect both cables, and then reconnect ONLY the device USB port, I see both new audio ports appear and can then use the board to play back and record audio, as expected.
I have also had similar problems in the past, unrelated to audio, where I am trying to run the board as a USB device while wanting to debug it. It seems that I can only do one or the other, which makes developing a bug-free USB device exceptionally challenging since I can't pause code execution and inspect data.
Am I doing something wrong here, or is there some inherent limitation in either the FRDM-K66F or MCUXpresso that I haven't seen mentioned anywhere?
Thank you so much for any help!