微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > MCU和单片机设计讨论 > ESP8266官网例程编译失败

ESP8266官网例程编译失败

时间:10-02 整理:3721RD 点击:
我从乐鑫官网上下载的最新SDK资源(ESP8266 NONOS SDK V2.1.0 20170505),用的是Cygwin_Eclipse_IDE(好像是安信可的软件)编译
1.将SDK解压到无中文无空格的目录
2.在SDK中新建文件夹app
3.将SDK中driver_lib文件重命名为driver,并放到app中
4.将SDK中examples子目录中at文件夹中所有文件复制至app中,包括(include文件夹、user文件夹、gen_misc.bat、gen_misc.sh、Makefile)
5.在Cygwin_Eclipse_IDE导入工程,没有修改直接编译
-------------------------------------------------------
我所编译的文件在百度云上,请各位大神指点http://pan点baidu点com/s/1bTA1J4 密码:vwxm
------------------------------------------------------------------------------
09:35:19 **** Build of configuration Default for project Myproject ****
make all
make[1]: Entering directory '/cygdrive/f/Myproject/app'
make[2]: Entering directory '/cygdrive/f/Myproject/app/user'
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DAT_UPGRADE_SUPPORT -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include user_main.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DAT_UPGRADE_SUPPORT -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include at_upgrade.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DAT_UPGRADE_SUPPORT -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include -o .output/eagle/debug/obj/at_upgrade.o -c at_upgrade.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -DAT_UPGRADE_SUPPORT -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include -o .output/eagle/debug/obj/user_main.o -c user_main.c
xt-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/at_upgrade.o .output/eagle/debug/obj/user_main.o
xt-ar: creating .output/eagle/debug/lib/libuser.a
make[2]: Leaving directory '/cygdrive/f/Myproject/app/user'
xt-xcc -L../lib -nostdlib -T../ld/eagle.app.v6.ld -Wl,--no-check-sections -Wl,--gc-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lcrypto -lmain -ljson -lupgrade -lssl -lwps -lsmartconfig -lairkiss user/.output/eagle/debug/lib/libuser.a -lat -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: .output/eagle/debug/image/eagle.app.v6.out section `.irom0.text' will not fit in region `irom0_0_seg'
collect2: error: ld returned 1 exit status
../Makefile:380: recipe for target '.output/eagle/debug/image/eagle.app.v6.out' failed
make[1]: *** [.output/eagle/debug/image/eagle.app.v6.out] Error 1
make[1]: Leaving directory '/cygdrive/f/Myproject/app'
make: *** [.subdirs] Error 2
Makefile:325: recipe for target '.subdirs' failed

09:35:36 Build Finished (took 16s.594ms)

奖励3积分

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top