Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.3.0:SD card and WiFi.disconnect(); generate random reset #2368

Closed
luc-github opened this issue Aug 6, 2016 · 2 comments
Closed

2.3.0:SD card and WiFi.disconnect(); generate random reset #2368

luc-github opened this issue Aug 6, 2016 · 2 comments

Comments

@luc-github
Copy link
Contributor

Hi I am using ESP12E with 4M flash / 1MSPIFF CPU 160Mhz and SDCard reader using stable 2.3.0

I have random boot issue since I try to integrate SD card library to my project when sample SDWebserver on same configuration does not have any - originally I was thinking about a conflict with SPIFFS so I modified sample to add SPIFFS but no luck, I moved position of SD.begin and SPIFFS.begin reset changed but still there.

Then I realize my project has a WiFi.disconnect(); at start to avoid unwished trying connection before setup start in AP or STA. so I have added to sample and an automatic restart command in loop :
https://gist.github.com/luc-github/685c27ea65707a8091fb84867899a2c2#file-sdwebserver-ino

here the error - sometimes after some reset it pass somethimes it is stuck to wdt reset

Connecting to NETGEAR_2GEXT_OFFICE2
Connected! IP address: 192.168.1.103
MDNS responder started
You can now connect to http://esp8266sd.local
HTTP server started
SD Card initialized.
Restart

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09f0c112
~ld

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0xaf
csum 0xaf
csum err
ets_main.c

I also use WiFi.mode(WIFI_OFF); but only WiFi.disconnect(); bring the problem
if I comment WiFi.disconnect(); I can do several restart without issues

Connecting to NETGEAR_2GEXT_OFFICE2
Connected! IP address: 192.168.1.103
MDNS responder started
You can now connect to http://esp8266sd.local
HTTP server started
SD Card initialized.
Restart
ø
Connecting to NETGEAR_2GEXT_OFFICE2
Connected! IP address: 192.168.1.103
MDNS responder started
You can now connect to http://esp8266sd.local
HTTP server started
SD Card initialized.
Restart
ø
Connecting to NETGEAR_2GEXT_OFFICE2
Connected! IP address: 192.168.1.103
MDNS responder started
You can now connect to http://esp8266sd.local
HTTP server started
SD Card initialized.
Restart

Is that a known issue ? Or I use WiFi.disconnect(); too early ?

Thanks

@luc-github
Copy link
Contributor Author

luc-github commented Aug 8, 2016

Just an update to confirm without WiFi.disconnect(); at start - I did not got any wdt/reset issue at boot during 2 days of several restart

@luc-github luc-github changed the title 2.3.3:SD card and WiFi.disconnect(); generate random reset 2.3.0:SD card and WiFi.disconnect(); generate random reset Aug 16, 2016
@luc-github
Copy link
Contributor Author

Changing board to NodeMCU and problem disappear - using 2.3.0 and git
Could be a defective board - so I close issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant