Skip to main content
February 9, 2021
Question

Loading object code error

  • February 9, 2021
  • 5 replies
  • 4952 views

Hello!

THis is my SCT file

; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************
 
LR_IROM1 0x08000000 0x00100000 { ; load region size_region
 ER_IROM1 0x08000000 0x00100000 { ; load address = execution address
 *.o (RESET, +First)
 *(InRoot$$Sections)
 .ANY (+RO)
 }
 RW_IRAM1 0x20000000 0x00050000 { ; RW data
 .ANY (+RW +ZI)
 }
}
 
 LR_EROM1 0x90000000 0x2000000 { ; load region size_region
 ER_EROM1 0x90000000 0x2000000 { ; load address = execution address
*.o (ExtFlashSection)
 ;*.o (TextFlashSection)
*.o (FontFlashSection)
 }
}
 
	

when ExtFlashSection and FontFlashSection are commented (disabled), system loading is OK.

But if these sections are not commented (enabled, written like I quoted) - I get error;

on this stage

0693W000007EaToQAK.png

I get this error

0693W000007EaTtQAK.png 

What's wrong in my SCT file or other settings?

My IC is STM32h743B.

On project for STM32F746B this porblem not occured.

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
February 9, 2021

You'd have to have the right QSPI Flash Algorithm selected in the Debugger's Flash settings tab covering the area in question, ie 0x90000000 / 32MB

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
February 9, 2021

Hmmm...

I don't want to program qspi flash - it is already programmed.

I deleted algorithm from debugger's flash setting tab.

Tesla DeLorean
Guru
February 9, 2021

Perhaps you could make it a NOINIT section? Use objcopy post-link to remove unwanted sections?

Or perhaps uncheck "Load Application at Startup" and use a debugger script to LOAD the different sections.

In more considered systems the resource data is exported as a separate file, and the application indexes into it like a file system.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
February 9, 2021

0693W000007EbQRQA0.png

Tesla DeLorean
Guru
February 12, 2021

That's the internal flash, you need to select the algorithm to use for the QSPI residing at 0x90000000 (32MB or whatever)

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Mathew Grabau
Associate II
February 12, 2021

Only if they want Keil to flash it. I have no issues with mine (it is flashed separately to Keil to speed download speed). I still specify the section and it works fine (just doesn't program it).

February 9, 2021

could you look at my project?

https://cloud.mail.ru/public/fyST/PYnhuPQkp

February 11, 2021

Anybody know answer?

Mathew Grabau
Associate II
February 12, 2021

Which debugger are you using? That makes a difference in the answer. I've used Keil with a J-Link and had no issues loading.

February 12, 2021

I use ST-Link

I try different version of ST-Link - China clone, ST-Link from Discovery board.

Drivers - last version, firmware of ST-link - last version,