Topic

FAQ
Login Register
SWS for debug text? (8266)
Jul 14, 2019 17:22

/

A

/A
Is it possible to use the SWS connection with EVK + Swire for debug text output?

I see [b]swire_putc()[/b] in the SDK and commands like [b]tcdb uart l -s 4[/b]

Can these work together to allow debug print statements to work via SWS?

If so, are there any examples or documentation on how to make this work?

Many thanks.
2 replies
TL_bloom5 Jul 15, 2019 18:07
0
/A
hi wecango,
With swire_putc you will need a extra PC tool to pick up the text log, and the PC tool is not available for now. I would recommend you to use gpio simulate uart tx, which you could find an example in the 8258 SDK feature_test build file app_config.h, with UART_PRINT_DEBUG_ENABLE enabled you can output text log via gpio and use a serial tool to pick up the text log.
aithinker_zhang Jan 04, 2020 13:02
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