You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistent and accurate error messages and documentation.
Actual behavior (suspected bug)
The documentation for running RGB example states the RGB example runs on ESP32-S3. Presumably, it should also work under QEMU with graphics.
I can build the RGB Panel example without issue in VSCode, but when I try to run it under QEMU from VSCode, I get the following error message:
esp32s3 is not supported by Espressif QEMU. Only esp32 or esp32c3 targets are supported.
This message is contradicted by the IDF QEMU Emulator documentation. Oddly enough, the documentation states you should install several pre-built libraries for, including qemu-riscv32. Is it necessary for ESP32-s3, or is this generalized across SOCs?
When I try it from the command-line using idf.py build and idf.py qemu -g, it runs but I get the following message:
I (2286) boot: Loaded app from partition at offset 0x10000
I (2286) boot: Disabling RNG early entropy source...
E (2290) octal_psram: PSRAM ID read error: 0x00000000, PSRAM chip not found or not supported, or wrong PSRAM line mode
E cpu_start: Failed to init external RAM!
Clearly, VSCode and idf.py don't report the same error message. It would be nice if the example documentation included not only the supported SOCs, but a support matrix of QEMU and SOC combination.
Error logs or terminal output
Steps to reproduce the behavior
See actual behavior.
Project release version
5.4
System architecture
ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)
Operating system
MacOS
Operating system version
Sequoia
Shell
ZSH
Additional context
No response
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Unable to run RGB Panel example
Unable to run RGB Panel example (QEMU-237)
Jan 17, 2025
Joebeazelman
changed the title
Unable to run RGB Panel example (QEMU-237)
Conflicting and incomplete information on running RGB Panel QEMU
Jan 17, 2025
The documentation for running RGB example states the RGB example runs on ESP32-S3. Presumably, it should also work under QEMU with graphics.
This is not clearly stated in the example documentation, but (as many other IDF examples) this example will not run under QEMU. This example uses the esp_lcd_panel_rgb driver, which doesn't support QEMU (or, QEMU doesn't support emulation of the LCD_CAM peripheral in the ESP32-S3`.
QEMU supports a virtual framebuffer device. This device doesn't exist in the real ESP32-S3 hardware, but it can be used to test graphics applications in QEMU.
and
To use the virtual framebuffer device in your application, you can add the espressif/esp_lcd_qemu_rgb component to your project. This component provides an esp_lcd compatible driver for the virtual framebuffer device.
Please note that if you are using IDF v5.4 and QEMU release esp_develop_9.0.0_20240606 (supplied with ESP-IDF), then this example still won't work on ESP32-S3, since support for virtual LCD framebuffer has only been added in QEMU in commit 6f41181, which hasn't been released yet. As is, the example will work on ESP32 and ESP32-C3.
For this part, we will:
make the next release of QEMU, including virtual LCD framebuffer support for ESP32-S3 (6f41181)
update examples/peripherals/lcd/rgb_panel example readme file with a note that this example doesn't work in QEMU
but when I try to run it under QEMU from VSCode, I get the following error message:
esp32s3 is not supported by Espressif QEMU. Only esp32 or esp32c3 targets are supported.
I think this issue is that in VS Code extension, the list of targets supported by QEMU has been hard-coded and hasn't been updated when support for ESP32-S3 in QEMU was added. I'll open an issue in VS Code extension repository to get that fixed.
Checklist
How often does this bug occurs?
always
Expected behavior
RGB Panel should run under QEMU when following instructions:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/tools/qemu.html
Consistent and accurate error messages and documentation.
Actual behavior (suspected bug)
The documentation for running RGB example states the RGB example runs on ESP32-S3. Presumably, it should also work under QEMU with graphics.
I can build the RGB Panel example without issue in VSCode, but when I try to run it under QEMU from VSCode, I get the following error message:
esp32s3 is not supported by Espressif QEMU. Only esp32 or esp32c3 targets are supported.
This message is contradicted by the IDF QEMU Emulator documentation. Oddly enough, the documentation states you should install several pre-built libraries for, including qemu-riscv32. Is it necessary for ESP32-s3, or is this generalized across SOCs?
When I try it from the command-line using idf.py build and idf.py qemu -g, it runs but I get the following message:
Clearly, VSCode and idf.py don't report the same error message. It would be nice if the example documentation included not only the supported SOCs, but a support matrix of QEMU and SOC combination.
Error logs or terminal output
Steps to reproduce the behavior
See actual behavior.
Project release version
5.4
System architecture
ARM 64-bit (Apple M1/M2, Raspberry Pi 4/5)
Operating system
MacOS
Operating system version
Sequoia
Shell
ZSH
Additional context
No response
The text was updated successfully, but these errors were encountered: