2020-12-08 12:47 PM
Application is generated using the CubeMX with TouchGFX generator. Works wonderfully... that is until I want to locate my assets in OSPI.
Added this to the STM32H7B3LIHZQ_FLASH.ld file
/* Memories definition */
MEMORY
{
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
OSPI (xrw) : ORIGIN = 0x90000000, LENGTH = 64M /* added by Richard */
}
Add
/* OSPI Additions by Richard */
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >OSPI
TextFlashSection :
{
*(TextFlashSection TextFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >OSPI
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >OSPI
Selected correct external loader file.
And get a nice long timeout with this result:
I've tried just about everything I can think of for the past 3 days. I'm missing some concept on how the external loader works or ... something.