2021-06-20 15:04:39 +07:00
|
|
|
CFLAGS += \
|
|
|
|
-mcpu=rx64m \
|
|
|
|
-misa=v2 \
|
2021-06-26 22:42:27 +09:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_RX65X \
|
|
|
|
-DIR_USB0_USBI0=IR_PERIB_INTB185 \
|
|
|
|
-DIER_USB0_USBI0=IER_PERIB_INTB185 \
|
|
|
|
-DIEN_USB0_USBI0=IEN_PERIB_INTB185
|
2021-06-20 15:04:39 +07:00
|
|
|
|
|
|
|
MCU_DIR = hw/mcu/renesas/rx/rx65n
|
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = $(BOARD_PATH)/r5f565ne.ld
|
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
FREERTOS_PORT = RX600
|
|
|
|
|
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = R5F565NE
|
|
|
|
JLINK_IF = JTAG
|
|
|
|
|
|
|
|
# For flash-pyocd target
|
|
|
|
PYOCD_TARGET =
|
|
|
|
|
|
|
|
# flash using rfp-cli
|
|
|
|
flash: $(BUILD)/$(PROJECT).mot
|
2021-06-27 23:39:50 +09:00
|
|
|
rfp-cli -device rx65x -tool e2l -if fine -fo id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auth id FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF -auto $^
|