Description
Hi,
I have an issue with my OPTA Wifi board, described here :
When i call wifi.begin()
, the mbed OS crashes (red led blinking 4 times slowly and then fastly).
Strangely, 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 stock Arduino IDE "Wifi/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 or 24V industrial supply.
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);
}
Test conditions :
- I'm using Arduino IDE 2.3.4. Reported Wifi Firmware is 1.94.0
- 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
Thanks for reading :-)