请教一个问题
stm32吧
全部回复
仅看楼主
level 3
萨摩福特 楼主
有没有大佬知道为什么我用f407移植lvgl,LV_COLOR_DEPTH设置32就不会卡死,设置16就会在调用lv_timer_handler的时候卡死,用的是rgb565的屏幕
2026年07月28日 12点07分 1
level 7
卡死属于什么卡死?进错误中断了?
2026年07月29日 01点07分 2
没进中断while(LV_GC_ROOT(_lv_timer_act)) { /*The timer might be deleted if it runs only once ('repeat_count = 1') *So get next element until the current is surely valid*/ next = _lv_ll_get_next(&LV_GC_ROOT(_lv_timer_ll), LV_GC_ROOT(_lv_timer_act)); if(lv_timer_exec(LV_GC_ROOT(_lv_timer_act))) { /*If a timer was created or deleted then this or the next item might be corrupted*/ if(timer_created || timer_deleted) { TIMER_TRACE("Start from the first timer again because a timer was created or deleted"); break; } } LV_GC_ROOT(_lv_timer_act) = next; /*Load the next timer*/ }一直在这个循环里面
2026年07月29日 05点07分
@萨摩福特 正常来说改这个唯一能有印象的就是刷新那块的缓存区 你看看有问题没
2026年07月29日 05点07分
@😘一只老狐狸 大佬,我楼下发了张截图,你说的是不是这个缓冲区,应该没什么问题呀
2026年07月29日 11点07分
@萨摩福特 只贴一点点实在看不出来 解决不了你得把工程发给我看一下[呵呵]
2026年07月30日 05点07分
level 3
萨摩福特 楼主
2026年07月29日 11点07分 3
level 12
没有仿真器看死在哪里了?
2026年07月30日 00点07分 4
吧务
level 8
F4 跑 LVGL 设 16 位色深时,重点检查 lv_conf.h 里的 LV_COLOR_16_SWAP 和显存字节对齐;flush 回调的颜色格式必须跟你的 RGB565 屏幕严格匹配,不然进 lv_timer_handler 必卡。
2026年08月09日 10点08分 5
1