A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
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.
Hi, I'm working with IAR compiler to EK-LM3S9B92, and trying to convert uart_echo sample from uart0 to uart1 (PORTC_6 PORTC_7). but it is not working (the same for uart0 PORTA_0 PORTA_1 is OK). I'm connecting the above ports to external RS232 Transceiver to my PC.
following code:
int main(void) { SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);
// // Loop forever echoing data through the UART. // while(1) {
while(ROM_UARTCharsAvail(UART_BASE)) { // // Read the next character from the UART and write it back to the UART. // UARTCharPutNonBlocking(UART_BASE, UARTCharGetNonBlocking(UART_BASE)); }