How do I turn on platform debug statements?

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

cross mob
Anonymous
Not applicable

How do I turn on platform debug statements?

Such as WPRINT_ENABLE_PLATFORM_INFO

which enables WPRINT_PLATFORM_INFO

and other things.

I'm porting a platform from 3.0.1 to 3.5.2 and wiced_init is returning 2 and I'm having trouble getting the debugger running (besides in RTOS, I want the printfs anyway).

0 Likes
1 Solution
JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

Hi David,

You can adjust the settings in WICED-SDK\include\wiced_defaults.h. The default should have WPRINT_ENABLE_PLATFORM_INFO enabled, but for WPRINT_ENABLE_PLATFORM_DEBUG and WPRINT_ENABLE_PLATFORM_INFO_ERROR you will have to uncomment them.

Thanks,

Jaeyoung

View solution in original post

3 Replies
JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

Hi David,

You can adjust the settings in WICED-SDK\include\wiced_defaults.h. The default should have WPRINT_ENABLE_PLATFORM_INFO enabled, but for WPRINT_ENABLE_PLATFORM_DEBUG and WPRINT_ENABLE_PLATFORM_INFO_ERROR you will have to uncomment them.

Thanks,

Jaeyoung

Anonymous
Not applicable

Oh, well when I look at the code in the editor, it looks like it's enabled, but I don't see the output in the same stream as

WPRINT_APP_INFO

which is printing app debug info just fine to a USB uart terminal.

So maybe I should be asking how to get it to go to that UART location.

0 Likes
Anonymous
Not applicable

Nevermind - it's working.... sorry..

0 Likes