example dueros test error

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

example dueros test error

Postby bigiot » Wed Jul 11, 2018 3:41 am

When I try "dueros" example on ESP32-LyraT V4.3, get the following error message.
===========================================================================================

Code: Select all

--- idf_monitor on COM14 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5784
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:14032
entry 0x40078ff0
I (30) boot: ESP-IDF v3.0.1 2nd stage bootloader
I (30) boot: compile time 09:57:53
I (32) boot: Enabling RNG early entropy source...
I (34) qio_mode: Enabling QIO for flash chip GD
I (39) boot: SPI Speed      : 80MHz
I (44) boot: SPI Mode       : QIO
I (48) boot: SPI Flash Size : 8MB
I (52) boot: Partition Table:
I (55) boot: ## Label            Usage          Type ST Offset   Length
I (62) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (70) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (77) boot:  2 factory          factory app      00 00 00010000 00100000
I (85) boot: End of partition table
I (89) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x4385c (276572) map
I (171) esp_image: segment 1: paddr=0x00053884 vaddr=0x3ffb0000 size=0x03838 ( 14392) load
I (175) esp_image: segment 2: paddr=0x000570c4 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at C:/msys32/home/esp/esp-adf/esp-idf/components/freertos/xtensa_vectors
.S:1685

I (178) esp_image: segment 3: paddr=0x000574cc vaddr=0x40080400 size=0x08b44 ( 35652) load
I (198) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0xfa4ac (1025196) map
0x400d0018: _flash_cache_start at ??:?

I (469) esp_image: segment 5: paddr=0x0015a4cc vaddr=0x40088f44 size=0x0896c ( 35180) load
0x40088f44: xTaskIncrementTick at C:/msys32/home/esp/esp-adf/esp-idf/components/freertos/tasks.c:4494
 (discriminator 2)

I (480) esp_image: segment 6: paddr=0x00162e40 vaddr=0x400c0000 size=0x00000 (     0) load
E (480) esp_image: Image length 1388144 doesn't fit in partition length 1048576
E (486) boot: Factory app partition is not bootable
E (491) boot: No bootable app partitions in the partition table
user code done
===========================================================================================
How can I address this issue?

thank you.

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: example dueros test error

Postby ESP_Sprite » Wed Jul 11, 2018 3:54 am

How did you flash the image to the LyraT board?

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

Re: example dueros test error

Postby bigiot » Wed Jul 11, 2018 4:01 am

make flash monitor

Code: Select all

