Open DAVe3283 opened 7 months ago
Same for ESP32-H2
Thanks for this. I managed to fix a SHA checksum error I would get during linking with this option
sdkconfig_options:
CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y
I have created https://github.com/platformio/platform-espressif32/pull/1396 which should fix RAM size for esp32-c6-devkitm-1.
Similar issue with esp32-c3-devkitm-1
Well. not exactly. The templates for esp32-c3-devkitc-02 and esp32-c3-devkitm-1 both specify 320k RAM whereas the ESP32-C3 has 400k RAM. So these templates are wrong as well.
The problem
tl;dr Platformio 6.5.0 added a warning if there is a flash size mismatch with IDF config and ESPHome is not setting IDF flash size, only the board flash size.
Background: I am using ESP32-C6 which is not supported by the recommended Platformio version or ESP-IDF version, and have to run the latest to get it to work. There is no board file for my hardware, so I have to add some custom options:
Setting
flash_size: 4MB
doesn't appear to set the appropriateCONFIG_ESPTOOLPY_FLASHSIZE_xMB=y
variable. In the build directory,sdkconfig.esp32c6
appears to have been configured for 2MB (no idea where that came from, the board file would be 8MB, and I specified 4MB):This causes the compile to start off with the new warning:
You can work around the problem by manually specifying the appropriate CONFIG_ESPTOOLPY_FLASHSIZE_xMB value:
This fixes
sdkconfig.esp32c6
and silences the error:I imagine that in addition to basing the partitions on the user-selected flash_size, ESPHome needs to set the appropriate CONFIG_ESPTOOLPY_FLASHSIZE_xMB=y flag.
Which version of ESPHome has the issue?
2023.12.7
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP32-IDF
Board
Olimex ESP32-C6-EVB
Component causing the issue
esp32
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response