Skip to content

Support StickC-Plus2 #90448

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

letanphuc
Copy link

Support StickC-Plus2
https://docs.m5stack.com/en/core/M5StickC%20PLUS2
Anything works well for now.
Uploading image.png…

Build with board name is m5stickc_plus2

Copy link

Hello @letanphuc, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@VynDragon
Copy link
Collaborator

Hello, Thank you.

For supply pin, do not modify the display driver since this is specific to this board, instead, add a CMakelists.txt and relevant code in your board's folder.

@letanphuc letanphuc force-pushed the main branch 2 times, most recently from 355b71a to 3da3203 Compare May 25, 2025 04:02
@letanphuc
Copy link
Author

From my view point, the pin is belong to the display. If we do not use the display, I do not want to turn the pin on anyway.

Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@bricle
Copy link
Contributor

bricle commented May 25, 2025

Hello, thank you for your work!
Here are something you need to address, maybe you need to squash your commits into a single one, and force push.
Besides, commit needs a Signed-Off-By so CI will fail

@@ -411,6 +412,15 @@ static int st7789v_init(const struct device *dev)
}

k_sleep(K_TIMEOUT_ABS_MS(config->ready_time_ms));

if (config->supply_gpio.port) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This isn't the display's driver, it's the panel controller's driver, so pins should not be dealt with here.

full_name: M5StickC PLUS2
vendor: m5stack
socs:
- name: esp32
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't this be esp32_pico_d4?


/ {
model = "M5StickC Plus APPCPU";
compatible = "espressif,esp32";
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is the board's compatible

Suggested change
compatible = "espressif,esp32";
compatible = "m5stack,m5stickc_plus2";

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
Copy link
Collaborator

Choose a reason for hiding this comment

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

put your own copyright everywhere

supported:
- uart
testing:
ignore_tags:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why!?

Sysbuild
========

The sysbuild makes possible to build and flash all necessary images needed to
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
The sysbuild makes possible to build and flash all necessary images needed to
The sysbuild makes it possible to build and flash all necessary images needed to

The sysbuild makes possible to build and flash all necessary images needed to
bootstrap the board with the ESP32 SoC.

To build the sample application using sysbuild use the command:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
To build the sample application using sysbuild use the command:
To build the sample application using sysbuild, use the command:


.. note::

With ``--sysbuild`` option the bootloader will be re-build and re-flash
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
With ``--sysbuild`` option the bootloader will be re-build and re-flash
With ``--sysbuild`` option the bootloader will be re-built and re-flashed

Manual build
============

During the development cycle, it is intended to build & flash as quickly possible.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
During the development cycle, it is intended to build & flash as quickly possible.
During the development cycle, it is intended to build & flash as quickly as possible.


.. note::

Remember that bootloader (MCUboot) needs to be flash at least once.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Remember that bootloader (MCUboot) needs to be flash at least once.
Remember that bootloader (MCUboot) needs to be flashed at least once.

@kartben kartben self-requested a review May 26, 2025 02:08
@nordicjm
Copy link
Collaborator

Commits need squashing, merge commits need removing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants