Open Nerivec opened 7 months ago
I barely scratched the surface on the codebase for esphome/platformio/espressif, but it seems the best way to implement this would be a new config for esp32
(to remove old style conf, same as was done with flash_size
).
With the appropriate changes to remove & prevent platformio_options
> board_build.boot
and take the new one into account.
And then the psram
component could lookup the value to build memory_type
accordingly (same as seems to be done throughout platformio/espressif codebase).
I don't know esphome's codebase enough (yet) to create a full PR on this, but I thought I'd give my 2 cents on a starting point...
I couldn't find a definitive list for memory_type
supported values (the config itself is barely mentioned...), but these seem to be in it:
- dio_qspi
- dio_opi
- qio_qspi
- qio_opi
- opi_qspi
- opi_opi
First one is "default" according to https://github.com/platformio/platform-espressif32/blob/master/builder/main.py#L47, although here they use build.flash_mode
to build it, contrary to link at the top, which would introduce dout
& qout
...
Bit of a mess... Will need someone with far more knowledge about the whole stack than me!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
ping
The problem
Unless I'm mistaken, the arduino framework is missing support for
memory_type
in the PSRAM component, which ends up in boot loops if theboard_build.arduino.memory_type
config is not provided on top of thepsram
component for octal boards. I would expect to see something similar to howCONF_MODE
is changing config foresp-idf
.https://github.com/esphome/esphome/blob/dev/esphome/components/psram/__init__.py#L40
The flag alone doesn't seem to be enough however, as I then had to move away from
version: recommended
too, which required additional fixes of its own (see link at the bottom)...Which version of ESPHome has the issue?
2023.12.1
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2023.12.3
What platform are you using?
ESP32
Board
esp32-s3-devkitc-1 esp32-s3-wroom-1-n16r8
Component causing the issue
psram
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information