1 Reply Latest reply on Oct 20, 2015 1:30 PM by abirjepatil

    Minor bug in WICED-SDK\include\wiced_defaults.h

    jasonpark

      Hi,

       

      I have found a minor issue when WICED_DISABLE_STDIO is defined, and fixed as the attached.

      In the recent WICED SDK 3.3.1, I found the case that WICED prints messages onto STDIO device even it is disabled according to the defines.

      To avoid a system crash, I had to put "#ifndef WICED_DISABLE_STDIO ... #endif /* WICED_DISABLE_STDIO */" as follows,,,

       

      #ifndef WICED_DISABLE_STDIO

      /************************************************************************

      * ** WARNING for PRINTING **

      *  If printing is enabled, the stack of each thread that uses printing

      *  must be increased to at least 4 kBytes since the printf function uses

      *  a lot of memory (including dynamic memory)

      */

       

       

      /* Select which group of functions are allowed to print */

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_APP_INFO           /* Application prints */

      //#define WPRINT_ENABLE_APP_DEBUG

      //#define WPRINT_ENABLE_APP_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_LIB_INFO           /* General library prints */

      //#define WPRINT_ENABLE_LIB_DEBUG

      //#define WPRINT_ENABLE_LIB_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_WEBSERVER_INFO     /* Webserver prints */

      //#define WPRINT_ENABLE_WEBSERVER_DEBUG

      //#define WPRINT_ENABLE_WEBSERVER_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_NETWORK_INFO       /* Network stack prints */

      //#define WPRINT_ENABLE_NETWORK_DEBUG

      //#define WPRINT_ENABLE_NETWORK_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_RTOS_INFO          /* RTOS prints */

      //#define WPRINT_ENABLE_RTOS_DEBUG

      //#define WPRINT_ENABLE_RTOS_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      //#define WPRINT_ENABLE_SECURITY_INFO    /* Security stack prints */

      //#define WPRINT_ENABLE_SECURITY_DEBUG

      //#define WPRINT_ENABLE_SECURITY_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_WPS_INFO           /* WPS stack prints */

      //#define WPRINT_ENABLE_WPS_DEBUG

      //#define WPRINT_ENABLE_WPS_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_SUPPLICANT_INFO    /* Supplicant stack prints */

      #define WPRINT_ENABLE_SUPPLICANT_DEBUG

      #define WPRINT_ENABLE_SUPPLICANT_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_WICED_INFO         /* Wiced internal prints */

      //#define WPRINT_ENABLE_WICED_DEBUG

      //#define WPRINT_ENABLE_WICED_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      //#define WPRINT_ENABLE_WWD_INFO         /* Wiced Wi-Fi Driver prints */

      //#define WPRINT_ENABLE_WWD_DEBUG

      //#define WPRINT_ENABLE_WWD_ERROR

      /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

      #define WPRINT_ENABLE_PLATFORM_INFO      /* Platform prints */

      //#define WPRINT_ENABLE_PLATFORM_DEBUG

      //#define WPRINT_ENABLE_PLATFORM_ERROR

      #endif /* WICED_DISABLE_STDIO */