8269 如何打印uart log?

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
zhuyunclh
Posts: 14
Joined: Mon May 20, 2019 8:05 pm

Wed May 22, 2019 2:59 pm

工具view->uart log无法选择(灰色),要如何开启呢?

微信截图_20190522151550.png
微信截图_20190522151550.png (60.53 KiB) Viewed 915 times
TL_Porter
Posts: 21
Joined: Tue Mar 07, 2017 9:31 am

Thu May 23, 2019 9:24 am

这个功能暂时不支持;建议在code里面打开printf相关代码,用串口工具来打印log。
zhuyunclh
Posts: 14
Joined: Mon May 20, 2019 8:05 pm

Thu May 23, 2019 9:33 am

TL_Porter wrote:
Thu May 23, 2019 9:24 am
这个功能暂时不支持;建议在code里面打开printf相关代码,用串口工具来打印log。
1.如何在code里面打开printf代码呢?
我看了vendor\mesh\app_config_8269.h似乎有关于打印uart log的开关
#define __LOG_RT_ENABLE__ 0
//#define __DEBUG_PRINT__ 0
#if HCI_LOG_FW_EN
#define DEBUG_INFO_TX_PIN GPIO_PA0
但是app_config_8269.h并没有被编译进去
2.我是否只要把16脚URX,17脚UTX,GND连接到串口小板上?
微信截图_20190522110527.png
微信截图_20190522110527.png (124.52 KiB) Viewed 901 times
TL_Porter
Posts: 21
Joined: Tue Mar 07, 2017 9:31 am

Thu May 23, 2019 7:18 pm

参考刚发的8258。 建议后面问题尽量在一个帖子里面发,方便管理。
Post Reply