ESP8266 nodemcu lua 走過的坑


 

一、上電串口一直發送數據,藍燈閃爍,波特率74880能顯示數據,rf_cal[0] !=0x05,is 0xFF

在這里插入圖片描述

ESP8266一直在發送重啟信息

load 0x40100000, len 26828, room 16
tail 12
chksum 0xc0
ho 0 tail 12 room 4
load 0x3ffe8000, len 2980, room 12
tail 8
chksum 0xa1
load 0x3ffe8bb0, len 3740, room 0
tail 12
chksum 0xce
csum 0xce
rf_cal[0] !=0x05,is 0xFF

ets Jan 8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 26828, room 16

解決:將編譯好的固件按照下面地址刷寫到ESP8266

(注意:只需要將bin中default也燒錄進0x3fc000去即可,其他設置原封不動)

 在這里插入圖片描述

 

 

 0x3fb000-->blank.bin

0x3fc000-->esp_init_data_default.bin

0x3fe000-->blank.bin

這幾個文件,燒錄工具中一般都有


這樣子就好啦,可以解決了

原文:https://blog.csdn.net/qq_36860921/article/details/100051590

 

二、nodemcu-build.com自定義固定無法下載,提示下面信息,換好幾個瀏覽器都沒有解決,最后用手機自帶的瀏覽器(華為mate20 pro)成功,一般晚上8點半后會收到固件

Boohh!

It's pointless to select that many modules, the build is going to fail. Read the notes in the "Select modules to include" section again.  Go back and try again.

 

 

 

 三、下載固件時,如果固件差別比較大,最好下載第一步中的初始化配置文件清除下數據

四、如果需要用到串口收發數據,最好在啟動的時候延時一段時間再啟動串口腳本,否則可能出現無法寫入程序的情況

tmr.create():alarm(5000,tmr.ALARM_SINGLE,function()
    dofile("sp.lua")
end)

五、刷入固件,上次的程序還在,而且腳本無法覆蓋,可以刷下面的固件后,清除固件,清除下所有內容,再重新刷正常固件

https://pan.baidu.com/s/1vshnW_ZkMsAnwleSRexhmg?errmsg=Auth+Login+Sucess&errno=0&ssnerror=0&

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM