Tool/software: Code Composer Studio
I'm having issues sourcing a REACH compliant resonator for my design, so I'm trying to migrate the design to a 24MHz crystal. I've prototyped the 24MHz crystal and verified that USB BSL mode works. The issue I'm having is with porting the application firmware. The MCU runs with the faster clock; I've verified that outputs toggle at the expected frequency despite the increase in clock source. However, my USB interface never comes up. Its not detected by windows. Windows does not even suggest there is a faulty device. When I step through execution, USB_connectionState reports ST_USB_CONNECTED_NO_ENUM and the register USBCTL contains FEN=0 suggesting my USB module has simply refused to turn on.
I have modified descriptors.h as follows:
#define USB_MCLK_FREQ 24000000 // MCLK frequency of MCU, in Hz #define USB_XT_FREQ_VALUE 24 // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT #define USB_XT_FREQ USBPLL_SETCLK_24_0 // Indicates the freq of the crystal on the oscillator indicated by USB_PLL_XT
In my main.c, USB_MCLK_FREQ is passed to the initClocks function in the unmodified hal.c from the USB examples.
Am I missing something obvious?
How can I troubleshoot what my USB is doing?
Thanks,
Ren