收藏官网首页
查看: 7363|回复: 8

[求助] 在机智云官方生成的ESP8266代码,烧写进8266有问题

2

主题

16

帖子

395

积分

中级会员

Rank: 3Rank: 3

积分
395
发表于 2016-12-1 14:22:21 | 显示全部楼层 |阅读模式
教您5分钟接入机智云,实现傻瓜式开发
本帖最后由 龙国辉 于 2016-12-1 14:40 编辑

在官方的产品下生成的代码,按照readme里面的说明编译并烧写,模块无限重启,怎么解决?求大神帮忙
!!
该模块烧写带MCU的固件是成功并可用的。也是选择32Mbit-C1的Flash
Eclipse编译和cygwin 命令编译都试过,都不行。



编译Console信息:
14:16:00 ** Build of configuration Default for project test **
make all
make[1]: Entering directory '/cygdrive/d/giz/app'
make[2]: Entering directory '/cygdrive/d/giz/app/user'
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../..//app/GAgent/inc -I ../..//app/Gizwits user_main.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits user_json.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/user_json.o -c user_json.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -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/user_json.o .output/eagle/debug/obj/user_main.o
xt-ar: creating .output/eagle/debug/lib/libuser.a
make[2]: Leaving directory '/cygdrive/d/giz/app/user'
make[2]: Entering directory '/cygdrive/d/giz/app/driver'
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits hw_timer.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits uart.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits gpio16.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits spi.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits key.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits i2c_master.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits spi_overlap.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits hal_key.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/hal_key.o -c hal_key.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/spi_overlap.o -c spi_overlap.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/i2c_master.o -c i2c_master.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/key.o -c key.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/spi.o -c spi.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/gpio16.o -c gpio16.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/uart.o -c uart.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/hw_timer.o -c hw_timer.c
xt-ar ru .output/eagle/debug/lib/libdriver.a .output/eagle/debug/obj/hal_key.o .output/eagle/debug/obj/spi_overlap.o .output/eagle/debug/obj/i2c_master.o .output/eagle/debug/obj/key.o .output/eagle/debug/obj/spi.o .output/eagle/debug/obj/gpio16.o .output/eagle/debug/obj/uart.o .output/eagle/debug/obj/hw_timer.o
xt-ar: creating .output/eagle/debug/lib/libdriver.a
make[2]: Leaving directory '/cygdrive/d/giz/app/driver'
make[2]: Entering directory '/cygdrive/d/giz/app/Gizwits'
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits gizwits_product.c
DEPEND: xt-xcc -M -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits gizwits_protocol.c
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/gizwits_protocol.o -c gizwits_protocol.c
gizwits_protocol.c: In function 'gizwitsHandle':
gizwits_protocol.c:855:9: warning: 'return' with a value, in function returning void [enabled by default]
         return (-1);
         ^
xt-xcc -Os -g -Wpointer-arith -Wundef -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections   -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include  -I ../../include -I ../../include/eagle -I ../..//app/gagent/inc -I ../..//app/Gizwits  -o .output/eagle/debug/obj/gizwits_product.o -c gizwits_product.c
xt-ar ru .output/eagle/debug/lib/libGizwits.a .output/eagle/debug/obj/gizwits_protocol.o .output/eagle/debug/obj/gizwits_product.o
xt-ar: creating .output/eagle/debug/lib/libGizwits.a
make[2]: Leaving directory '/cygdrive/d/giz/app/Gizwits'
xt-xcc  -L../lib -nostdlib -T../ld/eagle.app.v6.new.2048.ld -Wl,--no-check-sections -u call_user_start -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lmain -ljson -lupgrade -lssl -lpwm -lcrypto -lsmartconfig -lairkiss -lgagent user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a Gizwits/.output/eagle/debug/lib/libGizwits.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out
mkdir -p ../bin/upgrade

!!!
1091120266
1091120267
Support boot_v1.4 and +
Generate user1.4096.new.6.bin successully in folder bin/upgrade.
boot.bin------------>0x00000
user1.4096.new.6.bin--->0x01000
!!!
make[1]: Leaving directory '/cygdrive/d/giz/app'

