Skip to content

Conversation

@espzav
Copy link
Collaborator

@espzav espzav commented Nov 14, 2025

Checklist for new Board Support package or Component

Change description


Note

Introduces the m5stack_tab5 BSP (ESP32‑P4) with MIPI-DSI display, GT911 touch, ES8388/ES7210 audio, SD, USB host, and MIPI-CSI camera, plus CI/docs/examples integration and camera example improvements.

  • New BSP: bsp/m5stack_tab5 (ESP32‑P4)
    • Display: MIPI‑DSI ili9881c (720x1280), backlight PWM, LDO power sequencing.
    • Touch: gt911 init and LVGL integration.
    • Audio: I2S init; codecs es8388 (speaker) and es7210 (mic).
    • Storage: SD‑MMC/SDSPI mount/unmount; SPIFFS helpers.
    • USB: Host start/stop via USB library.
    • Camera: MIPI‑CSI init with SC202CS; feature control via IO expander.
    • Kconfig, component manifest, docs (API.md, README), Doxygen config.
  • Examples & Demos
    • Add sdkconfig.bsp.m5stack_tab5 for multiple examples; include board in examples matrix/build rules.
    • display_camera_csi: add aspect‑fit scaling, rotation handling, buffer mgmt cleanup; header/API tidy.
    • Minor CMake and README path fixes.
  • CI/Registry
    • Add m5stack_tab5 to upload workflows (incl. noglib) and bsp_ext.py.
    • Update root README.md tables (supported boards and examples).
    • Add Doxybook generation for m5stack_tab5 in .pre-commit-config.yaml.
  • Other
    • Add BSP_CAMERA_ROTATION macros to esp32_p4_* BSP headers/API.
    • SquareLine: new board profile (SquareLine/boards/v9/m5stack_tab5).

Written by Cursor Bugbot for commit 3c53958. This will update automatically on new commits. Configure here.

@espzav espzav force-pushed the bsp/m5stack_tab5 branch 2 times, most recently from c5a163b to 42d8e2b Compare November 14, 2025 15:02
@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Test Results

28 tests   28 ✅  1m 31s ⏱️
 5 suites   0 💤
 5 files     0 ❌

Results for commit 3c53958.

♻️ This comment has been updated with latest results.

@espzav espzav force-pushed the bsp/m5stack_tab5 branch 2 times, most recently from 8eb26b4 to bcb0cc5 Compare November 20, 2025 07:00
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@espzav
Copy link
Collaborator Author

espzav commented Nov 20, 2025

@PetrESP @tore-espressif PTAL

@espzav espzav force-pushed the bsp/m5stack_tab5 branch 2 times, most recently from 36c9662 to 1aa4804 Compare November 20, 2025 12:57
esp_io_expander_new_i2c_pi4ioe5v6408(i2c_handle, BSP_IO_EXPANDER_ADDRESS_1, &io_expander1);

return io_expander;
}
Copy link

Choose a reason for hiding this comment

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

Bug: IO expander initialization without error checking

The bsp_io_expander_init() function does not check the return values of the two esp_io_expander_new_i2c_pi4ioe5v6408() calls at lines 935-936. If either initialization fails, the corresponding handle remains uninitialized, potentially causing NULL pointer dereferences when these handles are subsequently used by bsp_feature_enable() and other functions that call bsp_io_expander_init() and then immediately use io_expander or io_expander1 without NULL validation.

Fix in Cursor Fix in Web

Copy link
Collaborator

@PetrESP PetrESP left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I am still testing out examples but I have few comments which I would like to discuss.

| define | [**BSP\_CAMERA\_DEVICE**](#define-bsp_camera_device) (ESP\_VIDEO\_MIPI\_CSI\_DEVICE\_NAME)<br> |
| define | [**BSP\_CAMERA\_EN**](#define-bsp_camera_en) (GPIO\_NUM\_12)<br> |
| define | [**BSP\_CAMERA\_GPIO\_XCLK**](#define-bsp_camera_gpio_xclk) (GPIO\_NUM\_11)<br> |
| define | [**BSP\_CAMERA\_ROTATION**](#define-bsp_camera_rotation) (0)<br> |
Copy link
Collaborator

Choose a reason for hiding this comment

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

Personally I think that it would be nice and easier for review and for the future look up of these changes if you separated changes to the P4 EYE into a separate commit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted to change example, which is related to all camera boards.

@github-actions
Copy link

⚠️ Build failed for idf_ver=release-v6.0 index=5

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=latest index=3

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=latest index=2

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=latest index=1

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=release-v6.0 index=4

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=release-v6.0 index=3

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=latest index=4

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=release-v6.0 index=1

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=latest index=5

This failure was ignored (continue-on-error enabled).
See details: View build logs

@github-actions
Copy link

⚠️ Build failed for idf_ver=release-v6.0 index=2

This failure was ignored (continue-on-error enabled).
See details: View build logs

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