ESP8266 Developer Zone The Official ESP8266 Forum 2018-03-05T14:04:56+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=9060 2018-03-05T14:04:56+08:00 2018-03-05T14:04:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19527#p19527 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
AgentSmithers wrote:
You know, I do recall reading that. Any known benefit of going 40MHZ from 26? I mean.. I guess you maybe cant unless you alter your hardware setup right?


Yes correct

Statistics: Posted by john_m — Mon Mar 05, 2018 2:04 pm


]]>
2018-03-03T05:54:59+08:00 2018-03-03T05:54:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19514#p19514 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]> Statistics: Posted by AgentSmithers — Sat Mar 03, 2018 5:54 am


]]>
2018-03-02T13:44:34+08:00 2018-03-02T13:44:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19508#p19508 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
AgentSmithers wrote:
john_m wrote:The issue is now resolved after configuring the Crystal Frequency as 26M.

Thanks AgentSmithers for your suggestions


Yeah no worries, I've learned something as well. Does the 12E specify that it has a 26M Crystal vs a 40? Did you just guess that or see something to trigger trying that value?

"4.3. Crystal
Currently, the frequency of crystal oscillators supported include 40MHz, 26MHz and 24MHz. The accuracy of
crystal oscillators applied should be ±10PPM, and the operating temperature range should be between -20°C and 85°C.
When using the downloading tools, please remember to select the right crystal oscillator type. In circuit design,
capacitors C1 and C2, which are connected to the earth, are added to the input and output terminals of the crystal
oscillator respectively. The values of the two capacitors can be flexible, ranging from 6pF to 22pF, however, the specific
capacitive values of C1 and C2 depend on further testing and adjustment on the overall performance of the whole
circuit. Normally, the capacitive values of C1 and C2 are within 10pF if the crystal oscillator frequency is 26MHz, while
the values of C1 and C2 are 10pF<C1, C2<22pF if the crystal oscillator frequency is 40MHz."

SRC:http://www.kloppenborg.net/images/blog/esp8266/esp8266-esp12e-specs.pdf

Did you add external caps to your XTALK Pins to trigger the 26MHZ is if I'm reading this wrong the 12E is 26MHZ by default??
My WemosD1 is 40MHZ so I've never had to go down that road.


I did not add any external caps to trigger 26MHZ. But what i could see in the default init data binary which contains 0x01 at offset 0x30, is 26Mhz. Some forum is saying 0x00 for 40Mhz and 1 for 26Mhz. But i was using 40mhz in the esp download tool as crystal frequency.
Since ESP12E is 26mhz by default in hardware, i guess we have to use 26mhz.
default_init_data.png

Statistics: Posted by john_m — Fri Mar 02, 2018 1:44 pm


]]>
2018-03-02T00:25:06+08:00 2018-03-02T00:25:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19502#p19502 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
john_m wrote:
The issue is now resolved after configuring the Crystal Frequency as 26M.

Thanks AgentSmithers for your suggestions


Yeah no worries, I've learned something as well. Does the 12E specify that it has a 26M Crystal vs a 40? Did you just guess that or see something to trigger trying that value?

"4.3. Crystal
Currently, the frequency of crystal oscillators supported include 40MHz, 26MHz and 24MHz. The accuracy of
crystal oscillators applied should be ±10PPM, and the operating temperature range should be between -20°C and 85°C.
When using the downloading tools, please remember to select the right crystal oscillator type. In circuit design,
capacitors C1 and C2, which are connected to the earth, are added to the input and output terminals of the crystal
oscillator respectively. The values of the two capacitors can be flexible, ranging from 6pF to 22pF, however, the specific
capacitive values of C1 and C2 depend on further testing and adjustment on the overall performance of the whole
circuit. Normally, the capacitive values of C1 and C2 are within 10pF if the crystal oscillator frequency is 26MHz, while
the values of C1 and C2 are 10pF<C1, C2<22pF if the crystal oscillator frequency is 40MHz."

SRC:http://www.kloppenborg.net/images/blog/esp8266/esp8266-esp12e-specs.pdf

Did you add external caps to your XTALK Pins to trigger the 26MHZ is if I'm reading this wrong the 12E is 26MHZ by default??
My WemosD1 is 40MHZ so I've never had to go down that road.

Statistics: Posted by AgentSmithers — Fri Mar 02, 2018 12:25 am


]]>
2018-03-01T19:58:29+08:00 2018-03-01T19:58:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19500#p19500 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
Thanks AgentSmithers for your suggestions

Statistics: Posted by john_m — Thu Mar 01, 2018 7:58 pm


]]>
2018-03-01T17:08:54+08:00 2018-03-01T17:08:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19499#p19499 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
AgentSmithers wrote:
john_m wrote:
Programmer.png
AgentSmithers wrote:I know this sounds silly but I had the same issue when I upgraded my SDK. Have you tried doing an eraseflash with your esptool.py?
Run that command and see if that resolves it after refreshing your firmware, I know it sounds crazy but I did it I think three times before it resolved my issue.


Thanks for your suggestions so far. I tired this as well. Not working. I tried AT firmware also. No luck.

But it is working perfectly with another SDK(superhouse esp-open_rtos).

Kindly confirm the programming addresses (for ESP12E Node MCU module) from the attached


Ahhh oooo esshh, I am not sure about your addresses. Im a NonSDK guy, We only use 0x1000 for OTA firmware. For standalone we use 0x10000. One thousand vs. Ten thousand. But if your boots and you can see your PrintF's then I couldnt see why it wont work. The only thing I can imagine is your init data being wrong but even then... I flash my init to 3FC000 as well though, so the difference I see here is your blank.bin is being flashed to 3fe000, on mine I am doing 0xFE000 and 0x7e000. I don't have notes on me at the moment on why I did that but our main address is different for sure (the 1000 vs 10000).
I tried to look up the external SPI size of the ESP12E and cant seem to easly find it. Ensure that 32Mbit = 4MB is correct.

