|
我用”armfly-v2v3开发板裸机STemWin5.20“例程点亮了一个5寸屏和7寸屏,现在碰到一个这样的问题,当使用内部的ram作为emwin空间时正常,当使用外部的SRAM作为emwin空间时,
每次重新上电或者按复位键,会出现卡死在GUI_Init()里面的现象,多按复位两次又恢复正常,正常之后再按复位又卡死在GUI_Init(),GUI_X_Config里面的配置程序如下,
void GUI_X_Config(void)
{
#if 0
/* 32 bit aligned memory area */
static U32 aMemory[GUI_NUMBYTES / 4];
/* Assign memory to emWin */
GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
#else
/* Assign memory to emWin */
// GUI_ALLOC_AssignMemory((U32 *)0x68000000, 1024*1024);
// GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
static U32 *aMemory ;
aMemory = (U32 *)0x68000000;
/* Assign memory to emWin */
GUI_ALLOC_AssignMemory(aMemory, (1024*1024));
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
#endif
} |
|