Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (37 loc) · 844 Bytes

README.md

File metadata and controls

51 lines (37 loc) · 844 Bytes

MM32_LD

MM32 Linker Description Files for GNU Linker at Link Phase.

memory/MM32_4K_32K.ld ----> RAM=4K, ROM=32K

Usage

memory/*.ld IS FISRT

@Command:

arm-none-eabi-gcc XXX.o ... -Tmemory/MM32_4K_32K.ld -Tcommon/sections.ld -Tlibs/libs.ld

@Makefile:

...

LDSCRIPT = \
-Tld/memory/MM32_4K_32K.ld \
-Tld/common/sections.ld \
-Tld/libs/libs.ld 

...

LDFLAGS = $(MCU) --specs=nano.specs $(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections

...

Tree List

│ README.md
│  
├─common            # Common party
│  └─ sections.ld        
│
├─libs              # Libs/Third-party 
│  └─ libs.ld      
│
└─memory            # Chip Memory
   ├─ MM32_2K_16K.ld
   ├─ ...
   └─ MM32_128K_512K.ld