$ make flash monitor
GENCONFIG
CC build/bootloader/bootloader_support/src/bootloader_random.o
CC build/bootloader/bootloader_support/src/flash_encrypt.o
CC build/bootloader/bootloader_support/src/bootloader_sha.o
CC build/bootloader/bootloader_support/src/esp_image_format.o
CC build/bootloader/bootloader_support/src/flash_partitions.o
CC build/bootloader/bootloader_support/src/secure_boot_signatures.o
CC build/bootloader/bootloader_support/src/bootloader_clock.o
CC build/bootloader/bootloader_support/src/secure_boot.o
................
................
................
CC build/wpa_supplicant/src/fast_crypto/fast_crypto_internal.o
CC build/wpa_supplicant/src/fast_crypto/fast_aes-cbc.o
CC build/wpa_supplicant/src/fast_crypto/fast_sha256-internal.o
CC build/wpa_supplicant/src/fast_crypto/fast_aes-wrap.o
AR build/wpa_supplicant/libwpa_supplicant.a
CC build/xtensa-debug-module/trax.o
AR build/xtensa-debug-module/libxtensa-debug-module.a
LD build/esp_dueros.elf
esptool.py v2.1
Flashing binaries to serial port COM14 (app at offset 0x10000)...
esptool.py v2.1
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 8MB
Flash params set to 0x023f
Compressed 19920 bytes to 12186...
Wrote 19920 bytes (12186 compressed) at 0x00001000 in 0.2 seconds (effective 1057.8 kbit/s)...
Hash of data verified.
Compressed 1388144 bytes to 850020...
Wrote 1388144 bytes (850020 compressed) at 0x00010000 in 13.5 seconds (effective 821.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 82...
Wrote 3072 bytes (82 compressed) at 0x00008000 in 0.0 seconds (effective 2448.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...
MONITOR
--- idf_monitor on COM14 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3f (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:5784
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:14032
entry 0x40078ff0
I (30) boot: ESP-IDF v3.0.1 2nd stage bootloader
I (30) boot: compile time 11:45:35
I (32) boot: Enabling RNG early entropy source...
I (34) qio_mode: Enabling QIO for flash chip GD
I (39) boot: SPI Speed      : 80MHz
I (44) boot: SPI Mode       : QIO
I (48) boot: SPI Flash Size : 8MB
I (52) boot: Partition Table:
I (55) boot: ## Label            Usage          Type ST Offset   Length
I (62) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (70) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (77) boot:  2 factory          factory app      00 00 00010000 00100000
I (85) boot: End of partition table
I (89) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x4385c (276572) map
I (171) esp_image: segment 1: paddr=0x00053884 vaddr=0x3ffb0000 size=0x03838 ( 14392) load
I (175) esp_image: segment 2: paddr=0x000570c4 vaddr=0x40080000 size=0x00400 (  1024) load
0x40080000: _WindowOverflow4 at C:/msys32/home/esp/esp-adf/esp-idf/components/freertos/xtensa_vectors
.S:1685

I (178) esp_image: segment 3: paddr=0x000574cc vaddr=0x40080400 size=0x08b44 ( 35652) load
I (198) esp_image: segment 4: paddr=0x00060018 vaddr=0x400d0018 size=0xfa4ac (1025196) map
0x400d0018: _flash_cache_start at ??:?

I (469) esp_image: segment 5: paddr=0x0015a4cc vaddr=0x40088f44 size=0x0896c ( 35180) load
0x40088f44: xTaskIncrementTick at C:/msys32/home/esp/esp-adf/esp-idf/components/freertos/tasks.c:4494
 (discriminator 2)

I (480) esp_image: segment 6: paddr=0x00162e40 vaddr=0x400c0000 size=0x00000 (     0) load
E (480) esp_image: Image length 1388144 doesn't fit in partition length 1048576
E (486) boot: Factory app partition is not bootable
E (491) boot: No bootable app partitions in the partition table
user code done

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

Re: example dueros test error

Postby bigiot » Wed Jul 11, 2018 4:18 am

ESP_Sprite wrote:How did you flash the image to the LyraT board?
use make flash monitor

User avatar
bigiot
Posts: 7
Joined: Thu May 17, 2018 2:41 pm
Location: Beijing
Contact:

Re: example dueros test error

Postby bigiot » Wed Jul 11, 2018 5:52 am

Solved use Custom partition table CSV as below

Code: Select all

# Espressif ESP32 Partition Table
# Name,   Type, SubType, Offset,  Size
nvs,      data, nvs,     0x9000,  0x6000
phy_init, data, phy,     0xf000,  0x1000
factory,  app,  factory, 0x10000, 6M
but, Is 6M appropriate or not?

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: example dueros test error

Postby ESP_Sprite » Wed Jul 11, 2018 7:00 am

A bigger factory partition won't harm anything, as long as everything still fits into the physical flash that's on the board. If you want to make it a bit smaller because e.g. you need to look athe build/[yout_project_name].bin file; that needs to be able to fit into this partition.

teardrop
Posts: 3
Joined: Thu Aug 23, 2018 2:26 am

Re: example dueros test error

Postby teardrop » Thu Aug 23, 2018 2:26 pm

我也遇到了同样的问题,请问你是怎么解决的。请教下。

Who is online

Users browsing this forum: No registered users and 20 guests