No bin files generated when trying to compile AT Example in SDK V1.3.0

java
Posts: 8
Joined: Fri Aug 28, 2015 2:50 am

No bin files generated when trying to compile AT Example in SDK V1.3.0

Postby java » Fri Aug 28, 2015 3:05 am

Hello i am trying to compile the AT example in the latest SDK version, using the VM.
The compiler parameters are:

boot mode: none
generate bin: eagle.flash.bin+eagle.irom0text.bin
spi speed: 40 MHz
spi size: 512KB
spi ota map: 256KB + 256KB

When I execute "./gen_misc.sh" i get the following screen and no bin files are generated.


Code: Select all

esp8266@esp8266-VirtualBox:~$ ./mount.sh
[sudo] password for esp8266:
esp8266@esp8266-VirtualBox:~$ cd Share
esp8266@esp8266-VirtualBox:~/Share$ cd esp_iot_sdk_v1.3.0
esp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v1.3.0$ cd app
esp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v1.3.0/app$ ./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):
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):
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):
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):
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):
2
spi size: 1024KB
spi ota map:  512KB + 512KB


start...

make[1]: Entering directory `/mnt/Share/esp_iot_sdk_v1.3.0/app/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 -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle user_main.c
In file included from ../../include/osapi.h:9:0,
                 from user_main.c:12:
../include/user_config.h:8:6: error: #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
     #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
      ^
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 -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle at_upgrade.c
In file included from ../../include/user_interface.h:17:0,
                 from at_upgrade.c:12:
../include/user_config.h:8:6: error: #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
     #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
      ^
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -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  -o .output/eagle/debug/obj/at_upgrade.o -c at_upgrade.c
In file included from ../../include/user_interface.h:17:0,
                 from at_upgrade.c:12:
../include/user_config.h:8:6: error: #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
     #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
      ^
make[1]: *** [.output/eagle/debug/obj/at_upgrade.o] Error 1
make[1]: Leaving directory `/mnt/Share/esp_iot_sdk_v1.3.0/app/user'
make: *** [.subdirs] Error 2
esp8266@esp8266-VirtualBox:~/Share/esp_iot_sdk_v1.3.0/app$


Does anyone know what am i missing?
Thanks for your help,

Javier.

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

Re: No bin files generated when trying to compile AT Example in SDK V1.3.0

Postby ESP_Faye » Thu Sep 10, 2015 10:05 am

Hi,

Here is the error message

Code: Select all

../include/user_config.h:8:6: error: #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
     #error "upgrade is not supported when eagle.flash.bin+eagle.irom0text.bin!!!"
      ^


If you are going to compile eagle.flash.bin+eagle.irom0text.bin which can not upgrade, you need to disable the function "upgrade" in user_config.h

Code: Select all

//#define AT_CUSTOM_UPGRADE


Sorry for the inconvenience.

Who is online

Users browsing this forum: No registered users and 39 guests