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.

Multiple UART usage

I am experimenting with the Stellaris Launchpad for Lm4F120H5Qr.  I have gotten the UARTS to work as intended but seem to be having trouble having one be for serial communications and the other (USB UART0) be strictly for service terminal printouts to the virtual port.  It would seem that this should be possible and also be very valuable in debugging (in certain cases) code if a serial port can be used for printouts and the other performing meaningful serial comms.  The setup of the UARTs seems to go just fine, but as soon as a UARTprintf is invoked, the debugger won't step or run anymore and when stopped it states "No source availabe for "0x90036800"".  I have listed the setup code and such up to the printf below for review.  Any ideas why I can't use UART0 for simple printouts and UART3 as my serial comms with other devices?  Please let me know your thoughts here.

 

SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);

// service terminal setup for print outs on UART0 (USB supported)

SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

GPIOPinConfigure(GPIO_PA0_U0RX);

GPIOPinConfigure(GPIO_PA1_U0TX);

GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);

UARTStdioConfig(0, 38400, SysCtlClockGet());

 

// enable UART3 and GPIO peripherals - both are needed for hardware interaction

SysCtlPeripheralEnable(SYSCTL_PERIPH_UART3);

SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);

GPIOPinConfigure(GPIO_PC6_U3RX);

GPIOPinConfigure(GPIO_PC7_U3TX);

GPIOPinTypeUART(GPIO_PORTC_BASE, GPIO_PIN_6 | GPIO_PIN_7);

// configure the UART for 38400, 8-n-1 operation

UARTConfigSetExpClk(UART3_BASE, SysCtlClockGet(), 38400, (UART_CONFIG_PAR_NONE | UART_CONFIG_STOP_ONE | UART_CONFIG_WLEN_8));

UARTprintf("\nUART Testing TI Comms - Begins....\r\n");