Removed ITCM_RAM warning by defining the region.

This commit is contained in:
blckmn 2017-12-22 09:20:40 +11:00
parent 9e26a9822b
commit 7036ad9074
3 changed files with 11 additions and 3 deletions

View File

@ -274,15 +274,17 @@ $(TARGET_LST): $(TARGET_ELF)
$(V0) $(OBJDUMP) -S --disassemble $< > $@ $(V0) $(OBJDUMP) -S --disassemble $< > $@
$(TARGET_HEX): $(TARGET_ELF) $(TARGET_HEX): $(TARGET_ELF)
$(V0) $(OBJCOPY) -O ihex --set-start 0x8000000 $< $@ $(V1) echo Creating HEX $(TARGET_HEX)
$(V1) $(OBJCOPY) -O ihex --set-start 0x8000000 $< $@
$(TARGET_BIN): $(TARGET_ELF) $(TARGET_BIN): $(TARGET_ELF)
$(V0) $(OBJCOPY) -O binary $< $@ $(V1) echo Creating BIN $(TARGET_BIN)
$(V1) $(OBJCOPY) -O binary $< $@
$(TARGET_ELF): $(TARGET_OBJS) $(TARGET_ELF): $(TARGET_OBJS)
$(V1) echo Linking $(TARGET) $(V1) echo Linking $(TARGET)
$(V1) $(CROSS_CC) -o $@ $^ $(LD_FLAGS) $(V1) $(CROSS_CC) -o $@ $^ $(LD_FLAGS)
$(V0) $(SIZE) $(TARGET_ELF) $(V1) $(SIZE) $(TARGET_ELF)
# Compile # Compile
ifeq ($(DEBUG),GDB) ifeq ($(DEBUG),GDB)

View File

@ -13,6 +13,8 @@
ENTRY(Reset_Handler) ENTRY(Reset_Handler)
/* /*
0x00000000 to 0x00003FFF 16K TCM RAM,
0x08000000 to 0x080FFFFF 1024K full flash, 0x08000000 to 0x080FFFFF 1024K full flash,
0x08000000 to 0x08007FFF 32K isr vector, startup code, 0x08000000 to 0x08007FFF 32K isr vector, startup code,
0x08008000 to 0x0800FFFF 32K config, // FLASH_Sector_1 0x08008000 to 0x0800FFFF 32K config, // FLASH_Sector_1
@ -26,6 +28,7 @@ MEMORY
FLASH_CONFIG (r) : ORIGIN = 0x08008000, LENGTH = 32K FLASH_CONFIG (r) : ORIGIN = 0x08008000, LENGTH = 32K
FLASH1 (rx) : ORIGIN = 0x08010000, LENGTH = 960K FLASH1 (rx) : ORIGIN = 0x08010000, LENGTH = 960K
ITCM_RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 16K
TCM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K TCM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 256K RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 256K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K

View File

@ -13,6 +13,8 @@
ENTRY(Reset_Handler) ENTRY(Reset_Handler)
/* /*
0x00000000 to 0x00003FFF 16K TCM RAM,
0x08000000 to 0x080FFFFF 1024K full flash, 0x08000000 to 0x080FFFFF 1024K full flash,
0x08000000 to 0x08007FFF 32K isr vector, startup code, 0x08000000 to 0x08007FFF 32K isr vector, startup code,
0x08008000 to 0x0800FFFF 32K config, // FLASH_Sector_1 0x08008000 to 0x0800FFFF 32K config, // FLASH_Sector_1
@ -26,6 +28,7 @@ MEMORY
FLASH_CONFIG (r) : ORIGIN = 0x08008000, LENGTH = 32K FLASH_CONFIG (r) : ORIGIN = 0x08008000, LENGTH = 32K
FLASH1 (rx) : ORIGIN = 0x08010000, LENGTH = 960K FLASH1 (rx) : ORIGIN = 0x08010000, LENGTH = 960K
ITCM_RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 16K
TCM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K TCM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 256K RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 256K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K