2017-06-17 205 views
0

我使用的是帶有Arduino IDE的amazon的ESP-12E NodeMCU板。它一直在工作沒有任何問題,但現在我試圖使用SPIFFS來存儲數據,並且當我調用SPIFFS.begin或SPIFFS.format 8秒後我得到一個看門狗超時。SPIFFS.begin或SPIFFS格式的看門狗超時

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

wdt reset 

我已經運行示例CheckFlashConfig草圖,它報告大小不匹配。 IDE大小爲4M,實際大小爲1M。我正在使用針對NodeMCU 1.0(ESP-12E模塊)的Adruino IDE板定義,其閃存設置爲4M(3M SPIFFS)。

 
Flash real id: 001440C8 
Flash real size: 1048576 

Flash ide size: 4194304 
Flash ide speed: 40000000 
Flash ide mode: DIO 
Flash Chip configuration wrong! 

這裏的CheckFlashConfig草圖的全碼:

 
/* 
ESP8266 CheckFlashConfig by Markus Sattler 

This sketch tests if the EEPROM settings of the IDE match to the Hardware 

*/ 

    void setup(void) { 
    Serial.begin(115200); 
    } 

void loop() { 

    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"); 
    } 

    delay(500000); 
    } 
+0

確實用不同的IDE設置重新刷新了嗎? – dandavis

+0

我試着用esptool.py閃爍並閃過2.1.0(1.5.3),但CheckFlashConfig結果沒有變化。 – SeattleStephens

+1

請發表您的完整代碼,否則我們不能複製。如果你真的買了ESP-12E,它應該是32MBit/4Mbyte。你能告訴我們'esptool.py flash_id'的輸出嗎? –

回答

0

我從其他供應商購買了第二阿米卡NodeMCU單位,也沒有問題。我把這個問題歸結爲壞的硬件。