How to link touchgfx source(images, fonts...) in extern sdram?
environment:keil
link file code:
LR_SDRAM 0xC1A00000 0x00600000 { ; load region size_region
ER_SDRAM 0xC1A00000 0x00600000 { ; load address = execution address
*.o (TextFlashSection)
*.o (FontFlashSection)
*.o (ExtFlashSection)
}
}
blockcopy:
if (dataOffset >= 0xC1A00000 && dataOffset < 0xC2000000)
{
dataOffset = dataOffset - 0xC0000000;
BSP_SDRAM_ReadData8(dataOffset, (uint8_t *)dest, numBytes);
return true;
}
Hi, ST engineer. When my mcu is power up, copy the touchgfx source from qspiflash to sdram, and touchgfx task link source in sdram. I had changed the code as details above.Compare data in sdram and qspiflash of touchgfx source is same , but jump to hardfault when it power up.
How can I link my source in extern sdram? Is that any demo code?
hardfault detail:

