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

M5Stack Core S3 simulation crash when enabling display from ESP-BSP #889

Open
georgik opened this issue Sep 26, 2024 · 2 comments
Open

M5Stack Core S3 simulation crash when enabling display from ESP-BSP #889

georgik opened this issue Sep 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@georgik
Copy link

georgik commented Sep 26, 2024

ESP-BSP is standard a mechanism how to work with a board.

The initialization sequence in case of M5Stack CoreS3 includes also Power Up of display using AW9523.

The application that works on real HW, crashes in the simulation.

Here are artifacts: https://github.com/georgik/esp32-sdl3-example/actions/runs/11049438543

Here's the failure: https://github.com/georgik/esp32-sdl3-example/actions/runs/11049583033/job/30695464460#step:4:102

ESP-IDF video init
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x4208ea11
file: "./managed_components/espressif__m5stack_core_s3_noglib/m5stack_core_s3.c" line 354
func: bsp_display_new
expression: bsp_enable_feature(BSP_FEATURE_LCD)

abort() was called at PC 0x4037d243 on core 0

I guess that this line backfires: https://github.com/espressif/esp-bsp/blob/master/bsp/m5stack_core_s3/m5stack_core_s3.c#L95

static uint8_t aw9523_P1 = 0b10100000;
....
    case BSP_FEATURE_LCD:
        /* Enable LCD */
        aw9523_P1 |= (1 << 1);
        break;
@georgik georgik added the bug Something isn't working label Sep 26, 2024
@georgik
Copy link
Author

georgik commented Sep 26, 2024

@urish
Copy link
Contributor

urish commented Sep 26, 2024

I loved the creative use of the LCDs as mock I2C devices. Very clever!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants