-
Notifications
You must be signed in to change notification settings - Fork 3
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
NuttX integration #6
Comments
@kisvegabor maybe we can start creating that manifest file to use with the generic simulator with LVGL FB (https://github.com/apache/nuttx/tree/master/boards/sim/sim/sim/configs/lvgl_fb) or LVLG LCD(https://github.com/apache/nuttx/tree/master/boards/sim/sim/sim/configs/lvgl_lcd). This way it could be used as reference for someone willing to use it with other real board |
Whoah! Congratulations! Will take a look in a free moment :-) |
Thanks for joining! 🤗 Correct me if I'm wrong, but as far as know to build an LVGL demo for a different target, you just need to type something different into the terminal. If it's true, and if we can write a script to parse some board descriptors (maybe the rst file of the docs?) we can easily generate many manifests where only the For example:
It would be also great make it clear how to add new files and start creating your custom app. What do you think? |
@kisvegabor that is correct, all we need is an existing board config to support LVGL in the board XYZ |
Great! Do you have a machine parsable list about the currently supported lvgl-ready boards? Including some specs too? Creating it by hand is also an option and it's more flexible too. I believe in 8 hours someone can create ~30 manifests as they are very similar. Just need to Google the specs. Are there any config options the we shall add during project generation? E.g. buffering modes or so? Could you also link me some docs about adding custom C files to a NuttX project/build? I mean not using an example but start creating a real life app. Sorry, if it's something trivial. |
I think NuttX simulator would be best first target because you can run and test it directly on your local computer :-) There is already LVGL 9 demo running on bare X11 window as display. You can fetch all sources, build, and run as simply as:
Note: I guess that would be the simplest way to start and test things even without specific hardware. I am thinking for some time to add SDL support so there is no dependency on X11 and we could run even on bare video console one day :-) Demos for various boards can be built exactly the same way (just cross-compile toolchain must be installed on the build host for given target CPU architecture). Dependencies are downloaded by the build scripts during compilation. The convention here is To quickly see what boards already support LVGL grep over a list of all available configurations (
More information about The NuttX Simulator: https://nuttx.apache.org/docs/latest/guides/simulator.html If you want to create a custom board here is the tutorial: https://nuttx.apache.org/docs/latest/guides/customboards.html If you want to create a custom app here is the tutorial: https://nuttx.apache.org/docs/latest/guides/customapps.html Custom Board and App is best choice when you want to keep out-of-tree code and then use nuttx and nuttx-apps code with minimal modifications. In any other case you can play inside source tree, make renamed copies, modify to see what happens, and code to get what you need :-) |
Thank you! cc @liamHowatt Next week can you take look at these? |
I have created this repo: https://github.com/lvgl/lv_nuttx For now, it has a manifest for the simulator and for esp32s3-lcd-ev. A future version of the project creator will be able to clone lv_nuttx and then patch What do you think? |
Hi,
The project creator has been released and now we are eager to add external boards. 🙂
How could it work in case of NuttX?
The goal is to create a manifest file (similar to this) for each board. Probably an
lv_nuttx
repo could be created to store all these manifests.I'm about to extend the manifest with a
"getStartedInstructions"
field which will be displayed when the project is created and can be used to orient the users to make the first steps.The text was updated successfully, but these errors were encountered: