Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

Can you please help me with the steps to debug the WICED sense using the programming USB cable? I would like to see the ble_trace<n> messages in the console. At the moment when I go to Trace -> Start Debug Traces, nothing happens.

I have seen somewhere that bleapp_trace_enable = 2 (or 1 for PUART). But when I try to define this in APPLICATION_INIT I get an error, if I redefine as UINT8 bleapp_trace_enable = 2; still no output.

Using BLE_APP_ENABLE_TRACING_ON_PUART(); doesn't seem to help either.

I commented out this line.

//#define BLE_TRACE_DISABLE

Also, a couple of separate questions.

I have re-programmed the WICED sense using the latest MAC sdk, now it doesn't beep when connecting to the phone (iPhone 6) is this expected?

When the device is programmed with the USB it is active but if no association happens and it's still plugged in to USB the device enters sleep mode and pushing the buttons can't make it come out, the device needs to be unplugged and the battery inserted. Is there a way to be able to debug with USB in and turn the sense back on?

Thanks,

Mike

0 Likes
1 Solution
Anonymous
Not applicable

Yes, debugging (breakpoints, single step) of FW is not supported.

But
you can use UART, you can have your own debug log messages in FW, when executed.
This works with UART VCP and a terminal program running on PC.
Please check some other threads how to use (just enable UART in FW and send log messages via USB UART).

View solution in original post

2 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

We did not officially support Debug/Trace output on WICED Sense as it was designed as a demo board only.

However, several users like easyit and bchristi have figured out how to get this working per the thread here: how to get debug traces ?

0 Likes
Anonymous
Not applicable

Yes, debugging (breakpoints, single step) of FW is not supported.

But
you can use UART, you can have your own debug log messages in FW, when executed.
This works with UART VCP and a terminal program running on PC.
Please check some other threads how to use (just enable UART in FW and send log messages via USB UART).