-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
boards: esp32: Add support for M5Stack AtomS3 #64434
Conversation
9f1f09e
to
1eccaec
Compare
The first two commits are part of PR #64451 so you may ignore them. |
@kartben awesome! |
1eccaec
to
1ae8367
Compare
Rebased as the 2 commits mentioned earlier are not needed anymore now that 1fac5ed fixed the issue with Xtensa CI. |
@sylvioalves should I exclude this board from tests/lib/heap testcase, like other (but not all??) esp32-s2 and s3? I don't think the test failed in earlier runs though, but not 100% sure. |
@sylvioalves @marekmatej what should I be doing with the failing heap test? should I just add this board as a
|
CONFIG_UART_CONSOLE=y | ||
|
||
# for debugging | ||
CONFIG_SHELL=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest removing this as default config. This will allow test/lib/heap
to pass. User can manually enable this if necessary. Sounds good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing! Definitely the right thing to do. Pretty sure I copy pasted from another esp32 board fwiw, including the "for debugging" comment.
|
||
CONFIG_MAIN_STACK_SIZE=2048 | ||
|
||
CONFIG_ESP_HEAP_MEM_POOL_REGION_1_SIZE=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed nor available for ESP32S3. Only for ESP32 that has dual ram bank. So you can remove it from here.
If you remove the |
1ae8367
to
72e993a
Compare
Thanks for your help! All green now! |
@marekmatej @LucasTambor PTAL |
This introduces support for the ESP32S3 based M5Stack AtomS3. Signed-off-by: Benjamin Cabé <[email protected]>
72e993a
to
c38f3db
Compare
s/espressif/extensa/ for the couple M5Stack boards in-tree that had the wrong vendor set. Signed-off-by: Benjamin Cabé <[email protected]>
c38f3db
to
2579c7c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some nitpicks, but looks good
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*") | ||
set(OPENOCD OPENOCD-NOTFOUND) | ||
endif() | ||
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since debugging is not supported, maybe consider reducing this file to single line:
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
pinmux = <SPIM2_MOSI_GPIO21>; | ||
output-low; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove blank line
This introduces support for the ESP32S3 based M5Stack AtomS3.
Tested all of the following:
samples/modules/lvgl/accelerometer_chart
, which works out-of-the-box (see below!)samples/basic/button
andsamples/subsys/display/lvgl
sample)samples/bluetooth/peripheral_hr
)samples/net/wifi
, wifi scan works)samples/sensor/sensor_shell
and an I2C device attachedDoc page: https://builds.zephyrproject.io/zephyr/pr/64434/docs/boards/xtensa/m5stack_atoms3/doc/index.html
Pxl.20231026.101330936.webm