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:在简单外设项目中从显示切换到 uartlog

Guru**** 2538950 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/769876/cc2642r-switching-from-display-to-uartlog-in-simple-peripheral-project

器件型号:CC2642R

据我所知、您不应从 hwi 或 swi 上下文调用 display_print。 在项目0中、uartlog 用于登录 swi 或 hwi 上下文。 到目前为止、为了更改为 uartlog、我已将-DUARTLOG_ENABLE 添加到定义中、已将以下行添加到 main.c:

#include
#include

(笑声)

 UART_INIT();
 UartLog_init (UART_open (Board_UART0、NULL));

这是 simpleperipheral.c:

#include

(笑声)

log_info0 ("测试");

 


我不会得到任何输出。 我缺少什么?

此致