Question
the STemWin used external SDRAM can't pass the GUI_Init
Posted on October 17, 2013 at 12:53hello: i used the STM32F439 control#define GUI_NUMBYTES (1024 * 1024*2)/* 32 bit aligned memory area */U32 extMem[GUI_NUMBYTES / 4];void GUI_X_Config(void){ GUI_ALLOC_AssignMemory(extMem, GUI_NUMBYTES);}In the SDRAM void GUI_X_Config(void){//Changed here only static U32 *aMemory; aMemory=(U32*)0xc0000000;//as GUI's RAM buffer GUI_ALLOC_AssignMemory(aMemory, GUI_NUMBYTES);}If used the SDRAM as the GUI's RAM,I can't pass the GUI_DEVICE_CreateAndLink(DISPLAY_DRIVER_0, COLOR_CONVERSION_0, 0, 0);I don't know why.the driver of LCD is OK, The SDRAM_Init(void) ,void SDRAM_InitSequence(void) used the demo.the hardware is MB1046 ,if anyone have this demo board,you can try it.In the end ,i don't know what's why .i used the SDRAM as GUI's RAM.the software is IAR6.6 .At the same time.i used the keil to debug the code .i found that it's can't jump to the c,always in the disassembly .it's strage.thank you so muck.
best regardsRoyemail aizhixi@gmail.comskype aizhixi106(roy.hu)
best regardsRoyemail aizhixi@gmail.comskype aizhixi106(roy.hu)