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

espressif: Enable the _eve module #9243

Merged
merged 3 commits into from
May 29, 2024
Merged

espressif: Enable the _eve module #9243

merged 3 commits into from
May 29, 2024

Conversation

chungsoftvn-tuannguyen
Copy link

Enable the _eve module for espressif mcu.

@chungsoftvn-tuannguyen chungsoftvn-tuannguyen marked this pull request as ready for review May 14, 2024 04:54
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do this in general, do it in ports/espressif/mpconfigport.mk. Right now you've enabled it on some boards, but many are omitted. But it might not fit on some boards.

@dhalbert
Copy link
Collaborator

We have enabled this on certain boards by request, but it's not enabled by default in general.

@chungsoftvn-tuannguyen
Copy link
Author

The switch must be in the boards/[board_name]/mpconfigport.mk file because:

  1. Some boards are already equipped with a custom display (such as adafruit_feather_esp32s2_tft) without EVE chip, so user may not need _eve module there (Because _eve module only works with an EVE chip).
  2. Some boards fail to compile when the _eve module is enabled (Build CI jobs) due to an error: Too little flash (Such as adafruit_feather_esp32c6_4mbflash_nopsram).

@dhalbert
Copy link
Collaborator

I understand. How did you choose which boards to add _eve_ to?

@chungsoftvn-tuannguyen
Copy link
Author

I have selected all the boards from vendors: Adafruit, Arduino, Espressif, and AI-Thinker because these are development boards, allowing users to try them with an EVE module.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the discussion. I've noted one board that is designed for driving other displays and shouldn't be on this list.

@tannewt how do you feel about this addition?

Comment on lines 17 to 18

CIRCUITPY__EVE = 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This board is already for driving a particular kind of display, so let's not add _eve to this.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this line from espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.mk.
The configuration is refactored to espressif/mpconfigport.mk at commit 8d57867

@dhalbert dhalbert requested a review from tannewt May 14, 2024 15:14
@tannewt
Copy link
Member

tannewt commented May 14, 2024

@tannewt how do you feel about this addition?

I'm happy to see eve enabled on espressif.

I agree with you that the enabling should be refactored into mpconfigport. The other thing to consider is whether it is on by default for future boards.

  1. Some boards are already equipped with a custom display (such as adafruit_feather_esp32s2_tft) without EVE chip, so user may not need _eve module there (Because _eve module only works with an EVE chip).

Disable EVE on these boards instead. There is likely other display functionality disabled too.

  1. Some boards fail to compile when the _eve module is enabled (Build CI jobs) due to an error: Too little flash (Such as adafruit_feather_esp32c6_4mbflash_nopsram).

Do something similar to:

# No room for _bleio on boards with 4MB flash
ifeq ($(CIRCUITPY_ESP_FLASH_SIZE),4MB)
CIRCUITPY_BLEIO ?= 0
else
CIRCUITPY_BLEIO ?= 1
endif

That way you can set a reasoned default for future boards.

@dhalbert dhalbert mentioned this pull request May 20, 2024
-  Refactored build configurations into mpconfigport

Signed-off-by: Tuan Nguyen <[email protected]>
@chungsoftvn-tuannguyen
Copy link
Author

I have enabled the _eve module by default for all ESP boards with a flash size greater than 2MB as of commit 8d57867. For boards that already have a display, I have still enabled the _eve module for future use.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you!

@tannewt tannewt merged commit b799ee8 into adafruit:main May 29, 2024
197 checks passed
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

Successfully merging this pull request may close these issues.

4 participants