Skip to content

Conversation

keith-packard
Copy link

Fixes zephyrproject-rtos/zephyr#97737

LVGL provides replacement versions of several standard C library interfaces. That breaks applications which expect a complete implementation of sprintf and control over the malloc heap using standard Zephyr configuration mechanisms among other issues.

Change the default configuration behavior to prefer the C library versions of all of these functions, relying on the user to select a suitable C library configuration to fit their needs.

Don't override the C library implementations of standard interfaces
unless the user explicitly selects them.

Signed-off-by: Keith Packard <[email protected]>
@Finomnis
Copy link
Contributor

Finomnis commented Oct 17, 2025

Please let's use the custom instead of clib. CLIB crashes for me. Unsure why. Custom with the already existing zephyr provided glue code works perfect.
I can try again though, I'm unsure why the crash happens.

@keith-packard
Copy link
Author

Please let's use the custom instead of clib. CLIB crashes for me. Unsure why. Custom with the already existing zephyr provided glue code works perfect. I can try again though, I'm unsure why the crash happens.

Hrm. Can you provide an example which crashes? I'm not sure why any glue code is necessary; we just lvgl to use <stdio.h> directly.

@Finomnis
Copy link
Contributor

Yeah I don't know, maybe it was my mistake, because what you say makes much sense.

@Finomnis
Copy link
Contributor

Finomnis commented Oct 17, 2025

Turns out this was already fixed in zephyrproject-rtos/zephyr#94073, so this isn't really needed.

It seems it just wasn't backported to Zephyr 4.2 yet.

@Finomnis
Copy link
Contributor

Finomnis commented Oct 18, 2025

The backport was triggered: zephyrproject-rtos/zephyr#97838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants