Skip to content

Optimise ESP32_S2 targets #3053

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

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

AdrianSoundy
Copy link
Member

@AdrianSoundy AdrianSoundy commented Dec 18, 2024

Description

Optimize the ESP32_S2 targets.

Instead of having specific targets for Feather_S2 and another for Espressif Kaluga_1 this change generalizes S2 firmware for the 2 main types of VS connection

ESP32_S2_USB ( formally Feather_S2)
ESP32_S2_UART( Formally Kaluga_1 )

The Kaluga firmware also had a specifc screen type include.
Both new firmware targets now have the generic graphic drivers added which will also work for Kaluga board.

As the S2 is no longer a current product these have been moved to the nightly builds.

Motivation and Context

How Has This Been Tested?

Built both firmware locally.
Tested ESP32_S2_UART on kaluga board.

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue with code or algorithm)
  • New feature (non-breaking change which adds functionality to code)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Config and build (change in the configuration and build system, has no impact on code or features)
  • Dev Containers (changes related with Dev Containers, has no impact on code or features)
  • Dependencies/declarations (update dependencies or assembly declarations and changes associated, has no impact on code or features)
  • Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist

  • My code follows the code style of this project (only if there are changes in source code).
  • My changes require an update to the documentation (there are changes that require the docs website to be updated).
  • I have updated the documentation accordingly (the changes require an update on the docs in this repo).
  • I have read the CONTRIBUTING document.
  • I have tested everything locally and all new and existing tests passed (only if there are changes in source code).

Summary by CodeRabbit

  • New Features

    • Added support for new ESP32 boards: ESP32_S2_USB and ESP32_S2_UART.
    • Updated documentation to reflect the latest firmware versions and capabilities for supported boards.
  • Bug Fixes

    • Removed outdated entries for FEATHER_S2 and KALUGA_1 from documentation.
  • Chores

    • Enhanced build configurations for the ESP32 platform in the Azure Pipelines.
    • Refined job conditions for build triggers and handling of commit messages.

Copy link

coderabbitai bot commented Dec 18, 2024

Walkthrough

This pull request introduces updates to the documentation and build configurations for the .NET nanoFramework ESP32-S2 series boards. The changes involve renaming and adding new board configurations for ESP32-S2 USB and UART-based boards, removing previous entries for FEATHER_S2 and KALUGA_1, and updating the corresponding README files in English and Chinese. The modifications extend to Azure Pipeline configurations and CMake presets to support the new board configurations.

Changes

File Change Summary
README.md, README.zh-cn.md Removed entries for FEATHER_S2 and KALUGA_1. Added new entries for ESP32_S2_USB and ESP32_S2_UART with Cloudsmith version badges.
azure-pipelines-nightly.yml Added new target configurations for ESP32_S2_UART and ESP32_S2_USB.
azure-pipelines.yml Removed FEATHER_S2 target configuration.
targets/ESP32/CMakePresets.json Renamed presets from FEATHER_S2 to ESP32_S2_USB and KALUGA_1 to ESP32_S2_UART. Added graphics and USB-related cache variables.

Assessment against linked issues

Objective Addressed Explanation
Create images for ESP32-S2 series without internal USB CDC [#890] The changes do not address the need for images that fit the UART pin pattern for boards without internal USB CDC.

Possibly related PRs

Suggested labels

Type: documentation, Area: Config-and-Build, Platform: ESP32


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@AdrianSoundy AdrianSoundy changed the title S2 updates Optimise ESP32_S2 targets Dec 18, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
azure-pipelines-nightly.yml (1)

384-400: LGTM! Build pipeline structure maintained.

The new ESP32_S2 configurations are properly integrated into the existing build matrix without disrupting the pipeline structure or build conditions.

Consider adding a comment in the matrix strategy section to document the ESP32_S2 target consolidation strategy for future maintainers.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 18ef5a4 and 5cc7585.

📒 Files selected for processing (5)
  • README.md (2 hunks)
  • README.zh-cn.md (2 hunks)
  • azure-pipelines-nightly.yml (1 hunks)
  • azure-pipelines.yml (0 hunks)
  • targets/ESP32/CMakePresets.json (4 hunks)
💤 Files with no reviewable changes (1)
  • azure-pipelines.yml
🚧 Files skipped from review as they are similar to previous changes (3)
  • README.md
  • targets/ESP32/CMakePresets.json
  • README.zh-cn.md
🔇 Additional comments (1)
azure-pipelines-nightly.yml (1)

384-400: LGTM! Configuration aligns with target consolidation strategy.

The new ESP32_S2 target configurations properly implement the consolidation strategy, replacing board-specific targets with generic USB and UART variants.

Let's verify the removal of old configurations and consistency of the new ones:

✅ Verification successful

Configuration changes for ESP32_S2 targets are properly implemented

The new ESP32_S2_UART and ESP32_S2_USB configurations are correctly defined with consistent properties and proper target specifications. The old board-specific references (FEATHER_S2, KALUGA_1) have been successfully removed from the pipeline configuration, with only a documentation reference remaining in README.md to maintain backward compatibility information.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for any remaining references to old board names
rg -i "FEATHER_S2|KALUGA_1" 

# Verify ESP32_S2 related CMake presets
fd -e yaml -e cmake "CMakePresets" -x rg -l "ESP32_S2"

Length of output: 461


Script:

#!/bin/bash
# Let's check for any references to the old board names in pipeline configurations
fd -e yml -e yaml pipeline -x rg -l "FEATHER_S2|KALUGA_1" {}

# Check CMakePresets.json for the new target configurations
fd CMakePresets.json -x cat {}

# Verify if there are any other pipeline files that might need similar updates
fd -e yml -e yaml pipeline -x rg -l "ESP32_S2" {}

Length of output: 66266


Script:

#!/bin/bash
# Let's check the azure-pipelines-nightly.yml file specifically for ESP32_S2 configurations
rg -A 5 -B 5 "ESP32_S2" azure-pipelines-nightly.yml

# Check for any other pipeline files that might contain old board configurations
fd -e yml -e yaml pipeline -x rg -l "KALUGA|FEATHER" {}

Length of output: 883

@AdrianSoundy AdrianSoundy removed the request for review from josesimoes December 19, 2024 10:50
@AdrianSoundy
Copy link
Member Author

Simple enough changes for S2 targets as discussed in issue. Will just merge

@AdrianSoundy AdrianSoundy merged commit b07b245 into nanoframework:main Dec 19, 2024
17 checks passed
@AdrianSoundy AdrianSoundy deleted the Optimise_S2_targets branch December 19, 2024 10:51
@@ -803,7 +803,7 @@
}
},
{
"name": "FEATHER_S2",
Copy link
Member

Choose a reason for hiding this comment

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

This was brought in partnership with the Feather creator and they are advertising it on their docs, therefore I would like to keep distributing a firmware with this name. I understand that this will be the same, still...

@josesimoes josesimoes added Platform: ESP32 Everything related specifically with ESP32 platform Series: ESP32S2 Everything related specifically with ESP32S2 series targets and removed Type: enhancement labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Config-and-Build Platform: ESP32 Everything related specifically with ESP32 platform Series: ESP32S2 Everything related specifically with ESP32S2 series targets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need images for ESP32-S2 series without the internal USB CDC
3 participants