Topic

FAQ
Login Register
8269 如何打印uart log?
May 22, 2019 14:59

/

A

/A
[size=150]工具view->uart log无法选择(灰色),要如何开启呢?
[/size]

[attachment=0]微信截图_20190522151550.png[/attachment]
4 replies
TL_Porter May 23, 2019 09:24
0
/A
这个功能暂时不支持;建议在code里面打开printf相关代码,用串口工具来打印log。
zhuyunclh [Author] May 23, 2019 09:33
0
/A
[quote=TL_Porter post_id=1000 time=1558574660 user_id=58] 这个功能暂时不支持;建议在code里面打开printf相关代码,用串口工具来打印log。 [/quote] 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连接到串口小板上? [attachment=0]微信截图_20190522110527.png[/attachment]
TL_Porter May 23, 2019 19:18
0
/A
参考刚发的8258。 建议后面问题尽量在一个帖子里面发,方便管理。
aithinker_zhang Jan 04, 2020 13:03
0
/A
可以参考下我们整理后的SDK,支持串口烧录,串口调试(需预先烧录uart_boot):
[code] make all //编译 make erase_fw //擦除固件 make erase_key //擦除Mesh相关数据 make monitor //打开串口监控 python3 ../../make/Telink_Tools.py -p /dev/ttyUSB0 burn_triad 1345 78da07fa44a7 221746e805ac0e6269bd4d3e55f1145c //烧录三元组 python3 ../../make/Telink_Tools.py -p /dev/ttyUSB0 write_flash 0x30000 235798abdfc //写Flash python3 ../../make/Telink_Tools.py -p /dev/ttyUSB0 read_flash 0x30000 256 //读Flash [/code] https://github.com/Ai-Thinker-Open/Telink_SIG_Mesh