Skip to content

PSRAM missing memory_type support with arduino framework #5264

@Nerivec

Description

@Nerivec

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 the board_build.arduino.memory_type config is not provided on top of the psram component for octal boards.
I would expect to see something similar to how CONF_MODE is changing config for esp-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

esphome:
  platformio_options:
    # missing in psram component for "arduino"
    board_build.arduino.memory_type: qio_opi

esp32:
  board: esp32-s3-devkitc-1
  variant: esp32s3
  flash_size: 16MB
  framework:
    type: arduino

psram:
  mode: octal
  speed: 80MHz

Anything in the logs that might be useful for us?

No response

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions