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

Flash / RAM size mixup in board definition #596

Closed
maxgerhardt opened this issue Aug 6, 2021 · 0 comments
Closed

Flash / RAM size mixup in board definition #596

maxgerhardt opened this issue Aug 6, 2021 · 0 comments

Comments

@maxgerhardt
Copy link
Contributor

maxgerhardt commented Aug 6, 2021

PlatformIO declares

"upload": {
"flash_size": "16MB",
"maximum_ram_size": 6553600,
"maximum_size": 16777216,

Aka, 6553600 of RAM and 16 MByte of FLASH

Yet Arduino-ESP32 declares

https://github.com/espressif/arduino-esp32/blob/5bb8177aa1feec665938be97607b526a4f0ec0bb/boards.txt#L4883-L4889

m5stack-fire.name=M5Stack-FIRE

m5stack-fire.upload.tool=esptool_py
m5stack-fire.upload.maximum_size=6553600
m5stack-fire.upload.maximum_data_size=4521984

aka 6553600 bytes of FLASH and 320kByte + 4MByte (PSRAM) = 4521984 RAM.

The Arduino IDE is correct, per https://docs.makerfactory.io/m5stack/core/fire/#parameter the board has an ESP32 with 4MByte PSRAM and a 16MByte flash chip. It does not have ~6.5 MBytes of RAM as PIO says.

There may be other boards affected by this mixup.

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

1 participant