From aeb7475920c19df41e659c8a4d3fd6b71d2c0d86 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 23 Jun 2022 14:21:18 +0200 Subject: [PATCH] samples: display: lvgl: add min_flash/min_ram LVGL eats a considerable amount of flash, so tests may fail on platforms that meet all requirements but that have a low amount of flash, e.g. nucleo_g071rb. Set min_flash for all cases to 250K (result of some quick experimentation). Also update minimum ram to exclude platforms that cannot run Zephyr + LVGL (e.g. those with just 16K). Signed-off-by: Gerard Marull-Paretas --- samples/subsys/display/lvgl/sample.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/samples/subsys/display/lvgl/sample.yaml b/samples/subsys/display/lvgl/sample.yaml index 050f2a1a772..28b09a456dd 100644 --- a/samples/subsys/display/lvgl/sample.yaml +++ b/samples/subsys/display/lvgl/sample.yaml @@ -4,5 +4,11 @@ sample: tests: sample.display.lvgl.gui: filter: dt_chosen_enabled("zephyr,display") + # flash usage varies depending on the platform, but ~200K are the bare + # minimum, give some room by adding 50K more. RAM usage depends largerly on + # the display buffer, but a minimum is also required for the system itself. + # ~25K seem to be sufficient for most cases, rounded to 32K. + min_flash: 250 + min_ram: 32 harness: none tags: samples display gui