2021-02-09 08:33 AM
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
I get this error
What's wrong in my SCT file or other settings?
My IC is STM32h743B.
On project for STM32F746B this porblem not occured.
2021-02-09 10:08 AM
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
2021-02-09 10:12 AM
Hmmm...
I don't want to program qspi flash - it is already programmed.
I deleted algorithm from debugger's flash setting tab.
2021-02-09 10:13 AM
2021-02-09 10:20 AM
could you look at my project?
2021-02-09 11:37 AM
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.
2021-02-09 11:49 AM
"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....
2021-02-09 11:52 AM
THis is my settings
but in linker I unchecked using of this dialog
2021-02-10 08:52 PM
Anybody know answer?
2021-02-12 10:01 AM
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.