Hardfault memory manager when integrate LVGL into FreeRTOS (FreeRTOS Kernel V10.3.1)
hi all,
Why does the system crash when registering an initialized display driver using lv_disp_drv_register() within “In Register” section? how to replace lv_hal_disp.c for freertos.
1
lv_memset_00(disp, sizeof(lv_disp_t))
After executing the lv_memset_00(disp, sizeof(lv_disp_t)) statement, set the free BlockSize in the BlockLink_t structure to 0 (zero).
then Insert the new block into the list of free blocks (prvInsertBlockIntoFreeList( ( pxNewBlockLink ) )) Due to sufficient space (as subtracting any number from 0 results in a negative number, i.e., a large number), it enters an infinite loop.
2.Create a refresh timer
lv_timer_create(_lv_disp_refr_timer, LV_DISP_DEF_REFR_PERIOD, disp);
why it Add a new head to a linked list to create timer task ?
FreeRTOS Kernel V10.3.1, use heap_4.c
LVGL V8.0.0
board stm32h743
add pvPortRealloc() at heap_4.c
```c
void *pvPortRealloc(void *mem, size_t newsize) { if (newsize == 0) { vPortFree(mem); return NULL; } void *p; p = pvPortMalloc(newsize); if (p) { /* zero the memory */ if (mem != NULL) { memcpy(p, mem, newsize); vPortFree(mem); } } return p; }
```
