This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have USB code that has been running well on a TM4C129x development board, but which doesn't work on our custom TM4C1294KCPDT based board.
The immediate issue is that I'm not getting SOF interrupts. I do get suspend and reset interrupts.
The hardware seems to be correct. If I erase the processor flash the system comes up as a Stellaris Firmware Update device in device manager.
I assume there is a configuration difference between the TM4C129XNCZADI on the dev kit and the TM4C1294KCPDT on our board, but I can't find anything that looks likely.
Where should I look for the cause of this issue?
Hi Charles,
thank you for the reply. I had a long reply here which I'd been working up all day. However, in the process of investigation while writing the reply I've "solved" the problem!
It turns out that an update to sysctl.c between TivaWare_C_Series-2.0.1.11577 and TivaWare_C_Series-2.1.4.178 has messed up the USB clock in some fashion. The clue was the note for RESUME bit in USB_IS which says:
"This interrupt can only be used if the USB controller's system clock is enabled. If the user disables the clock programming, the USBDRRIS, USBDRIM, and USBDRISC registers should be used."
which pointed me at looking closer to the system clock configuration. I found that details of the PLL setup differ between the two systems. The debug serial port works correctly on both systems which implies the system clock is running at 120 MHz as expected so I hadn't considered clock configuration previously.
Copying the 2.0.1.11577 version of sysctl.c into my 2.1.4.178 based build and making the minor changes required for it to compile has fixed the problem. Our custom board now comes up correctly as a USB device.
There is still a mystery as to why the different PLL configuration has messed up USB. I suspect there may be a clock jitter issue with the new configuration, but I haven't confirmed that.
Cheers, Peter