Skip to content

Commit bc579c0

Browse files
committed
skip link option --print-memory-usage for renesas rx since it does not support this option
1 parent 77f0726 commit bc579c0

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

.idea/runConfigurations/rt1060_redlink.xml renamed to .idea/runConfigurations/rt1060_nxplink.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rules.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ endif
7272

7373
LDFLAGS += $(CFLAGS) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections
7474

75+
# Some toolchain such as renesas rx does not support --print-memory-usage flags
76+
ifneq ($(FAMILY),rx)
77+
LDFLAGS += -Wl,--print-memory-usage
78+
endif
79+
7580
ifdef LD_FILE
7681
LDFLAGS += -Wl,-T,$(TOP)/$(LD_FILE)
7782
endif
@@ -169,7 +174,7 @@ $(BUILD)/$(PROJECT).hex: $(BUILD)/$(PROJECT).elf
169174

170175
$(BUILD)/$(PROJECT).elf: $(OBJ)
171176
@echo LINK $@
172-
@$(LD) -o $@ $(LDFLAGS) $^ -Wl,--print-memory-usage -Wl,--start-group $(LIBS) -Wl,--end-group
177+
@$(LD) -o $@ $(LDFLAGS) $^ -Wl,--start-group $(LIBS) -Wl,--end-group
173178

174179
endif
175180

hw/bsp/imxrt/boards/mimxrt1010_evk/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set(MCU_VARIANT MIMXRT1011)
22

33
set(JLINK_DEVICE MIMXRT1011DAE5A)
44
set(PYOCD_TARGET mimxrt1010)
5+
set(NXPLINK_DEVICE MIMXRT1011xxxxx:EVK-MIMXRT1010)
56

67
function(update_board TARGET)
78
target_sources(${TARGET} PUBLIC

hw/bsp/imxrt/boards/mimxrt1060_evk/board.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set(MCU_VARIANT MIMXRT1062)
22

33
set(JLINK_DEVICE MIMXRT1062xxx6A)
44
set(PYOCD_TARGET mimxrt1060)
5-
set(NXPLS_DEVICE MIMXRT1062xxxxA:EVK-MIMXRT1060)
5+
set(NXPLINK_DEVICE MIMXRT1062xxxxA:EVK-MIMXRT1060)
66

77
function(update_board TARGET)
88
target_sources(${TARGET} PUBLIC

hw/bsp/imxrt/boards/mimxrt1064_evk/board.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set(MCU_VARIANT MIMXRT1064)
22

33
set(JLINK_DEVICE MIMXRT1064xxx6A)
44
set(PYOCD_TARGET mimxrt1064)
5+
set(NXPLINK_DEVICE MIMXRT1064xxxxA:EVK-MIMXRT1064)
56

67
function(update_board TARGET)
78
target_sources(${TARGET} PUBLIC

hw/bsp/imxrt/family.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function(family_configure_target TARGET)
137137
# LinkServer has a bug that can only execute with full path otherwise it throws:
138138
# realpath error: No such file or directory
139139
execute_process(COMMAND which LinkServer OUTPUT_VARIABLE LINKSERVER_PATH OUTPUT_STRIP_TRAILING_WHITESPACE)
140-
add_custom_target(${TARGET}-redlink
141-
COMMAND ${LINKSERVER_PATH} flash ${NXPLS_DEVICE} load $<TARGET_FILE:${TARGET}>
140+
add_custom_target(${TARGET}-nxplink
141+
COMMAND ${LINKSERVER_PATH} flash ${NXPLINK_DEVICE} load $<TARGET_FILE:${TARGET}>
142142
)
143143

144144
endfunction()

0 commit comments

Comments
 (0)