项目作者: PYGC

项目描述 :
MM32 Linker Description File for the link stage of the GNU linker.
高级语言:
项目地址: git://github.com/PYGC/mm32_ld.git
创建时间: 2021-01-13T08:49:23Z
项目社区:https://github.com/PYGC/mm32_ld

开源协议:

下载


MM32_LD

MM32 Linker Description Files for GNU Linker at Link Phase.

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

Usage

memory/*.ld IS FISRT

@Command:

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

@Makefile:

  1. ...
  2. LDSCRIPT = \
  3. -Tld/memory/MM32_4K_32K.ld \
  4. -Tld/common/sections.ld \
  5. -Tld/libs/libs.ld
  6. ...
  7. LDFLAGS = $(MCU) --specs=nano.specs $(LDSCRIPT) $(LIBDIR) $(LIBS) -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref -Wl,--gc-sections
  8. ...

Tree List

  1. README.md
  2. ├─common # Common party
  3. └─ sections.ld
  4. ├─libs # Libs/Third-party
  5. └─ libs.ld
  6. └─memory # Chip Memory
  7. ├─ MM32_2K_16K.ld
  8. ├─ ...
  9. └─ MM32_128K_512K.ld