Trouble Integrating Custom LCD Driver as a Zephyr Module #61914
-
I work for a B2B company that manufactures devices in China. One of our devices currently runs a bare-metal program, and I successfully reimplemented its functionality using Zephyr. Initially, I was quite enthusiastic about the ease of development and was keen to advocate for the adoption of Zephyr within my organization, primarily due to its portability and extensive driver support. However, I've encountered a roadblock that has made it difficult to proceed. I have a device featuring a custom LCD, and my goal is to use LVGL on Zephyr for its UI. I've spent some weeks trying to integrate my custom LCD driver with Zephyr's display driver framework. The driver works fine when I add it to the Zephyr tree (zephyrproject/zephyr/drivers/display/). However, I encounter issues when I try to place it in my own repository and compile it as a Zephyr module; I've tried multiple approaches without success (@gmarull, @jaredwolff). The build system seems to not compile my custom driver, resulting in the exclusion of the display driver from the build and breaking all references to the device instance, which ultimately causes the compilation to fail. Here is the structure of my project repository: my_app_repo/ This roadblock has prevented me from demonstrating Zephyr as a viable option for adoption in my company. While the macros related to my driver are generated in autoconf.h, the source files are being ignored during the build. I would appreciate any guidance or suggestions to resolve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @saacifuentesmu-titoma , Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi @DerekSnell, Just found the zephyrproject-rtos/example-application repo some weeks ago. In summary, I had to follow the next steps:
Thank you for the repsonse. |
Beta Was this translation helpful? Give feedback.
Hi @DerekSnell, Just found the zephyrproject-rtos/example-application repo some weeks ago.
In summary, I had to follow the next steps:
Thank you for the repsonse.