Hi All,
NXP RT1166 with McuXpresso 11.6 SDK 2.12.1 LVGL8.2 GUI Guider nxp 1.4.1
Update every second 2 labels on the screen
I use from FreeRtos the brief FreeRTOS tick hook to create every sec a flag = 1 .
Every sec write to the labels.
Code to reproduce
Use
lv_label_set_text(guider_ui.Base_label_Tempcap,“12,3”);
lv_label_set_text(guider_ui.Base_label_Tempcool,“20,’”);
Add the relevant code snippets here.
/You code here/
static void AppTask(void *param)
{
#if LV_USE_LOG
lv_log_register_print_cb(print_cb);
#endif
int8_t hv_buf[64];
uint16_t hv16;
uint16_t hvuint;
uint32_t hv_long;
uint8_t hv;
double test_float,test_float1;
double hvuint_double;
uint16_t Cal_Sec_Meas_Charts;
uint16_t loop;
uint8_t Flag_ScreenMeas_Act;
lv_port_pre_init();
lv_init();
lv_port_disp_init();
lv_port_indev_init();
s_lvgl_initialized = true;
setup_ui(&guider_ui);
events_init(&guider_ui);
custom_init(&guider_ui);
for (;;)
{
if(Flag_GUI)
{
Flag_GUI = 0;
lv_task_handler();
}
if((Flag_Update_Screen) && lv_obj_is_valid(guider_ui.Base))
{
Flag_Update_Screen = 0;
Test_Uart('t');
Flag_Sec = 0;
if(sw)
{
sw = 0;
lv_label_set_text(guider_ui.Base_label_Tempcap,"20,3 C");
lv_label_set_text(guider_ui.Base_label_Tempcool,"21,5 C");
}
else
{
sw = 1;
lv_label_set_text(guider_ui.Base_label_Tempcap,"34,8 C");
lv_label_set_text(guider_ui.Base_label_Tempcool,"31,7 C");
}
}
}
}
At lv_conf.h
#if LV_MEM_CUSTOM == 0
/* Size of the memory available for `lv_mem_alloc` in bytes (>= 2kB)*/
#define LV_MEM_SIZE (128U * 1024U + 720 * 1280 * 4)
## Screenshot and/or video
If possible, add screenshots and/or videos about the current state.
The two labels will be updated .
After a few minutes the system crash at MemManage_Handle
Debugged in SDRAM memory -> same result.
No overload at Stackmemory
Only 15 % of SDRAM is in use.
If i don't update the labels every sec , the system run for 24 hours.
Why crashed the system ?
Tested the whole SDRAM for 24 hours withous aly fault.
Tested the flash without any fault.
Tested the cache memory without any fault.
With mcuXpresso 11.5 SDK2.11.1 Gui Guider 1.3.1 the system run for 24 hours without any crash.
Where can i look after?
With regards
Paul