SWS for debug text? (8266)
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.
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.
[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