// STM32H723ZGTX_FLASH.ld
/* Specify the memory areas */
MEMORY
{
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 320K
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 32K
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 16K
QSPI_FLASH (rx) : ORIGIN = 0x90000000, LENGTH = 16M
}
// 외부 QSPI FLASH에 저장할 부분.
FontFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >QSPI_FLASH
위치 : [ Project ] ⇒ [ Properties ( Alt + Enter ) ] ⇒ [ C/C++ Build ] ⇒ [ Settings ] ⇒ [ Build Steps ] ⇒ [ Post-build steps ]
FontFlashSection 영역만 별도로 분리하여 stm32h7_assets.elf 파일로 만듭니다.
arm-none-eabi-objcopy -I elf32-littlearm -O elf32-littlearm
**--only-section**=FontFlashSection .\\EX-08-TouchGFX.elf .\\**stm32h7_assets.elf**;
FontFlashSection 영역만 제거하여 EX-08-TouchGFX_removed.elf 파일로 만듭니다.
arm-none-eabi-objcopy -I elf32-littlearm -O elf32-littlearm
**--remove-section**=FontFlashSection .\\EX-08-TouchGFX.elf .\\**EX-08-TouchGFX_removed.elf**