14:16:33 Build Finished (took 33s.203ms)



烧写设置
QQ图片20161201141236.png




串口调试信息:

QQ图片20161201142054.png




串口信息:
ets Jan  8 2013,rst cause:2, boot mode3,7)

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
jump to run user1 @ 1000

sd幟sl尀銓bl宐r|?cld噹焞b祗o罾o'?宭鄚膌?$寧l鞆剟?脛l`€'?専銊c ?莃 専銊cl刢?l{l?


ets Jan  8 2013,rst cause:2, boot mode3,7)

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
jump to run user1 @ 1000

{l弬sl専銊cl刢s<?# ld 帍遜c禧g飥gn?刲?宒?l剰l鋰哪?偰l`€o?劅隳c ?廲 劅隳c d腸?d;l?


ets Jan  8 2013,rst cause:2, boot mode3,7)

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
jump to run user1 @ 1000

don't use rtc mem data
rd莾;$臒銓# $?{|?c$l嚽焞#潴n鐎og? ?鄚刲?d屒d鞄寣?儎$`€g宑?l{$


ets Jan  8 2013,rst cause:2, boot mode3,7)

load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
jump to run user1 @ 1000

don't use rtc mem data
{l弬{l専鈩c l刢s|?b l$ 帍遜c潲g飥gn?刲鄚宒 ?l剰l鋰屇?倢l`€o宑?drl


65

主题

123

帖子

787

积分

高级会员

Rank: 4

积分
787
发表于 2016-12-2 14:05:56 | 显示全部楼层
能否提供下bin文件,我这边测试下

2

主题

16

帖子

395

积分

中级会员

Rank: 3Rank: 3

积分
395
 楼主| 发表于 2016-12-5 18:38:09 | 显示全部楼层
Terry 发表于 2016-12-2 14:05
能否提供下bin文件,我这边测试下

好的。可是上传附件的时候提示

user1.4096.new.6.bin禁止上传该类型的文件.


怎么办?

2

主题

16

帖子

395

积分

中级会员

Rank: 3Rank: 3

积分
395
 楼主| 发表于 2016-12-5 18:41:11 | 显示全部楼层
Terry 发表于 2016-12-2 14:05
能否提供下bin文件,我这边测试下

我私信给您了。是一个百度云连接,麻烦您了

2

主题

16

帖子

395

积分

中级会员

Rank: 3Rank: 3

积分
395
 楼主| 发表于 2016-12-6 10:55:44 | 显示全部楼层
注册成为机智云开发者,手机加虚拟设备快速开发
Terry 发表于 2016-12-2 14:05
能否提供下bin文件,我这边测试下

我参照了
GoKit3(S) 二次开发--开发环境搭
里面的
1) 使用乐鑫官方的ESP8266开发环境 (推荐方式)
去编译,问题依然没有解决。求帮忙!~

65

主题

123

帖子

787

积分

高级会员

Rank: 4

积分
787
发表于 2016-12-6 16:42:31 | 显示全部楼层
确认一个步骤,你是否用 “编译脚本:./gen_misc.sh”编译的

65

主题

123

帖子

787

积分

高级会员

Rank: 4

积分
787
发表于 2016-12-6 16:54:58 | 显示全部楼层
你提供的bin文件我这边烧写试过了,上电后一直重启,可以暂且排除你硬件的问题。咱们再从软件层面找原因,一种可能是你编译环境配置不对,这个我可以给你一个我这边可以用的Bin文件,你烧写下测试验证。另外一种可能是,自动生成的代码你修改过,错误的操作了内存空间导致。

65

主题

123

帖子

787

积分

高级会员

Rank: 4

积分
787
发表于 2016-12-6 17:10:09 | 显示全部楼层
给你私信了一个网盘链接,是微信宠物屋的固件bin文件,我这边测试过的,你烧写验证下

0

主题

6

帖子

26

积分

新手上路

Rank: 1

积分
26
发表于 2017-6-22 13:48:24 | 显示全部楼层
我也遇到这个问题,最后怎么解决了,麻烦分享一下
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表