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

fail to download with multiple files #60

Closed
nqd opened this issue Aug 31, 2015 · 5 comments
Closed

fail to download with multiple files #60

nqd opened this issue Aug 31, 2015 · 5 comments

Comments

@nqd
Copy link
Contributor

nqd commented Aug 31, 2015

Things go well with commit e96336f.

When I update to current code, esptool fail to flash multiple files.

With 2 files, esptool goes well

../../tools/esptool/esptool.py --port /dev/ttyUSB0 write_flash -fs 32m-c1 0x00000 ../../esp-sdk/bin/boot_v1.4\(b1\).bin 0x01000 .firmwares/4096_user1.bin
Connecting...
Erasing flash...
Writing at 0x00000800... (100 %)
Erasing flash...
Writing at 0x0003f800... (100 %)

Leaving...

, but with 4 files

../../tools/esptool/esptool.py --port /dev/ttyUSB0 write_flash -fs 32m-c1 0x00000 ../../esp-sdk/bin/boot_v1.4\(b1\).bin 0x01000 .firmwares/4096_user1.bin 0x3FC000 ../../esp-sdk/bin/esp_init_data_default.bin 0x3FE000 ../../esp-sdk/bin/blank.bin
Connecting...
Erasing flash...
Writing at 0x00000800... (100 %)
Erasing flash...
Writing at 0x0003f800... (100 %)
Erasing flash...
Writing at 0x003fc000... (100 %)
Erasing flash...
Traceback (most recent call last):
  File "../../tools/esptool/esptool.py", line 579, in <module>
    esp.flash_begin(blocks*esp.ESP_FLASH_BLOCK, address)
  File "../../tools/esptool/esptool.py", line 214, in flash_begin
    raise Exception('Failed to enter Flash download mode')
Exception: Failed to enter Flash download mode

Do you have any suggestion to overcome this?

Many thanks.

@projectgus
Copy link
Contributor

Hmm, it looks like the fix for the flash erase issue might have caused this regression. It's actually surprising flashing all four images worked with the old revision, most people have encountered the flash erase issue when flashing that much.

Can you please post the sizes (in bytes) of the four files you are flashing? That should make it easy to reproduce the exact problem, by creating dummy binary files.

@nqd
Copy link
Contributor Author

nqd commented Aug 31, 2015

Sure, this is the 4 files https://www.dropbox.com/sh/8nszizvwose778r/AAD-yMjdXGPnBTh9SblIlXBma?dl=0

Thanks.

@projectgus
Copy link
Contributor

I think this should fix the underlying bug, please let me know if it doesn't.

Turned out it wasn't multiple files, it was that flashing the last file near the end of the flash exposed a bug.

@nqd
Copy link
Contributor Author

nqd commented Sep 2, 2015

Great thanks. Will check next day when I touch the esp again.

@nqd
Copy link
Contributor Author

nqd commented Sep 3, 2015

Confirmed. Thanks again!

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

2 participants