WiFi trying to connect an crashes on P1 OS0.8.0rc11


#1

After calling particle.connect or WiFi.connect with preloaded credentials. the following error is output. then followed by the system restarting.

If the particular Network is available and connects then there is no issue. If WiFi.on is called without a subsequent WiFi.connect or Particle.connect then the P1s don’t restart either.

This also doesn’t happen for all devices with the same PCB, firmware, OS and power supply. Could there potentially be different U260 module firmware?

Are there any thoughts as to why when trying to connect to a particular preset network that would cause it to crash?

0000010596 [hal.wlan] ERROR: wiced_join_ap_specific(), result: 1024
0000010596 [hal.wlan] INFO: Joining Home
0000017680 [hal.wlan] ERROR: wiced_join_ap_specific(), result: 1024
0000017696 [hal.wlan] INFO: Joining ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
--- P1 Crashes and restarts
0000010596 [hal.wlan] ERROR: wiced_join_ap_specific(), result: 1024
0000010596 [hal.wlan] INFO: Joining Home
0000017681 [hal.wlan] ERROR: wiced_join_ap_specific(), result: 1024
0000017697 [hal.wlan] INFO: Joining ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
--- P1 Crashes and restarts

#2

I think I solved this issue.

It seems to be related to setcreds. In my program I set cell creds.

For the above failed devices, If I clear the creds and restart the program then it works as expected.

My best guess is that during production, something caused the setcreds to get corrupted. Maybe a bad power supply or connection.