cancel
Showing results for 
Search instead for 
Did you mean: 

Loading object code error

EEuge
Senior

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.

24 REPLIES 24

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

Hmmm...

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

I deleted algorithm from debugger's flash setting tab.

EEuge
Senior

0693W000007EbQRQA0.png

EEuge
Senior

could you look at my project?

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

"Or perhaps uncheck "Load Application at Startup" "

If I do it, controller starts, but I can't control variables in watch window, can't set breakpoints....

"and use a debugger script to LOAD the different sections." - How? What I vave to write to it? For example....

THis is my settings

0693W000007EbrrQAC.png 

but in linker I unchecked using of this dialog

0693W000007EbsBQAS.png

EEuge
Senior

Anybody know answer?

Mathew Grabau
Associate III

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.