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
support for ESP32-S2 ESP32-S3 Flash 32MB..128MB (ESPTOOL-325) #675
Conversation
ESP32-S2 and ESP32-S3 supports up to 1 GB of external flash and RAM add support for - 32MB - 64MB - 128MB ( example NOR spiFLASH 1G-BIT W25Q01JVZEIQ ) - 256MB - 512MB - 1024MB change small typo in helper --flash-size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ESP32DE, thank you for the PR. It seems that a few things are missing from this patch, could you please check?
When running esptool.py in this branch like this:
esptool.py --chip esp32s3 elf2image --flash_mode dout --flash_freq 80m --flash_size 32MB -o bootloader.bin bootloader.elf
I get an error:
esptool elf2image: error: argument --flash_size/-fs: 32MB is not a known flash size. Known sizes: 512KB, 256KB, 1MB, 2MB, 4MB, 2MB-c1, 4MB-c1, 8MB, 16MB
One missing thing seems to be updating the FLASH_SIZES
dictionary in ESP32ROM
class.
Another thing, seems like DETECTED_FLASH_SIZES
goes up to 128MB but --flash_size
help text also includes 256MB and above. Should these two be kept consistent? Since you have tested this with 128MB flash chip, I'd recommend keeping the list of supported flash sizes up to 128MB, and not including larger sizes.
- updating the FLASH_SIZES dictionary in ESP32ROM class was missing ( 32MB, 64MB, 128MB ) - remove > 128MB in the helper since we have just in time only the possibles ( Market ) to test 128MB Version
- updating the FLASH_SIZES dictionary in ESP32ROM class was missing ( 32MB, 64MB, 128MB ) - remove > 128MB in the helper since we have just in time only the possibles ( Market ) to test 128MB Version
Hi @igrr sry - looks like i did forget this part in the online version...
Yes - no problem @igrr Info: If there is any to do more please let me know and i will try my best. thank you ps:
what is your thinking to expand this too?
let me know and i will expand/remove this in this request too. |
- updated Custom flash size parser class (8MB..128MB) to support backwards compatibility with megabit size arguments
- remove whitespace and multiple spaces
- remove whitespace and multiple spaces
Hi @ESP32DE, |
hi @radimkarnis thank you for your help. |
ESP32-S2 and ESP32-S3
supports up to 1 GB of external flash and RAM
add support for
( i removed the 256MB, 512MB, 1024MB in this pull request and changed title from 32MB..1024MB to 32MB..128MB
as soon we can test 256MB, 512MB and the 1024MB i update with a new Pull Request )
change small typo in helper --flash-size
I have tested this change with the following hardware & software combinations:
Winbond
NOR spiFLASH 1G-BIT W25Q01JVZEIQ 0x21 )
ESP32-S2-DevKitC-1
ESP32-S3-DevKitC-1
ESP-IDF v4.4-dev-3235-g3e370c4296-dirty