Sometimes mcu(nrf52840) load picture error

Code

The code block(s) should be between ```c and ``` tags:

/*You code here*/
lv_obj_t* screen = get_background(NULL);

	imgbtn = lv_imgbtn_create(screen, NULL);
	lv_imgbtn_set_src(imgbtn, LV_BTN_STATE_RELEASED, "/ditu/sport_s.bin");
	lv_obj_align(imgbtn, NULL, LV_ALIGN_CENTER, 0, -30);

	label_sport = lv_label_create(screen, NULL);
	lv_obj_set_style_local_text_font(label_sport, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &sy_mid_20);
	lv_obj_set_style_local_text_color(label_sport, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
	lv_label_set_text(label_sport, "运动");
	lv_obj_align(label_sport, imgbtn, LV_ALIGN_OUT_BOTTOM_MID, 0, 15);

lv_conf.h
#define LV_IMG_CACHE_DEF_SIZE       1

Screenshot and/or video

my mcu is nrf52840, after the watch powerup, the picture load status is ok, then after a while,the picture can`t load correct, and lvgl printf these message:

00> app: …\my_app\lvgl\src\lv_draw\lv_img_cache.c->128 _lv_img_cache_open->
00>
00> app: …\my_app\lvgl\src\lv_draw\lv_draw_img.c->88 lv_draw_img->
Corresponding code:


error status


ok status