lvgl / lv_port_pc_vscode

MIT License
240 stars 147 forks source link

lv_port_pc_vscode - on macos - FreeRTOS not Working #65

Open banach87 opened 2 weeks ago

banach87 commented 2 weeks ago

Followed the tutorial to startup the simulator on macos. I would like to make it running through FreeRTOS, but it was not working.

  1. changing the CmakeFile to ON, will not affect the compilation. FreeRTOS is still disabled. You can solve this issue by adding a unset(USE_FREERTOS CACHE) in the file. I have placed it on the previous line where the variable is set.
  2. while clicking on the errors in the Problems window you are not redirected to the proper file. There is surely an error in the workspace configuration file.
  3. I am attachin a list of errors: Screenshot 2024-09-20 alle 00 31 29

Thank you!

kisvegabor commented 2 weeks ago

Hi,

changing the CmakeFile to ON, will not affect the compilation. FreeRTOS is still disabled. You can solve this issue by adding a unset(USE_FREERTOS CACHE) in the file. I have placed it on the previous line where the variable is set.

Can you send Pull request to fix it?


Note that this project is for PC with SDL. Do you use it with ESP? In this case LV_USE_SDL should be disabled for sure but it seems very complicated to make it an ESP project. FreeRTOS is shipped in ESP-IDF, so you wouldn't need to add it externally.

banach87 commented 2 weeks ago

Il giorno lun 23 set 2024 alle ore 14:15 Gabor Kiss-Vamosi < @.***> ha scritto:

Hi,

changing the CmakeFile to ON, will not affect the compilation. FreeRTOS is still disabled. You can solve this issue by adding a unset(USE_FREERTOS CACHE) in the file. I have placed it on the previous line where the variable is set.

Can you send Pull request to fix it?

Of course I can.


Note that this project is for PC with SDL. Do you use it with ESP? In this case LV_USE_SDL should be disabled for sure but it seems very complicated to make it an ESP project. FreeRTOS is shipped in ESP-IDF, so you wouldn't need to add it externally.

No I don't, I am using it with SDL on macos. I would like to use the simulator to fastly create screens and then put them back to embedded on ESP.

Thank you for your work!