Last active
April 7, 2016 10:45
-
-
Save uncletammy/198fec767a8e4803e6af to your computer and use it in GitHub Desktop.
ESP8266 Sketches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
ESP8266 CheckFlashConfig by Markus Sattler | |
This sketch tests if the EEPROM settings of the IDE match to the Hardware | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <Hash.h> | |
ESP8266WiFiMulti WiFiMulti; | |
void setup(void) { | |
Serial.begin(115200); | |
uint32_t realSize = ESP.getFlashChipRealSize(); | |
uint32_t ideSize = ESP.getFlashChipSize(); | |
FlashMode_t ideMode = ESP.getFlashChipMode(); | |
Serial.printf("Flash real id: %08X\n", ESP.getFlashChipId()); | |
Serial.printf("Flash real size: %u\n\n", realSize); | |
Serial.printf("Flash ide size: %u\n", ideSize); | |
Serial.printf("Flash ide speed: %u\n", ESP.getFlashChipSpeed()); | |
Serial.printf("Flash ide mode: %s\n", (ideMode == FM_QIO ? "QIO" : ideMode == FM_QOUT ? "QOUT" : ideMode == FM_DIO ? "DIO" : ideMode == FM_DOUT ? "DOUT" : "UNKNOWN")); | |
if(ideSize != realSize) { | |
Serial.println("Flash Chip configuration wrong!\n"); | |
} else { | |
Serial.println("Flash Chip configuration ok.\n"); | |
} | |
for(uint8_t t = 4; t > 0; t--) { | |
delay(1000); | |
} | |
Serial.println("Joining network"); | |
WiFiMulti.addAP("myNetworkName", "hackon!!"); | |
while(WiFiMulti.run() != WL_CONNECTED) { | |
delay(100); | |
} | |
Serial.println("Connected using IP:"); | |
Serial.println(WiFi.localIP()); | |
Serial.println("And MAC address:"); | |
Serial.println(WiFi.macAddress()); | |
} | |
void loop() { | |
Serial.println("...still connected!\n"); | |
delay(5000); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flash real id: 001640E0 | |
Flash real size: 4194304 | |
Flash ide size: 4194304 | |
Flash ide speed: 40000000 | |
Flash ide mode: DIO | |
Flash Chip configuration ok. | |
Joining network | |
Panic /home/tink/arduino-nightly/hardware/esp8266com/esp8266/cores/esp8266/umm_malloc/umm_malloc.c:851 check_poison_block | |
ctx: cont | |
sp: 3ffefbb0 end: 3ffeffe0 offset: 01b0 | |
>>>stack>>> | |
3ffefd60: 00000002 3ffefca2 feefeffe feefeffe | |
3ffefd70: feefeffe 00000658 3ffeeecc 40100445 | |
3ffefd80: feefeffe feefeffe feefeffe 4010075b | |
3ffefd90: feefeffe 00001000 00000484 40100919 | |
3ffefda0: 00000484 00001000 000003fe 40107ab4 | |
3ffefdb0: 40004b31 3ffefde0 0000001c 40224669 | |
3ffefdc0: 40106116 40224751 3fff0684 000003ff | |
3ffefdd0: 000003fd 3ffefe80 3fff0684 000003fd | |
3ffefde0: ffffff01 55aa55aa 00000009 0000001c | |
3ffefdf0: 0000001c 000000a3 00000078 000003ff | |
3ffefe00: 40224b40 3fff0684 3fff0684 000000ff | |
3ffefe10: 00000001 3ffefea0 40224c9b 00000008 | |
3ffefe20: 3fff0684 000000ff 3ffefe80 00000000 | |
3ffefe30: 3fff0744 3ffefee1 00000001 40224d28 | |
3ffefe40: 3ffefe80 3fff0684 fffffffe 3ffeeed0 | |
3ffefe50: 3ffefea0 3fff69bc 3fff0684 fffffffe | |
3ffefe60: 40224d64 00000000 00000000 feefeffe | |
3ffefe70: 40202ae8 feefeffe feefeffe feefeffe | |
3ffefe80: feefef00 feefeffe feefeffe feefeffe | |
3ffefe90: feefeffe feefeffe feefeffe feefeffe | |
3ffefea0: feefef00 feefeffe feefeffe feefeffe | |
3ffefeb0: feefeffe feefeffe feefeffe feefeffe | |
3ffefec0: 402243ba 3ffeeef0 3ffeed8c 00400000 | |
3ffefed0: 402251df feefeffe feefeffe feefeffe | |
3ffefee0: 3fff015c 40202bac feefeffe 3ffeeed0 | |
3ffefef0: 00000000 3ffeed8c 00000000 402028c3 | |
3ffeff00: 00000018 feefeffe 3ffeed78 40107a70 | |
3ffeff10: 0000001c 00000000 00000018 4020361c | |
3ffeff20: 00000015 00000001 3ffe88c5 402029a7 | |
3ffeff30: 3ffeff60 3ffe849c 00000015 401008fc | |
3ffeff40: 00400000 0000000f 00000009 3ffeeed0 | |
3ffeff50: 3ffe848d 3ffeed78 3ffe849c 40202a75 | |
3ffeff60: 3fff010c 3fff064c 3ffeeef0 40203aa4 | |
3ffeff70: 00400000 3ffeed78 3ffeeef0 3ffeeed0 | |
3ffeff80: 00400000 3ffeed78 3ffeeef0 402024f7 | |
3ffeff90: feefeffe feefeffe feefeffe feefeffe | |
3ffeffa0: 00000002 feefeffe feefeffe feefeffe | |
3ffeffb0: feefeffe feefeffe feefeffe 3ffeefac | |
3ffeffc0: 3fffdad0 00000000 3ffeefa5 4020373c | |
3ffeffd0: feefeffe feefeffe 3ffeefc0 40100b98 | |
<<<stack<<< | |
ets Jan 8 2013,rst cause:2, boot mode:(1,6) | |
WITH GPIO0 low at 74480 | |
ets Jan 8 2013,rst cause:2, boot mode:(3,6) | |
load 0x4010f000, len 1264, room 16 | |
tail 0 | |
chksum 0x42 | |
csum 0x42 | |
~ld | |
�I-A��*�*!1&=)��r5$|�z�X��5F(ܺxZ�Hz�X��B�hxZ�-��-Q,11��r+d�y�e��!�I-A!I,ͫQ��m��Q�i+8���kq+���a� |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NodeMCU board | |
tail 0 | |
chksum 0x42 | |
csum 0x42 | |
Flash real id: 001640E0 | |
Flash real size: 4194304 | |
Flash ide size: 4194304 | |
Flash ide speed: 40000000 | |
Flash ide mode: DIO | |
Flash Chip configuration ok. | |
Joining network | |
Connected using IP: | |
10.100.20.136 | |
And MAC address: | |
5C:CF:7F:0B:70:E0 | |
...still connected! | |
...still connected! | |
...still connected! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment