Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GYY-110 opened this issue Dec 14, 2023 · 4 comments

Comments

@GYY-110
Copy link

GYY-110 commented Dec 14, 2023

[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"

  • 正在执行任务: 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

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。
@github-actions github-actions bot changed the title esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x900000 for file: storage.bin esptool write_flash: error: argument <address> <filename>: Detected overlap at address: 0x900000 for file: storage.bin (AEGHB-486) Dec 14, 2023
@espressif2022
Copy link
Collaborator

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

@bearpaddy
Copy link

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

@LHYhorion
Copy link

LHYhorion commented Dec 26, 2023

@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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants