Jump to content

Zephyr 2.3.99 support


Recommended Posts

Hey!

 

I'm trying to use the current version of uGFX (2.9) on a NUCLEO-L452RE running zephyr 2.3.99 as the operating system and a display with a HX8347D LCD-Controller and a XPT2046 Touch-Controller. According to the uGFX Wiki

Quote

The Zephyr port works out of the box without any modifications.

However I ran into some issues trying to get uGFX and Zephyr to work together.
I have included uGFX into the Zephyr-Project via Single File Inclusion to accommodate for Zephyrs CMake based build system.
The functions _gosPostInit() and _gosInit() are missing in the file gos_zephyr.c.
I set a compile-flag to reactivate some deprecated int-Types of Zephyr that uGFX needs.
Also the function gfxSleepMilliseconds(gDelay ms)  doesn't work, because Zephyr changed the function k_sleep(ms) it is replaced with to expect a struct instead of an integer.
Currently I'm trying to setup a board-file for the LCD-Controller.

Are there any board-files for Zephyr I could use as a reference? Or is there some glue-code I missed out on?
If those don't exist it would be helpful to know, which versions of uGFX and Zephyr the information in the uGFX Wiki is based on, since the mentioned Wiki-Page was last updated in 2017.

 

Thanks,

Julian

Link to post
Share on other sites

Hello & welcome to the µGFX community!

The Zephyr port definitely needs a port to v2.9 to cover for the problem you listed (mainly the type updates) and making it therefore future proof for µGFX v3.0.
We would greatly appreciate it if you could provide an updated version of the Zephyr port :)
The Zephyr port was provided by the community member @nathan.loretan and I think µGFX 2.7 or 2.8 was the latest release at that point. However, porting to the current v2.9 version should be very easy as not much changed on µGFX's side (see changelogs).

The board files are completely independent from the GOS layer. You should be able to use any board file no matter what underlying system you're running µGFX on.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...