-
Notifications
You must be signed in to change notification settings - Fork 172
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
after enabling the rtos part of this project select in lv_conf.h (#define LV_USE_OS LV_OS_NONE to #define LV_USE_OS LV_OS_FREERTOS) #62
Comments
@viys did you followed the instruction? |
Probably it's related to this: #65 (comment) |
@viys Did you checked the CMake path, is it right? |
I directly cloned from the repository, modified it, and followed “To enable the rtos part of this project select in lv_conf.h #define LV_USE_OS LV_OS_NONE to #define LV_USE_OS LV_OS_FREERTOS. Additionally, you have to enable the compilation of all FreeRTOS files by turning on option(USE_FREERTOS "Enable FreeRTOS" OFF) in the CMakeLists.txt file.” to make the changes.😢 |
I have the same error as you, and has it been resolved? |
I have the same issue with the segfault. The debugger gives this backtrace xTaskGenericNotify(TaskHandle_t xTaskToNotify, UBaseType_t uxIndexToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t * pulPreviousNotificationValue) (.\lv_port_pc_vscode\FreeRTOS\tasks.c:7867)
lv_thread_sync_signal(lv_thread_sync_t * pxCond) (.\lv_port_pc_vscode\lvgl\src\osal\lv_freertos.c:265)
lv_draw_dispatch_request() (.\lv_port_pc_vscode\lvgl\src\draw\lv_draw.c:278)
execute_drawing_unit(lv_draw_sw_unit_t * u) (.\lv_port_pc_vscode\lvgl\src\draw\sw\lv_draw_sw.c:251)
render_thread_cb(void * ptr) (.\lv_port_pc_vscode\lvgl\src\draw\sw\lv_draw_sw.c:352)
prvRunThread(void * pxArg) (.\lv_port_pc_vscode\lvgl\src\osal\lv_freertos.c:330)
prvWaitForStart(void * pvParams) (.\lv_port_pc_vscode\FreeRTOS\portable\ThirdParty\GCC\Posix\port.c:480)
libc.so.6!start_thread(void * arg) (pthread_create.c:442)
libc.so.6!clone3() (clone3.S:81) The |
Updating the lvgl and freertos submodules to |
@liamHowatt @uLipe could you take a look at this issue? |
Looks like the render thread was not created when the sw render executor wants to trigger it. I will check that |
@uLipe did you find a solution in the end? |
@AndyEveritt this is on my next tasks to handle, I will keep you posted. |
PR #73 fixes this issue |
@psanyi thanks for your PR. It solved the initial issue I was having, too. When initing the The lvgl_task doesn't recover from there and it cannot be paused for debuggin. If I switch back to Any advise on this? Thanks. |
Try to increase the stack size of lvgl task. |
Thanks for reply, but already tried that. |
What kind of OS you are using? Make sure in your config/FreeRTOSConfig.h Make sure the lvgl and the other task priorities is not less then 3. |
I'm on
I tried both stock Also started again from scratch by cloning again the I'll continue digging... I may need to update something on my system. |
I will try also in a Linux VM. Until the PR is reviewed and accepted please checkout my devel branch here Or you can cherry pick my PR |
By me at first crashed with 4096 on VM. So. It works fine with 12096. You always have to adapt the stack according to the design. if (xTaskCreate(lvgl_task, "LVGL Task", 12096, nullptr, 3, nullptr) != pdPASS) { |
I found a temporary workaround... I'm managing
Now it seems I get it working. So I think there is something in LVGL freertos configuration that conflicts with my system. |
ubunu 24.04
![image](https://private-user-images.githubusercontent.com/88153048/367510886-57e2a804-9f2a-4c25-a309-c1f8117b9997.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1Njk0NDgsIm5iZiI6MTczOTU2OTE0OCwicGF0aCI6Ii84ODE1MzA0OC8zNjc1MTA4ODYtNTdlMmE4MDQtOWYyYS00YzI1LWEzMDktYzFmODExN2I5OTk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDIxMzkwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxYzI4NzIzMGQ4MmM2MTdlZWE0M2MzOTk5ZDY0YjczNTVlZjgxOTk2NWNkNzlhOGYxNDQ1YWUyYmNhYmMyOTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XqydG4q5rRVzLdoN2J22vaJ2qTkZjMp1zDgK-DKblLM)
I have tried many times but couldn't solve this issue. During this process, I created an Ubuntu virtual machine as well as WSL2 on Windows.
The text was updated successfully, but these errors were encountered: