cancel
Showing results for 
Search instead for 
Did you mean: 

MEMDEV Issue...

Glee.11
Associate II

Hi All,

Recently, i have testing memory device Because of the flickering.

I've attached my application test code below.

My hardware is stm32f767IGT6 with SDRAM using FMC.

I have two png file to display in 320x240 LCD.

Because of the flickering, I'd like to use MEMDEV or MULTIBUF.

First i tried to use Multi Buf. but it's not works with hardfault So, i'm trying to use MEMDEV.

The test code has 2 images.

In MainTask,

If the "test" is true, the smile guy is displayed properly.

but "test" is false, sysytem crush, with hardfault()

Of course if not using MEMDEV, displayed properly.

void MainTask(void)

{

GUI_MEMDEV_Handle hMem = GUI_MEMDEV_Create(0, 0, 320, 240);

GUI_MEMDEV_Select(hMem);

GUI_Clear();

if(test)

{

GUI_PNG_Draw(_acBitmap_50x50, sizeof(_acPNG), 0, 0);

}

else

{

GUI_PNG_Draw(background, sizeof(background), 0, 0);

}

}

GUI_MEMDEV_CopyToLCD(hMem);

while (1)

{

GUI_Delay(100);

}

}

What am i doing wrong?

0 REPLIES 0