SuperHouse / esp-open-rtos

Open source FreeRTOS-based ESP8266 software framework
BSD 3-Clause "New" or "Revised" License
1.52k stars 491 forks source link

esp 8265 M2 wifi connection issues #658

Open mehdilauters opened 5 years ago

mehdilauters commented 5 years ago

Hi, I am getting in troubles trying to use an esp M2 mounted on a led controller module . I have no issue when using the tasmota firmware based on arduino and platformio but I can't connect to any access point with esp-open-rtos I use the http_get example to test it. Everything works well on a ESP12E module I use as reference. On the ESP M2

ESP-Open-SDK ver: 0.0.1 compiled @ Jul 19 2018 13:26:29 phy ver: 273, pp ver: 8.3

SDK version:0.9.9 mode : sta(dc:4f:22:81:4f:a7) add if0 HTTP get task starting... Running DNS lookup for ipv6.google.com... DNS lookup failed err=202 res=0 Running DNS lookup for ipv6.google.com... DNS lookup failed err=202 res=0



Do you have any idea of what could be wrong?
Regards
paoloach commented 5 years ago

Hi, It seems to me that 1) you have to use dout flash mode to program (it depends on the boards (https://github.com/espressif/esptool/wiki/SPI-Flash-Modes) 2) Can be that the problem is ipv6.google.com and not your board. In the http_get example try to change the web server from ipv6.google.com to www.google.com.

Regards, Paolo

mehdilauters commented 5 years ago

Thank you for your help, but actually, the wifi station doesn't connect to the access point so it is not an ipv6 issue and the dhcp server does not display any traces

paoloach commented 5 years ago

Another test you can do is using the wificfg example. It allows you to create a new wifi network (default mode) or to connect to a existing one. See in the code for user / password.

mehdilauters commented 5 years ago

Yes, but the same code works on another target (esp12e) so it should be a low level issue or something related to the hardware

mehdilauters commented 5 years ago

Hi all, Does anyone have any idea of what could be wrong, As previously, a given code is working well on esp-12. The only change made on it is the DOUT flash mode to flash the esp-m2. It correctly boots but:

Regards