SWS for debug text? (8266)

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
wecango
Posts: 4
Joined: Mon Apr 29, 2019 6:03 pm

Sun Jul 14, 2019 5:22 pm

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

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

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.
TL_bloom5
Posts: 3
Joined: Fri Jan 19, 2018 1:37 pm

Mon Jul 15, 2019 6:07 pm

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.
Post Reply