Comments (5)
Some questions:
- What is
LV_MEM_SIZE
set to? (for the freeze at the end) - What is the clock speed of that MCU? STM32 MCUs start up with a clock speed lower than their max capability. Modify the relevant hardware registers to increase the clock speed.
- Can you change the optimization flags of your build?
from lvgl.
Dispite deactivating Call of lv_tick_inc(10) in interrupt and followed main loop:
while (1)
{
lv_timer_handler();
lv_tick_inc(HAL_GetTick() - lv_tick_get());
}
the refresh rate of screen is very low like in the video in next post from me
from lvgl.
Thanks for questions,
- LV_MEM_SIZE is set now 128 * 1024U. with that setting the keybord is working
- Regarding MCU Clock I have tested with Switching SysClk and PLLCLK to external pin via Master Clock Output. Both measured values runs at 200MHz
- I have played with optimisation flags but I have now flashing screen with pulsed widget output (pulses can not be shown in video) with shadowed artefacts.
That can be done in order to eliminate this shadows and pulsed widget output? I have followed setting in lv_conf.h:
/*Default display refresh, input device read and animation step period.*/
#define LV_DEF_REFR_PERIOD 20 /*[ms]*/
#define LV_DPI_DEF 128 /*[px/inch]*/ // the display pixel is 0.198mm (Width/Hight)
and in main loop:
while (1)
{
lv_timer_handler();
lv_tick_inc(HAL_GetTick() - lv_tick_get());
HAL_Delay(20); // SysTick in ms
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
```
from lvgl.
I have activated system monitor with this in lv_conf.h:
/*1: Enable system monitor component*/
#define LV_USE_SYSMON 1
#if LV_USE_SYSMON
/*Get the idle percentage. E.g. uint32_t my_get_idle(void);*/
#define LV_SYSMON_GET_IDLE lv_timer_get_idle
/*1: Show CPU usage and FPS count
* Requires `LV_USE_SYSMON = 1`*/
#define LV_USE_PERF_MONITOR 1
#if LV_USE_PERF_MONITOR
#define LV_USE_PERF_MONITOR_POS LV_ALIGN_BOTTOM_RIGHT
/*0: Displays performance data on the screen, 1: Prints performance data using log.*/
#define LV_USE_PERF_MONITOR_LOG_MODE 0
#endif
/*1: Show the used memory and the memory fragmentation
* Requires `LV_USE_STDLIB_MALLOC = LV_STDLIB_BUILTIN`
* Requires `LV_USE_SYSMON = 1`*/
#define LV_USE_MEM_MONITOR 1
#if LV_USE_MEM_MONITOR
#define LV_USE_MEM_MONITOR_POS LV_ALIGN_BOTTOM_LEFT
#endif
#endif /*LV_USE_SYSMON*/
Now I see that CPU stabil at 0% FPS is not 50 but remains 33 even if LV_DEF_REFR_PERIOD=10.
Memory Usage 26% and 2 % frag. (can that Fragmentation be complett disabled?)
from lvgl.
Okay the Problem with Refresh rate is eliminated. It was the settings from LTDC, which has that bahavior. The settings from datasheet of display were wrong interprated.
from lvgl.
Related Issues (20)
- simple container of radius one shows mixed color HOT 4
- Can lvgl support copying and pasting text using the mouse on Windows? HOT 1
- Possible bug in font-converter (or rendering text) HOT 5
- Demos widget 'Monthly Target' crashes on Elecrow ESP32 S3 Terminal HOT 5
- Tabview scrolling issue HOT 7
- The calendar component date in v8.3 version can only be displayed up to 2023. HOT 4
- Make the NuttX drivers even simpler HOT 4
- lv_image_set_scale and LV_IMAGE_ALIGN_TILE cannot be effective at the same time HOT 3
- Gridnav does not send LV_EVENT_FOCUSED HOT 2
- Smooth font, Smooth display of text during rendering HOT 3
- Canvas examples HOT 5
- draw line got strange effect HOT 14
- SSD1306 Display with ESP32 using SPI HOT 7
- NuttX + FB device (SAMA5D2) - rendering problem/tearing HOT 6
- label text does not show in transparent background display HOT 2
- It gets suck in draw_buf_flush function HOT 5
- segger embedded studio with lvgl8.4 can not show the draw result HOT 1
- Alternative solutions for the implementation of lv_obj_is_valid() HOT 5
- toutch freeze gui HOT 4
- README has broken picture HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.