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

Not able to flash anymore #437

Open
dachoeks3 opened this issue Jan 24, 2023 · 3 comments
Open

Not able to flash anymore #437

dachoeks3 opened this issue Jan 24, 2023 · 3 comments

Comments

@dachoeks3
Copy link

I have run this couple of years ago and everything worked fine. I have set it up now and it compiles correctly but when I try to flash I get an error about 8m argument. I have tried to change it in Makefile but then it doesn't compile. Any idea what I'm doing wrong? I have installed latest esptool.py which I suspect is the issue.

➜ esp-homekit-demo git:(master) ✗ make -C examples/sonoff_basic flash monitor
esptool.py -p /dev/tty.usbserial-1420 --baud 115200 write_flash -fs 8m -fm dout -ff 40m
0x0 /Users/dacho/Documents/esp/esp-open-rtos//bootloader/firmware_prebuilt/rboot.bin 0x1000 /Users/dacho/Documents/esp/esp-open-rtos//bootloader/firmware_prebuilt/blank_config.bin 0x2000 ./firmware/sonoff_basic.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 --flash_size/-fs: invalid choice: '8m' (choose from 'detect', 'keep', '256KB', '512KB', '1MB', '2MB', '2MB-c1', '4MB', '4MB-c1', '8MB', '16MB', '32MB', '64MB', '128MB')
make: *** [flash] Error 2
➜ esp-homekit-demo git:(master) ✗

@LouisLee985
Copy link

Change 8m to 8MB?

@dachoeks3
Copy link
Author

dachoeks3 commented Jan 26, 2023

It doesn't compile then. Gives similar error. I can still compile it with 8m then manually flash it. It's just a hassle since making any changes to the code then flashing takes extra time.

@dachoeks3
Copy link
Author

Issue is old esptool version in this project.

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