- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
SDK 2.X
-
WICED Sense
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did!
payrook's answer bellow was very suggestive.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Debug is not enabled on the SENSE kit, although there are some reported unorthodox methods...
Try at your own risk...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your answer.
I got your advice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did!
payrook's answer bellow was very suggestive.
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.