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