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.

在Zstack协议栈中,串口1调试不通

Other Parts Discussed in Thread: CC2530

TI工程师,你好!我用的协议栈版本是ZStack-CC2530-2.3.0-1.4.0,我想同时用CC2530的两个串口,在协议栈中默认是使用串口0,现在我想串口0用DMA方式,串口1用ISR方式,hal_board_cfg.h文件修改红色部分:

#if HAL_DMA
#ifndef HAL_UART_DMA
#if (defined ZAPP_P1) || (defined ZTOOL_P1)
#define HAL_UART_DMA  1
#elif (defined ZAPP_P2) || (defined ZTOOL_P2)
#define HAL_UART_DMA  2
#else
#define HAL_UART_DMA  1
#endif
#endif
#define HAL_UART_ISR  2
#else
#ifndef HAL_UART_ISR
#if (defined ZAPP_P1) || (defined ZTOOL_P1)
#define HAL_UART_ISR  1
#elif (defined ZAPP_P2) || (defined ZTOOL_P2)
#define HAL_UART_ISR  2
#else
#define HAL_UART_ISR  1
#endif
#endif
#define HAL_UART_DMA  0
#endif

预编译中加入了HAL_UART=TRUE和ZTOOL_P1,用串口0时,程序初始化,回调函数,打开和读写串口之类的一切正常,为何串口1没反应,不知道问题出在哪?