2022-09-06 04:47 AM
as shown in this picture (the top picture is in Touchgfx and the bottom picture is in my LCD board) some images in my LCD don't load correctly!
my code :
void StartDefaultTask(void const * argument)
{
/* USER CODE BEGIN 5 */
f_mount(&SDFatFs, SDPath, 0);
f_open(&MyFile, "image_icon_center_normal.bin", FA_READ);
size = f_size(&MyFile);
res = f_read(&MyFile, (void*) 0xc0139200, size, (UINT*)&bytesread);
f_close(&MyFile);
f_open(&MyFile, "image_bg22.bin", FA_READ);
size = f_size(&MyFile);
res = f_read(&MyFile, (void*) 0xc00f9600, size, (UINT*)&bytesread);
f_close(&MyFile);
f_open(&MyFile, "image_bg2.bin", FA_READ);
size = f_size(&MyFile);
res = f_read(&MyFile, (void*) 0xc00f3200, size, (UINT*)&bytesread);
f_close(&MyFile);
f_open(&MyFile, "image_bg0.bin", FA_READ);
size = f_size(&MyFile);
res = f_read(&MyFile, (void*) 0xc00f0000, size, (UINT*)&bytesread);
f_close(&MyFile);
MX_TouchGFX_Process();
/* Infinite loop */
for(;;)
{
osDelay(1);
}
/* USER CODE END 5 */
}
2022-09-07 01:22 AM
Hey @dibadigital ,
Which version of TouchGFX are you using ?
Which compiler ?
Thanks,
/Yoann
2022-10-26 04:36 AM
Hi,
My problem is solved. The reason was that the image was corrupted. In fact, I had changed the resolution of an image with paint, and it was broken. I had to change it with Photoshop.
Thanks