Replies: 17 comments 3 replies
-
I tried to compile it with the 'lvgl' sample and got the following error, what I am missing?
|
Beta Was this translation helpful? Give feedback.
-
The build error suggests that your board overlay is missing the chosen There is a shield available: Zephyr shield doc: Doc |
Beta Was this translation helpful? Give feedback.
-
Faxe1008,
I am very new to zephry and I haven't got the point on how to set it up. Appreciate if anyone can tell how to debug or fix it.
|
Beta Was this translation helpful? Give feedback.
-
The project builds just fine for me:
Does the simple hello_world project build for you? Did you perform a |
Beta Was this translation helpful? Give feedback.
-
Yes, it works with 'nrf52840dk_nrf52840', but I got the error when replacing the board to esp32 as:
I have successfully run hello_world, blinky, net/wifi examples without giving the 'SHIELD' on esp32c3. |
Beta Was this translation helpful? Give feedback.
-
I am guessing that I am missing the dts(i) related part and got an informational prompt after tried a bit: Diff:
Error:
'arduino_spi' is missed and I have no idea on how to fix it correctly. |
Beta Was this translation helpful? Give feedback.
-
Yeah the esp32c3 does not have the arduino_spi node. The shield assumes pin compatibility. Instead of using the shield you should just use the display directly on your overlay. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback. Confused on the 'SPI' configuration, it seems that no specific pin ctrl definitions for all the SPI pins. ![]() Relevant SPI pin definitions in esp32c3:
I searched around and found some reference code: https://github.com/jakkra/ZSWatch/blob/main/app/boards/nrf5340dk_nrf5340_cpuapp.overlay
|
Beta Was this translation helpful? Give feedback.
-
A guide at: |
Beta Was this translation helpful? Give feedback.
-
I have tried to run the 'lvgl' sample with the following change while the display remains 'blank' and no content showed up. Appreciate if any idea on how to debug.
Patch:
Build commands:
Console output:
|
Beta Was this translation helpful? Give feedback.
-
I am suspecting that I am not setting up the pin ctrl correctly. Some change and not working still: Diff:
spi2 from generated 'dts':
|
Beta Was this translation helpful? Give feedback.
-
@faxe1008 Thank you for your comment! I didn't know how to and I did it as below:
I tried gpio shell debugging and overall it works good but sometimes I still get '0' after writing '1' to a specific pin. I added some debug code in st7735 and gpio driver and saw that read/write cmd/data were executed correctly overall but the screen is still white. There is an error in the console reporting the pixel format change is not implemented:
Any idea? I am suspecting that my pinmux is not configured correctly. |
Beta Was this translation helpful? Give feedback.
-
Exactly, I was using sample 'cfb' instead of 'lgvl'. I tried hacking the 'RGB565' but it didn't work still, It seems that the driver functions are executed successfully regarding spi operations. I tried to disconnect all Diff:
|
Beta Was this translation helpful? Give feedback.
-
I don't really know if it works as I have neither an display board nor an esp32c3 board, but what I just tried was adding an overlay file in sample/subsys/display/lvgl/boards and made a build. Content of the overlay file (named esp32c3_devkitm.overlay)
I then made the build like
Notice that I kept the default SPI pins setup for the board. I added cmd-data pin on GPIO6 and reset pin on GPIO11. Easy to change like you have already done. But I can't tell if the display works though |
Beta Was this translation helpful? Give feedback.
-
Tim, The difference between your overlay and mine might be the pin mapping/mux. |
Beta Was this translation helpful? Give feedback.
-
It turns out that the DC pin is not working correctly on GPIO11. It works after changing it to GPIO5, thank you very much!
|
Beta Was this translation helpful? Give feedback.
-
Hi @weiyshay, I'm trying to bring up the same st7735 display on the same board (luatos esp32c3). My pin connection:
My changes:
Generated zephyr.dts:
Console output:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the solution you'd like
I am trying to test st7735s display on esp32c3 board and it seems on st7735r driver is integrated.
Describe alternatives you've considered
Use st7735r driver in a smaller resolution.
Hi,
I am trying to enable ST7735s display on ESP32c3 and about a week experience on the board & zephry.
I have successfully run some sample via serial console(blinky, thread, wifi).
I have connected five pins(gnd, vdd, cs, clk, sda) between the boards and the display, and it seems that I need to select a GPIO for 'DC' at least.
Appreciate if anyone can tell what I need to bring it up. Ideas that I got but don't know how to include:
PIn layout:

Discord discussion:
https://discord.com/channels/720317445772017664/720317445772017667
Beta Was this translation helpful? Give feedback.
All reactions