How to enable debug print with WICED SENSE KIT?

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

cross mob
Anonymous
Not applicable

Hi, I got WICED SENSE KIT on this week.

I make wicked_sense.c, that done with success.

But, I could not debug print on terminal via usb with WICED SENSE.

Please show me how  to enable debug print on USB serial terminal.

I tweak wiced_sense.c as shown bellow.

Added these lines on the head of wiced_sense.c

#undef BLE_TRACE_DISABLE

#define _DEBUG 1

#define DEBUG 1

And I tweak source code shown bellow.

WICED-Smart-SDK/include/Platforms/BCM920737TAG_Q32/platform.h:

#ifdef BLE_P2

//added

#if 1

//Following structure defines UARTconfiguration

constBLE_PROFILE_PUART_CFG hello_sensor_puart_cfg=

{

  .baudrate=115200,

  .txpin=GPIO_PIN_UART_TX,//PUARTDISABLE

  .rxpin=GPIO_PIN_UART_RX //PUARTDISABLE

};

#endif

//added end

Sincerely

Katsumi Imaizumi

0 Likes
1 Solution
Anonymous
Not applicable

I did!

payrook's answer bellow was very suggestive.

Re: how to get debug traces ?

build and download built firmware via usb

start trace

connect usb cable to tag

I did it with 3.3v from ftdi 3.3v wired to WICED SENSE KIT (BOARD).

I got these messages!!!

18:11:42 - Adv stopped, powerind down sensors, enabling wake.

18:11:42 - L3GD20_BootMemEnable Disable Successful

18:11:42 - L3GD20_SetAxis Disable Successful

18:11:42 - L3GD20_SetMode PD Successful

18:11:42 - LIS3DSH_SetAxis Disable Successful

18:11:42 - LIS3DSH_SetODR PD Successful

18:11:42 - LSM303D_SetAccMode PD Successful

18:11:42 - LSM303D_SetMagMode PD Successful

18:11:42 - HTS221_DeActivate Successful

18:11:42 - LPS25H_DeActivate Successful

18:11:42 - Entering deep sleep.

View solution in original post

0 Likes
3 Replies
BoonT_56
Employee
Employee
500 likes received 250 likes received 100 likes received

Debug is not enabled on the SENSE kit, although there are some reported unorthodox methods...

how to get debug traces ?

WICED Sense debug with UART

Try at your own risk...

Anonymous
Not applicable

Thank you for your answer.

I got your advice.

0 Likes
Anonymous
Not applicable

I did!

payrook's answer bellow was very suggestive.

Re: how to get debug traces ?

build and download built firmware via usb

start trace

connect usb cable to tag

I did it with 3.3v from ftdi 3.3v wired to WICED SENSE KIT (BOARD).

I got these messages!!!

18:11:42 - Adv stopped, powerind down sensors, enabling wake.

18:11:42 - L3GD20_BootMemEnable Disable Successful

18:11:42 - L3GD20_SetAxis Disable Successful

18:11:42 - L3GD20_SetMode PD Successful

18:11:42 - LIS3DSH_SetAxis Disable Successful

18:11:42 - LIS3DSH_SetODR PD Successful

18:11:42 - LSM303D_SetAccMode PD Successful

18:11:42 - LSM303D_SetMagMode PD Successful

18:11:42 - HTS221_DeActivate Successful

18:11:42 - LPS25H_DeActivate Successful

18:11:42 - Entering deep sleep.

0 Likes