Note: Mb = Megabits and MB = MegaBytes. I apologize if you are already aware of this.


Yes. I get debugs from my firmware. WiFi just doesnot work in the official RTOS SDK(even the prebuilt AT firmware doesnot work). But the superhouse esp_open_rtos SDK works fine.

Statistics: Posted by john_m — Thu Mar 01, 2018 5:08 pm


]]>
2018-03-01T15:40:38+08:00 2018-03-01T15:40:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19498#p19498 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
john_m wrote:
Programmer.png
AgentSmithers wrote:I know this sounds silly but I had the same issue when I upgraded my SDK. Have you tried doing an eraseflash with your esptool.py?
Run that command and see if that resolves it after refreshing your firmware, I know it sounds crazy but I did it I think three times before it resolved my issue.


Thanks for your suggestions so far. I tired this as well. Not working. I tried AT firmware also. No luck.

But it is working perfectly with another SDK(superhouse esp-open_rtos).

Kindly confirm the programming addresses (for ESP12E Node MCU module) from the attached


Ahhh oooo esshh, I am not sure about your addresses. Im a NonSDK guy, We only use 0x1000 for OTA firmware. For standalone we use 0x10000. One thousand vs. Ten thousand. But if your boots and you can see your PrintF's then I couldnt see why it wont work. The only thing I can imagine is your init data being wrong but even then... I flash my init to 3FC000 as well though, so the difference I see here is your blank.bin is being flashed to 3fe000, on mine I am doing 0xFE000 and 0x7e000. I don't have notes on me at the moment on why I did that but our main address is different for sure (the 1000 vs 10000).
I tried to look up the external SPI size of the ESP12E and cant seem to easly find it. Ensure that 32Mbit = 4MB is correct.

Note: Mb = Megabits and MB = MegaBytes. I apologize if you are already aware of this.

Statistics: Posted by AgentSmithers — Thu Mar 01, 2018 3:40 pm


]]>
2018-03-01T14:41:32+08:00 2018-03-01T14:41:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19494#p19494 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
Programmer.png
AgentSmithers wrote:
I know this sounds silly but I had the same issue when I upgraded my SDK. Have you tried doing an eraseflash with your esptool.py?
Run that command and see if that resolves it after refreshing your firmware, I know it sounds crazy but I did it I think three times before it resolved my issue.


Thanks for your suggestions so far. I tired this as well. Not working. I tried AT firmware also. No luck.

But it is working perfectly with another SDK(superhouse esp-open_rtos).

Kindly confirm the programming addresses (for ESP12E Node MCU module) from the attached

Statistics: Posted by john_m — Thu Mar 01, 2018 2:41 pm


]]>
2018-03-01T08:04:19+08:00 2018-03-01T08:04:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19491#p19491 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]> Run that command and see if that resolves it after refreshing your firmware, I know it sounds crazy but I did it I think three times before it resolved my issue.

Statistics: Posted by AgentSmithers — Thu Mar 01, 2018 8:04 am


]]>
2018-02-27T15:35:01+08:00 2018-02-27T15:35:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19463#p19463 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
AgentSmithers wrote:
john_m wrote:
Her Majesty wrote:There are some examples may help on github. https://github.com/espressif/esp8266-rtos-sample-code/tree/master/03Wifi


I tried, Still no luck :(



Try this sir.

wifi_set_sleep_type( NONE_SLEEP_T );


Sorry for the late reply. I tried, still No luck.

Statistics: Posted by john_m — Tue Feb 27, 2018 3:35 pm


]]>
2018-02-01T08:26:56+08:00 2018-02-01T08:26:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19244#p19244 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
john_m wrote:
Her Majesty wrote:There are some examples may help on github. https://github.com/espressif/esp8266-rtos-sample-code/tree/master/03Wifi


I tried, Still no luck :(



Try this sir.

wifi_set_sleep_type( NONE_SLEEP_T );

Statistics: Posted by AgentSmithers — Thu Feb 01, 2018 8:26 am


]]>
2018-01-25T17:05:28+08:00 2018-01-25T17:05:28+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19176#p19176 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]>
Her Majesty wrote:
There are some examples may help on github. https://github.com/espressif/esp8266-rtos-sample-code/tree/master/03Wifi


I tried, Still no luck :(

Statistics: Posted by john_m — Thu Jan 25, 2018 5:05 pm


]]>
2018-01-25T17:03:51+08:00 2018-01-25T17:03:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19175#p19175 <![CDATA[Re: WiFi Not working in latest RTOS SDK]]> https://github.com/espressif/esp8266-rtos-sample-code/tree/master/03Wifi

Statistics: Posted by Her Mary — Thu Jan 25, 2018 5:03 pm


]]>
2018-01-24T15:18:06+08:00 2018-01-24T15:18:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=9060&p=19167#p19167 <![CDATA[WiFi Not working in latest RTOS SDK]]>
WiFi is not working in both station mode and AP mode. I tried many sample code. Here is one of them,

Code:

     /* need to set opmode before you set config */
    wifi_set_opmode(STATIONAP_MODE);

    struct station_config *config = (struct station_config *)malloc(sizeof(struct station_config));
   bzero(config, sizeof(struct station_config));
        sprintf(config->ssid, "john");
        sprintf(config->password, "12345678");

        /* need to sure that you are in station mode first,
         * otherwise it will be failed. */
        wifi_station_set_config(config);
        free(config);


Could you please let me know what is the issue here? Thanks in advance

Statistics: Posted by john_m — Wed Jan 24, 2018 3:18 pm


]]>