Mbed crash on wifi.begin()

Hello

I own an OPTA Wifi board that seems to have an issue, not sure if it is software or hardware.

When i call wifi.begin(), the mbed OS crashes (red led blinking 4 times slowly and then fastly).

I have found that writing to the serial port just before invoking wifi.begin seems to avoid the issue, and so this is making the opta examples with WiFi working.

For example, the WiFiSSLClient example from the IDE is working correctly, but if I add a :

delay (1000);

just before wifi.begin, mbed OS is crashing.

I though that there was a powering issue, but the same is occuring when I plug the OPTA in a strong USB power supply.

I tried to play the memory partitionning and WiFi firmware update sketches with no success.

Do somebody ran in the same problem. Is this a known issue? is there a workaround?

I'm using Arduino IDE 2.3.4. Reported Wifi Firmware is 1.94.0

This basic code is crashing the OPTA if place on the setup function, unless I remove the delay (1000); line :

 while (status != WL_CONNECTED)
  {
    Serial.println(ssid); //if not immediately before wifi.begin, mbed will crash
    delay(1000);
    status = WiFi.begin(ssid, pass); 
  }

Thanks for reading :slight_smile:

Edit :

-> I double checked for power supplies issues, same issue is present when powering from the USB port of my computer, an independant USB power supply or a 24V industrial power supply.

-> nothing else is connected to OPTA
-> if an intentionnaly wrong SSID is used, the OPTA is NOTcrashing. If an intentionnaly wrong PSK is used with a good SSID, the OPTA IS crashing. So I guess it is crashing only when it tries to transmit something

Please read the pinned post re how to get the most from the forum.

Hi

I'm indeed not used to write in forums.

I have read the mentionned post.

Would you be kind enough to mention what I missed? It is not obvious for me.

Regards

If you read it, where is your code, Tools/Auto Format then post in code tags. Also if any error logs, post that verbose in code tags as well. If applicable, a photo of a hand drawn wiring diagram is fine. All this was told to you in the pinned post.

1 Like

In order to make all relevant information available to any who are interested in this subject, I'll share a link to the formal report @dperotto submitted to the developers of the "Arduino Mbed OS Opta Boards" platform:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.