Hi everyone.
I've been working on some software for the EK-TM4C123GXL. The code compiles without error, however, including SysCtlDelay() causes the program to fail to return information through UARTprintf().
I have set the clock for USB functionality in a setup function, using:
ROM_SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); ROM_SysCtlUSBPLLEnable();
The main function (with usb function calls removed) is this:
int main() { generalSetup(); ConfigureUART(); // Open an instance of the keyboard driver and initalise host controler tUSBHKeyboard *g_psKeyboardInstance = USBHKeyboardOpen(KeyboardCallback,g_pui8Buffer,KB_MEMORY_SIZE); USBHCDInit(0, g_pui8HCDPool, HCD_MEMORY_SIZE); char *teststr = "STRING"; int counter =0; uint32_t nullvar; UARTprintf("\nSTARTED NEW RUN\n"); // Main loop of application. while(1) { USBHCDMain(); UARTprintf("%c",teststr[counter]); counter++; if (counter>5){ counter = 0; UARTprintf("\n"); //ROM_SysCtlDelay(5333333); } } }
All code runs as to be expected with the "//ROM_SysCtlDelay()" function as a comment, but fails to print any of the preceeding "teststr" if uncommented. ROM is included at the beginning of the function, and the issue exists for calling this function with and without the ROM_ prefix.
Any suggestions would be highly appreciated. Thankyou.
EDIT: I am using CCS 6.0.1, updated recently. All includes/dependencies are accessible. UART communication, USB host functionality etc. have all been successfully implemented on the hardware.