3 Replies Latest reply on Jul 9, 2015 2:15 AM by userc_19790

    How to enable debug print with WICED SENSE KIT?

      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