-->
Page 3 of 9

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Mon Nov 23, 2015 5:50 pm
by saad2919
@martinayotte

Hi,I am trying to use the code you posted for server and client. I get the following error on the client module on the serial monitor of the Arduino IDE:


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

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

I'm not sure if it makes a difference, but the specific model I have has a built in regulator, it looks like this http://www.gearbest.com/transmitters-re ... Apy_8P8HAQ

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Tue Nov 24, 2015 10:35 am
by martinayotte
It is difficult to figure out why it is not working for you, since the code is running fine for months.
Maybe you have bad configs already stored in the Flash.
Is the crash happening on the Server or the Client ?
Did you try to erase the whole Flash before uploading the sketch ?

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Tue Nov 24, 2015 1:45 pm
by saad2919
martinayotte wrote:It is difficult to figure out why it is not working for you, since the code is running fine for months.
Maybe you have bad configs already stored in the Flash.
Is the crash happening on the Server or the Client ?
Did you try to erase the whole Flash before uploading the sketch ?



It's crashing on the client, server seems to be running fine. I'm not sure how to check for bad configs in the Flash. How should I go about erasing the Flash?

Re: P2P: ESP in AP mode and ESP in STA mode not working

PostPosted: Tue Nov 24, 2015 1:57 pm
by martinayotte
To erase flash, some bootloader such esptool.py from https://github.com/themadinventor/esptool has such option.
Code: Select allesptool.py --port /dev/ttyUSB0 erase_flash

For the esptool binary that comes with IDE, I think the "-ce" for erase has been added 3 weeks ago.
https://github.com/igrr/esptool-ck/blob ... /README.md