2021-06-20 15:04:39 +07:00
|
|
|
DEPS_SUBMODULES += hw/mcu/renesas/rx
|
|
|
|
|
|
|
|
# Cross Compiler for RX
|
|
|
|
CROSS_COMPILE = rx-elf-
|
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-nostartfiles \
|
|
|
|
-ffunction-sections \
|
|
|
|
-fdata-sections \
|
|
|
|
-fshort-enums \
|
|
|
|
-mlittle-endian-data \
|
2021-07-01 00:19:03 +09:00
|
|
|
-DSSIZE_MAX=__INT_MAX__
|
2021-06-28 12:49:30 +07:00
|
|
|
|
|
|
|
SRC_C += \
|
|
|
|
src/portable/renesas/usba/dcd_usba.c \
|
2021-12-27 01:22:57 +09:00
|
|
|
src/portable/renesas/usba/hcd_usba.c \
|
2021-06-28 12:49:30 +07:00
|
|
|
$(MCU_DIR)/vects.c
|
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/$(BOARD_PATH) \
|
|
|
|
$(TOP)/$(MCU_DIR)
|
|
|
|
|
|
|
|
SRC_S += $(MCU_DIR)/start.S
|
|
|
|
|
2021-06-20 15:04:39 +07:00
|
|
|
$(BUILD)/$(PROJECT).mot: $(BUILD)/$(PROJECT).elf
|
|
|
|
@echo CREATE $@
|
|
|
|
$(OBJCOPY) -O srec -I elf32-rx-be-ns $^ $@
|
2021-06-28 12:53:53 +07:00
|
|
|
|
|
|
|
# flash using rfp-cli
|
|
|
|
flash-rfp: $(BUILD)/$(PROJECT).mot
|
|
|
|
rfp-cli -device rx65x -tool e2l -if fine -fo id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auto $^
|