IoT_Demo won't work

almaz1c
Posts: 13
Joined: Mon Aug 28, 2017 4:03 am

IoT_Demo won't work

Postby almaz1c » Mon Aug 28, 2017 4:19 am

Hello!
I am newbe with ESP8266.
I use following dev board:
http://www.addicore.com/D1-DevBoard-p/ad286.htm
based on ESP8266mod AI Thinker module
Basic examples compilied with Arduino IDE are works as expected.
Similar for esp_iot_sdk_v0.9.3_14_11_21.
But when I compile IoT_Demo example using recent SDK v2.1.0 I get my dev board infinitely blinking with AI Thinker's led.
Here are logs:

Code: Select all

al@pc:~/Desktop/sdk_201_esp8266/sdk/IoT_Demo$ esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../bin/eagle.flash.bin 0x40000 ../bin/eagle.irom0text.bin
esptool.py v2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 35776 bytes to 24757...
Wrote 35776 bytes (24757 compressed) at 0x00000000 in 2.2 seconds (effective 131.3 kbit/s)...
Hash of data verified.
Compressed 229692 bytes to 167697...
Wrote 229692 bytes (167697 compressed) at 0x00040000 in 14.7 seconds (effective 124.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
al@pc:~/Desktop/sdk_201_esp8266/sdk/IoT_Demo$ ./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):

boot mode: none

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

generate bin: eagle.flash.bin+eagle.irom0text.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)
    7=4096KB(2048KB+2048KB) not support ,just for compatible with nodeMCU board
    8=8192KB(1024KB+1024KB)
    9=16384KB(1024KB+1024KB)
enter (0/2/3/4/5/6/7/8/9, default 0):

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

start...

make[1]: Entering directory '/home/al/Desktop/sdk_201_esp8266/sdk/IoT_Demo/user'
DEPEND: xtensa-lx106-elf-gcc -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 -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include user_main.c
xtensa-lx106-elf-gcc -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   -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
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o
make[1]: Leaving directory '/home/al/Desktop/sdk_201_esp8266/sdk/IoT_Demo/user'
make[1]: Entering directory '/home/al/Desktop/sdk_201_esp8266/sdk/IoT_Demo/driver'
make[1]: Leaving directory '/home/al/Desktop/sdk_201_esp8266/sdk/IoT_Demo/driver'
xtensa-lx106-elf-gcc  -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 -lpwm -lsmartconfig user/.output/eagle/debug/lib/libuser.a driver/.output/eagle/debug/lib/libdriver.a -Wl,--end-group -o .output/eagle/debug/image/eagle.app.v6.out

!!!
No boot needed.
Generate eagle.flash.bin and eagle.irom0text.bin successully in folder bin.
eagle.flash.bin-------->0x00000
eagle.irom0text.bin---->0x10000
!!!
al@pc:~/Desktop/sdk_201_esp8266/sdk/IoT_Demo$ esptool.py --port /dev/ttyUSB0 write_flash 0x00000 ../bin/eagle.flash.bin 0x10000 ../bin/eagle.irom0text.bin
esptool.py v2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0040
Compressed 35776 bytes to 24757...
Wrote 35776 bytes (24757 compressed) at 0x00000000 in 2.2 seconds (effective 131.4 kbit/s)...
Hash of data verified.
Compressed 229692 bytes to 167697...
Wrote 229692 bytes (167697 compressed) at 0x00010000 in 14.8 seconds (effective 124.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
al@pc:~/Desktop/sdk_201_esp8266/sdk/IoT_Demo$

Seems it is compilied without warnings and errors and flashing operation is OK, but after I flash that to my dev board I get it in
strange mod: AI Thinker module's led is infinitely blinking.
I tried to compile different examples provided with SDK, I tried different settings during

Code: Select all

gen_misc.sh
procedure, I tried to flash my custom board, I tried to make full erase before flashin - all of that without luck!
What I missed?
I get it working with SDK v0.9.3 and thoose I am pretty sure that hardware is ok adn issue in SDK 2.1.0.
What I missed?
Explain me please.

Her Mary
Posts: 537
Joined: Mon Oct 27, 2014 11:09 am

Re: IoT_Demo won't work

Postby Her Mary » Wed Sep 06, 2017 10:22 am


Who is online

Users browsing this forum: No registered users and 63 guests