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.

UART communication

Other Parts Discussed in Thread: CC2540

Hi

I am not able to receive data on UART0 of cc2540

I am trying to receive data on Win Xp based hyperterminal from CC2540EMK

I am using the following configuration for communication, not able to locate the problem

checking serial packets on ( Rx  on P0.2  & Tx on P0.3) (ie. pin 7 - Rx & pin 9 TX of  P1 of cc2540emk) 

#define SBP_UART_PORT                                  HAL_UART_PORT_0
//#define SBP_UART_FC                                     TRUE
#define SBP_UART_FC                                       FALSE
#define SBP_UART_FC_THRESHOLD          48
#define SBP_UART_RX_BUF_SIZE                128
#define SBP_UART_TX_BUF_SIZE                 128
#define SBP_UART_IDLE_TIMEOUT               6
#define SBP_UART_INT_ENABLE                 TRUE

halUARTCfg_t uartConfig;

// configure UART
uartConfig.configured = TRUE;
uartConfig.baudRate = SBP_UART_BR;
uartConfig.flowControl = SBP_UART_FC;
uartConfig.flowControlThreshold = SBP_UART_FC_THRESHOLD;
uartConfig.rx.maxBufSize = SBP_UART_RX_BUF_SIZE;
uartConfig.tx.maxBufSize = SBP_UART_TX_BUF_SIZE;
uartConfig.idleTimeout = SBP_UART_IDLE_TIMEOUT;
uartConfig.intEnable = SBP_UART_INT_ENABLE;
uartConfig.callBackFunc = NULL;//PollSerialPort;

 (void)HalUARTOpen( SBP_UART_PORT, &uartConfig );

Am i checking data packets on a wrong port?

Not able to identify what is going wrong. Please help

BR

Gautam