wifi_station_connect causes WDT reset?
Posted: Wed Oct 22, 2014 11:55 am
Hi,
What do I need to do so that wifi_station_connect() function doesn't reset the chip after being called?
This is part of code that produces this error:
The result on UART:
I also found out that if I comment the line wifi_station_connect() the module somehow connects to my AP (it probably saves my AP information in flash somewhere because even when I re-flash it with new firmware it somehow connects on it's own). Also, if I call wifi_station_disconnect() at the beginning of my code I also get a restart.
Any clues?
Oh, and I previously did a wifi_set_opmode(1); // STATION_MODE
What do I need to do so that wifi_station_connect() function doesn't reset the chip after being called?
This is part of code that produces this error:
Code: Select all
//...stationConf is loaded with setup above this line...
wifi_station_set_config(&stationConf);
uart0_sendStr("Connecting to WIFI...");
os_sprintf(temp, "SSID: %s, PWD: %s\r\n", stationConf.ssid, stationConf.password);
uart0_sendStr(temp);
wifi_station_connect();
The result on UART:
Code: Select all
Connecting to WIFI...SSID: linksys7, PWD: nobodyknowsit
ets Jan 8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 23760, room 16
tail 0
chksum 0xd0
load 0x3ffe8000, len 2692, room 8
tail 12
chksum 0x24
ho 0 tail 12 room 4
load 0x3ffe8a90, len 3672, room 12
tail 12
chksum 0xf0
csum 0xf0
I also found out that if I comment the line wifi_station_connect() the module somehow connects to my AP (it probably saves my AP information in flash somewhere because even when I re-flash it with new firmware it somehow connects on it's own). Also, if I call wifi_station_disconnect() at the beginning of my code I also get a restart.
Any clues?
Oh, and I previously did a wifi_set_opmode(1); // STATION_MODE