2018-2-4 18:15:58 [显示全部楼层]
15911浏览
查看: 15911|回复: 4

[求助] 用ArduinoIDE给nodemcu烧录失败?

[复制链接]
我是想做个彩灯的。(这个页面的https://mc.dfrobot.com.cn/forum.p ... 6865&highlight=siri)
1\在安信可官网购买NodeMCU   (地址:https://item.taobao.com/item.htm ... 73624&_u=4e98e2be97
2\下载Arduino 1.8.5
3\安装ESP8266环境支持包。(其间翻墙安装完)我参考了这个:https://www.cnblogs.com/YoungGu/p/8046813.html
4\将nodemcu用USB线连到电脑,装上CP210x驱动。百度搜的。
5、再次打开IDE软件,设好端口。开发板选nodeMCu 1.0,其它默认没运,速率是115200 flash是4m CPU是80mhz
6、按住nodeMCU的FLASH键不放,再按一下RST键,蓝灯闪了一下后就灭了。
7、我尝试选了示例里的blink程序,点击IDE的上传。就出现下面的错误。
我也试过其它网上的简要程序,同样的错误。谢谢这是哪里的问题。。。(系统XP没关系吧)

我复制错误信息,粘贴过来是下面这个:

Arduino:1.8.5 (Windows XP), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)"

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries d:\我的文档\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -ide-version=10805 -build-path C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023 -warnings=none -build-cache C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_cache_497228 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\esp8266\examples\Blink\Blink.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries d:\我的文档\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,UploadSpeed=115200,FlashSize=4M3M -ide-version=10805 -build-path C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023 -warnings=none -build-cache C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_cache_497228 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\mkspiffs\0.2.0 -prefs=runtime.tools.esptool.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\esptool\0.4.12 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2 -verbose C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\libraries\esp8266\examples\Blink\Blink.ino
Using board 'nodemcuv2' from platform in folder: C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2
Using core 'esp8266' from platform in folder: C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2
Detecting libraries used...
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU"  -DESP8266 "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11  -ffunction-sections -fdata-sections -w -x c++ -E -CC -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU"  -DESP8266 "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\sketch\Blink.ino.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\preproc\ctags_target_for_gcc_minus_e.cpp"
正在编译项目...
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU"  -DESP8266 "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\variants\nodemcu" "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\sketch\Blink.ino.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\sketch\Blink.ino.cpp.o"
Compiling libraries...
Compiling core...
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\cont.S.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\cont_util.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_eboot_command.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_flash_utils.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_i2s.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_noniso.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_phy.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_postmortem.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_si2c.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_timer.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring_analog.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring_digital.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring_pulse.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring_pwm.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\core_esp8266_wiring_shift.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\heap.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\libc_replacements.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\time.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\uart.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\libb64\cdecode.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\libb64\cencode.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\spiffs\spiffs_cache.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\spiffs\spiffs_check.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\spiffs\spiffs_gc.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\spiffs\spiffs_hydrogen.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\spiffs\spiffs_nucleus.c.o
使用已经编译的文件:C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\umm_malloc\umm_malloc.c.o
"C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/lwip/include" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DLWIP_OPEN_SRC   -DARDUINO=10805 -DARDUINO_ESP8266_NODEMCU -DARDUINO_ARCH_ESP8266 -DARDUINO_BOARD="ESP8266_NODEMCU"  -DESP8266 "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266" "-IC:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\variants\nodemcu" "C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266\Esp.cpp" -o "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\arduino_build_87023\core\Esp.cpp.o"
In file included from c:\documents and settings\administrator\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:62:0,

                 from C:\Documents and Settings\Administrator\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.0-rc2\cores\esp8266\Esp.cpp:24:

c:\documents and settings\administrator\local settings\application data\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:59:28: fatal error: bits/c++config.h: No such file or directory

#include <bits/c++config.h>

                            ^

compilation terminated.

exit status 1
为开发板 NodeMCU 1.0 (ESP-12E Module) 编译时出错。


pATAq  版主

发表于 2018-2-4 21:31:18

建议参考我的文章:
http://www.cnblogs.com/sjqlwy/p/smart_all_in_1.html
关于esp8266讲的比较多
回复

使用道具 举报

laai  初级技师
 楼主|

发表于 2018-2-11 14:16:04

自行修正下,
我更换到人WIN10系统的SURFACE PRO上,所有操作都一样,就没有出现编译错误了。
另外,在上传时,也发现我上面有错,速率应该是9600,这个在我的NODEMCU背面已有注明本板的上传速率。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail