Skip to content

Inclusion of SPI bus contention fix from release/v2.x branch #1510

Closed
@and3rson

Description

@and3rson

We have recently merged a backport of an important SPI bus fix into ESP32 Arduino core (version 2.x): espressif/arduino-esp32#10697

This fix targets v2.x of ESP32 Arduino core.
However, version 2.x is no longer supported/released, so the only way to use the latest 2.x version (as pointed by me-no-dev and Jason2866 here) is to target release/2.x branch as such:

platform_packages =
    framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32/archive/refs/heads/release/v2.x.zip

This is error-prone since it implicitly overrides the default framework version from platformio and requires manual edits to platformio.ini, and could generally be confusing for beginners. So it seems there are two solutions:

  1. Define platform_packages on a board level (specifically we're interested in Lilka v2 which is severely affected and would benefit a lot from the SPI bus fix).
    I'm not sure if this is generally possible though.
  2. Update espressif32 platform to target release/v2.x branch. This would be the preferred way to go, since it would solve SPI bus contention issues for everyone who's using PlatformIO with ESP32-S3/C3.

Unfortunately, due to v2.x not being maintained anymore, there won't be v2.0.19 release - the last one is v2.0.18 which does not include our SPI fix, so it's not possible to wait for the new release and update PlatformIO platform. So it seems that the best way is to target release/v2.x branch.

Please let me know what you think. Any thoughts are welcome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions