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.

EVM430-FR6043: USS调试接口IIC和UART的使用问题!

Part Number: EVM430-FR6043

官方DEMO程序,默认的是使用IIC和IO实现USS上位机的通信。

我看到程序中有宏定义貌似可以使用UART与USS通信。

但是我修改宏定义之后,并将开发板跳帽短接后,仍然不能实现与USS的通信,我尝试了很多次,并且检查了硬件,硬件是没有问题的。

使用IIC是正常通信,可以查看波形,配置参数的。

串口UART单独写程序,可以实现收发,说明串口是完好的。

请教一下,该如何配置程序和开发板,可以实现使用UART与USS上位机通信呢?我现在需要这么做。

开发板短路帽:J1  J3  RXD  TXD

下面是我的代码:

//*****************************************************************************
// COMM Interface Selection Definitions
//*****************************************************************************

//! \def No Serial Interface (Disable the COMM module)
//!
#define COMM_NONE (0)

//! \def UART Serial Interface
//!
#define COMM_UART (1)

//! \def I2C Slave Serial Interface
//!
#define COMM_I2CSLAVE (2)

//! \def Serial communication interface selection. Set this to one of the valid
//! interfaces or COMM_NONE to disable the COMM module.
//!
#define COMM_SERIAL_INTERFACE (COMM_UART)

//! \def Serial communication interface selection enable definitions
//! These are set automatically to include the relevent modules.
//!
#if (COMM_SERIAL_INTERFACE==COMM_UART)
#define UART__ENABLE (true)
#define I2CSLAVE__ENABLE (false)
#define TIMEOUT__ENABLE (false)
#elif (COMM_SERIAL_INTERFACE==COMM_I2CSLAVE)
#define UART__ENABLE (false)
#define I2CSLAVE__ENABLE (true)
#define TIMEOUT__ENABLE (true)
#endif