STM32L4R9-Discovery and external PSRAM
Hello,
I am currently working with a STM32L4R9-Discovery board with STemWin using demonstration project.
I want to use the external PSRAM as a memory for the LCD GFXMMU framebuffer
from LCDConf.c :
#if defined ( __ICCARM__ )
#pragma location="FrameBufferSection"
__root
#else
__attribute__((section(".FrameBufferSection")))
#endif
/* 365040 : Ex 24bpp => (390 * 390) * 3 - ((390 * 390) * 3 * 20%) */
static uint8_t PhysFrameBuffer[BSP_LCD_PHYS_FB_SIZE * NUM_BUFFERS * GUI_NUM_LAYERS * NUM_VSCREENS];and Linker.ld
PSRAM (rx) : ORIGIN = 0x60000800, LENGTH = 16384K /* 16 Mbytes */
....
.FrameBufferSection :
{
. = ALIGN(32);
KEEP(*(.FrameBufferSection))
} >PSRAM
I use 0x60000000 as base address for PSRAM following FMC bank 1 address (from DM00310109.pdf)
I also initialize the PSRAM Memory using by calling "BSP_PSRAM_Init();" as demonstrate in BSP example.
I am able to build the project and generate a hex file but using ST-Link utility with external loader configured i got this error :
"No elf loader found for this configuration"
Did I miss something in documentation or example ?
Thanks
Simon
