ESP12E user2 error magic!

nvl1109
Posts: 2
Joined: Tue Aug 18, 2015 3:08 pm

ESP12E user2 error magic!

Postby nvl1109 » Mon Sep 07, 2015 12:16 pm

Hi all,

I just got some ESP12Es (node mcu devkit v1) from China. And this board have following error when I build & flash user2. SDK is version 1.3. Please share your idea about this. Thank so much.

I have tried on may flash size options (0->6) and got the same result.

UART log for each reset:

Code: Select all

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

load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 4Mbit(256KB+256KB)
jump to run user1 @ 1000

error magic!
first boot failed, reboot to try backup bin


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

wdt reset
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 4Mbit(256KB+256KB)
jump to run user1 @ 1000

error magic!
backup boot failed.

user code done


My code for user_main.c

Code: Select all

#include "ets_sys.h"
#include "osapi.h"

#include "user_interface.h"

void user_rf_pre_init(void)
{
}

void user_init(void)
{
    os_printf("SDK version:%s\n", system_get_sdk_version());
}


The build log:

Code: Select all

$ ./gen_misc.sh
gen_misc.sh version 20150511

Please follow below steps(1-5) to generate specific bin(s):
STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none)
enter(0/1/2, default 2):
1
boot mode: new

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
2
generate bin: user2.bin

STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz)
enter (0/1/2/3, default 2):

spi speed: 40 MHz

STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT)
enter (0/1/2/3, default 0):

spi mode: QIO

STEP 5: choose spi size and map
    0= 512KB( 256KB+ 256KB)
    2=1024KB( 512KB+ 512KB)
    3=2048KB( 512KB+ 512KB)
    4=4096KB( 512KB+ 512KB)
    5=2048KB(1024KB+1024KB)
    6=4096KB(1024KB+1024KB)
enter (0/2/3/4/5/6, default 0):

spi size: 512KB
spi ota map:  256KB + 256KB


start...

make COMPILE=gcc BOOT=new APP=2 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=0
make[1]: Entering directory `d:/esp8266/esp_iot_sdk_v1.3.0/smart_config/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcal
ls -mtext-section-literals -ffunction-sections -fdata-sections -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I .
./include -I ../../include -I ../../include/eagle user_main.c
make[1]: Leaving directory `d:/esp8266/esp_iot_sdk_v1.3.0/smart_config/user'
make[1]: Entering directory `d:/esp8266/esp_iot_sdk_v1.3.0/smart_config/user'
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-s
ection-literals -ffunction-sections -fdata-sections  -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../includ
e -I ../../include -I ../../include/eagle  -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o
make[1]: Leaving directory `d:/esp8266/esp_iot_sdk_v1.3.0/smart_config/user'
xtensa-lx106-elf-gcc  -L../lib -nostdlib -T../ld/eagle.app.v6.new.512.app2.ld -Wl,--no-check-sections -u call_user_start
 -Wl,-static -Wl,--start-group -lc -lgcc -lhal -lphy -lpp -lnet80211 -llwip -lwpa -lmain -ljson -lssl -lupgrade -lsmartc
onfig user/.output/eagle/debug/lib/libuser.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out

!!!
-1452428288
1452428287
Support boot_v1.2 and +
mv: replace `../bin/upgrade/user2.512.new.0.bin', overriding mode 0666? y
Generate user2.512.new.0.bin successully in folder bin/upgrade.
boot.bin------------>0x00000
user2.512.new.0.bin--->0x41000
!!!


I have use ESP download tool v1.2 with following options:

Code: Select all

- 4Mbit flash size
- boot_v1.4(b1).bin     --- 0x0
- user2.512.new.0.bin --- 0x41000
- blank.bin                   --- 0x7E000

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: ESP12E user2 error magic!

Postby ESP_Faye » Thu Sep 10, 2015 2:11 pm

Hi,

Please choose 1 in Step 2 to generate user1.bin first..

Code: Select all

STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin)
enter (0/1/2, default 0):
2
generate bin: user2.bin


And download:

Code: Select all

- 4Mbit flash size
- boot_v1.4(b1).bin     --- 0x0
- user1.512.new.0.bin --- 0x01000
- blank.bin                   --- 0x7E000


Documentation "2A-ESP8266__IOT_SDK_User_Manual.pdf"

Who is online

Users browsing this forum: No registered users and 84 guests