Topic

FAQ
Login Register
BLE_8269_SIG_MESH printf
Jul 05, 2018 14:28

/

A

/A
BLE_8269_SIG_MESH 怎么用串口打印printf的调试信息???
4 replies
TL_yuzhong Jul 25, 2018 16:06
0
/A
你好:
打开里面的串口设置,用串口输出就可以。
zhuyunclh May 22, 2019 11:25
0
/A
[quote=TL_yuzhong post_id=353 time=1532505986 user_id=60] 你好:
打开里面的串口设置,用串口输出就可以。 [/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:16
0
/A
参考刚发的8258的printf方法,你对比下两个sdk关于printf的差别。模拟串口打印。
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
Related topics
No related topics
Author's other topics
No more topics