初级会员
- 积分
- 95
- 金钱
- 95
- 注册时间
- 2019-1-8
- 在线时间
- 21 小时
|
5金钱
现象:板卡上电以后会出现一条蓝色线向下移动,大概10行左右程序会卡死在,我的屏幕分辨率是1920*720;
卡死位置在ARM内中断,arm_data_abort_handler,我怀疑是内存的问题,通过MCU自己打印出来提示
cpu prefetch abort, permission fault
IFAR 0xff0000e0 (fault address)
IFSR 0xd (fault status register)
halting
current_thread 3003C010, name TaskA
请问大佬们这个解决思路是啥,如何配置内存呢?内部RAM8M,外部SDRAM64M我全部用作堆空间了。lv_conf.h 有关内存这里我附在下面
- /*=========================
- MEMORY SETTINGS
- *=========================*/
- /*1: use custom malloc/free, 0: use the built-in `lv_mem_alloc()` and `lv_mem_free()`*/
- #define LV_MEM_CUSTOM 0
- #if LV_MEM_CUSTOM == 0
- /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
- #define LV_MEM_SIZE (2048U * 1024U) /*[bytes]*/
- /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
- #define LV_MEM_ADR 0 /*0: unused*/
- /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
- #if LV_MEM_ADR == 0
- //#define LV_MEM_POOL_INCLUDE your_alloc_library /* Uncomment if using an external allocator*/
- //#define LV_MEM_POOL_ALLOC your_alloc /* Uncomment if using an external allocator*/
- #endif
- #else /*LV_MEM_CUSTOM*/
- #define LV_MEM_CUSTOM_INCLUDE <stdlib.h> /*Header for the dynamic memory function*/
- #define LV_MEM_CUSTOM_ALLOC malloc
- #define LV_MEM_CUSTOM_FREE free
- #define LV_MEM_CUSTOM_REALLOC realloc
- #endif /*LV_MEM_CUSTOM*/
复制代码
|
|