From 572db200497996b306386551b6b77909d636dcea Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Sun, 8 Nov 2020 15:04:21 +0100 Subject: [PATCH 1/2] tests/pkg_lvgl: fix sysmon task creation Fixes a bug on the `pkg_lvgl` test when running on the esp32. When `sysmon_task` was created it ran too early before any widget was created causing Store/LoadProhibited exceptions on the esp32, I assume it's noticeable on the esp32 due to the code being fetched from external flash memory adding a delay higher than `REFR_TIME`. Signed-off-by: Jean Pierre Dudey --- tests/pkg_lvgl/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/pkg_lvgl/main.c b/tests/pkg_lvgl/main.c index 134f8e8815..af7516ab7c 100644 --- a/tests/pkg_lvgl/main.c +++ b/tests/pkg_lvgl/main.c @@ -90,8 +90,6 @@ static void sysmon_task(lv_task_t *param) void sysmon_create(void) { - refr_task = lv_task_create(sysmon_task, REFR_TIME, LV_TASK_PRIO_LOW, NULL); - lv_coord_t hres = lv_disp_get_hor_res(NULL); lv_coord_t vres = lv_disp_get_ver_res(NULL); @@ -123,6 +121,7 @@ void sysmon_create(void) lv_label_set_recolor(info_label, true); /* Refresh the chart and label manually at first */ + refr_task = lv_task_create(sysmon_task, REFR_TIME, LV_TASK_PRIO_LOW, NULL); sysmon_task(NULL); } From 1edb8666cb22f1bb82ea3509331519f663a78c39 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Sun, 8 Nov 2020 15:05:56 +0100 Subject: [PATCH 2/2] tests/pkg_lvgl: fix sysmon example URL. Signed-off-by: Jean Pierre Dudey --- tests/pkg_lvgl/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pkg_lvgl/README.md b/tests/pkg_lvgl/README.md index 76b5f9c4ff..744c997347 100644 --- a/tests/pkg_lvgl/README.md +++ b/tests/pkg_lvgl/README.md @@ -3,7 +3,7 @@ LittlevGL sample application This application shows a basic usage of LittlevGL with RIOT. It's simply an adaption of one of the upstream examples: the -[sysmon example](https://github.com/littlevgl/lv_examples/tree/master/lv_apps/sysmon). +[sysmon example](https://github.com/lvgl/lv_apps/tree/master/src/lv_sysmon). ### Flashing the application