Hi Lisa
Initialization code for UART0 as given below-
void
uart0_init(void)
{
GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); //UART-0 pins of controller
//configured UART for 8 data bits - 2 stop bits-no parity.Variable baud rate.Here baud rate is 115200.
UARTConfigSetExpClk(UART0_BASE, SysCtlClockGet(), 115200,
(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE));
//receive interrupt after 2 bytes ((1/8) * 16 = 2 bytes)
UARTFIFOLevelSet(UART0_BASE,UART_FIFO_TX7_8,UART_FIFO_RX1_8);
IntEnable(INT_UART0); //interrupt enabled in interrupt controller.
UARTIntEnable(UART0_BASE, UART_INT_RX | UART_INT_RT);//UART time-out & receive interrupts are enabled here.
} //uart_init(void)
Same code is compiled in Keil uVision3 and CCS V5.2
No compilation errors or warnings with both compilers. In debug mode, with Keil uVision3 microcontroller receives data from PC. But with CCS debug mode it is not accepting any data sent by PC.
One more doubt- Even though I remove initialization script i.e. 'lm3s1968.gel' from target_config.ccxml, while initiating debug mode, CCS shows following messages in Console -
CORTEX_M3_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M3_0: GEL Output: Watchdog Timer Enabled
CORTEX_M3_0: GEL Output: UARTs Enabled
I really don't know why and how both watchdog and UARTs gets unable in CCS debug mode.
Actually I am using both watchdog and UART0 in my program. Is there any conflict? How to avoid enabling watchdog and UARTs by CCS debugger?
I also tried to download CCS 5.4, but often there is error while downloading. Also software is very big for download. From where I can get CD? I reside in India.
Regards
Mahesh