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.

CC2642R-Q1: 尝试移植project zero工程中串口打印功能到mutli role 出问题?

Part Number: CC2642R-Q1


SDK 5.20.00.52

我的移植操作:

1、将 C:\ti\simplelink_cc13x2_26x2_sdk_5_20_00_52\source\ti\common\cc26xx\uartlog 目录下 uartlog.h和uartlog .c 拖到 CCS  Project Explorer  multi_role工程\Startup 下

2、在 multi_role工程目录中 main.c 和 multi_role.c 添加头文件包含

#include <ti/drivers/UART.h>
#include <ti/common/cc26xx/uartlog/UartLog.h>

3、在main函数中添加 UART 初始化

UART_init();
UartLog_init(UART_open(CONFIG_DISPLAY_UART, NULL));

4、对照 project_zero.syscfg 修改 multi_role.syscfg    Advanced Settings Configure Extended Settings中选项

5、在ble_Release.xscfg 中添加一行 Idle.addFunc('&uartLog_flush');

最后在 multi_role.c   multi_role_init() 函数中加入一条 Log_info0 打印语句。

运行现象:没有输出打印信息,手机可以搜索到 multi_role 设备,连接后功能也正常的。

请问还有哪里需要改动?给点提示