espressif / esp-box

The ESP-BOX is a new generation AIoT development platform released by Espressif Systems.
Apache License 2.0
709 stars 172 forks source link

esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x900000 for file: storage.bin (AEGHB-486) #121

Closed GYY-110 closed 5 months ago

GYY-110 commented 6 months ago

[3/3] cmd.exe /C "cd /D G:\project\ESP-IDF\code\esp-box\esp-box\examples\chatgpt_demo\b...storage.bin --page-size=256 --obj-name-len=32 --meta-len=4 --use-magic --use-magic-len"

usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--encrypt-files

[
...]] [--ignore-flash-encryption-efuse-setting] [--force] [--compress | --no-compress]

[
...] esptool write_flash: error: argument
: Detected overlap at address: 0x900000 for file: storage.bin * 终端进程“g:\project\ESP-IDF\TOOLS\python_env\idf5.1_py3.11_env\Scripts\python.exe 'g:\project\ESP-IDF\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM4', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '80m', '--flash_size', '16MB', '0x0', 'bootloader/bootloader.bin', '0x700000', 'chatgpt_demo.bin', '0x8000', 'partition_table/partition-table.bin', '0xd000', 'ota_data_initial.bin', '0xb00000', 'srmodels/srmodels.bin', '0x900000', 'storage.bin'”已终止,退出代码: 2。
espressif2022 commented 6 months ago

please refer to this format: esptool.py write_flash 0x0 xx.bin

bearpaddy commented 6 months ago

@espressif2022 What do you mean, I get this error when running idf.py flash

LHYhorion commented 6 months ago

@espressif2022 What do you mean, I get this error when running idf.py flash

Hello, the flashing method for the ChatGPT demo is different from other demos. For specific flashing steps, please refer to https://github.com/espressif/esp-box/blob/master/examples/chatgpt_demo/README.md.

Yes, I notice the flash partitions you write, you need ro write it as README:

Error:

0x0 bootloader/bootloader.bin 
0x700000 chatgpt_demo.bin 
0x8000 partition_table/partition-table.bin 
0xd000 ota_data_initial.bin 
0xb00000 srmodels/srmodels.bin 
0x900000 storage.bin

Right:

0x0 build/bootloader/bootloader.bin 
0x8000 build/partition_table/partition-table.bin 
0xd000 build/ota_data_initial.bin 
0x10000 build/chatgpt_demo.bin 
0x900000 build/storage.bin 
0xb00000 build/srmodels/srmodels.bin 
0x700000 factory_nvs/build/factory_nvs.bin
espressif2022 commented 5 months ago

I will turn off this issue, welcome to consult if you have new questions