5 Replies Latest reply on May 27, 2020 11:24 AM by DheerajK_81

    Why does my PSOC6 fails to re-connect to the WIFI when I reset it?

    MiPi_3762791

      I'm running the default demo of Cypress's AWS FreeRTOS after following the instructions in: Getting Started with Amazon FreeRTOS and PSoC62 + 43xxx

      And when I reset I tend to get this log:

       

      WLAN MAC Address : CC:C0:79:A7:03:56

      WLAN Firmware    : wl0: Sep  5 2019 23:24:33 version 7.45.98.92 (r722362 CY) FWID 01-f7128517

      WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-09-05 23:10:00

      WHD VERSION      : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600

      .1 8308 [Tmr Svc] Wi-Fi failed to connect to AP Infinity-2.4G.

      2 8308 [Tmr Svc] Connect to SoftAP Enter SSID for Soft AP using password Enter Password for Soft AP3 8327 [Tmr Svc] Wi-Fi configuration successful.

      4 10111 [Tmr Svc] Write certificate...

      5 10756 [Tmr Svc] Write certificate...

      6 10977 [Tmr Svc] Warning: no persistent storage is available for the JITP certificate. The cerWLAN MAC Adtifi7 10978 dress : CE:[iot_threa] C0:79:A7:03[INFO ][DEMO:56

      ][lu] ---------STARTING DEMO--WLAN Firmwar-------

       

       

      .e    : wl0: 8 10980 [ioSep  5 2019t_threa] [IN 23:24:33 vFO ][INIT][lersion 7.45u] SDK succe.98.92 (r72ssfully init2362 CY) FWialized.

      ID 01-f7128517

      WLAN CLM         : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2019-09-05 23:10:00

      WHD VERSION      : v1.70.0 : v1.70.0 : GCC 7.2 : 2019-12-02 04:14:53 -0600

      Function whd_wifi_set_supplicant_key_timeout failed at line 535 checkres = 2007

      Function whd_wifi_active_join_init failed at line 1004 checkres = 2007

      Function whd_wifi_set_supplicant_key_timeout failed at line 535 checkres = 2007

      Function whd_wifi_active_join_init failed at line 1004 checkres = 2007

      Function whd_wifi_set_supplicant_key_timeout failed at line 535 checkres = 2007

      Function whd_wifi_active_join_init failed at line 1004 checkres = 2007

       

      Besides the failure to connect, the log appears to be corrupted by race conditions. Considering that logs are important to diagnose problems, I'm surprised that no measurements were taken to avoid that.