Skip to main content
Richard Lowe
Senior II
December 8, 2020
Question

External Loader Failing on STM32h7b3i-disco Board

  • December 8, 2020
  • 0 replies
  • 457 views

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

0693W000006F4FOQA0.pngSelected correct external loader file.

And get a nice long timeout with this result:

0693W000006F4FxQAK.png 

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.

This topic has been closed for replies.