2020-04-14 15:08:59 -04:00
|
|
|
MCU_SERIES = MIMXRT1021
|
|
|
|
MCU_VARIANT = MIMXRT1021DAG5A
|
|
|
|
|
2021-05-26 05:29:34 -04:00
|
|
|
MICROPY_FLOAT_IMPL = double
|
2021-08-01 05:20:39 -04:00
|
|
|
MICROPY_PY_MACHINE_SDCARD = 1
|
2022-06-22 15:26:54 -04:00
|
|
|
MICROPY_HW_FLASH_TYPE ?= qspi_nor_flash
|
2021-08-20 15:41:58 -04:00
|
|
|
MICROPY_HW_FLASH_SIZE ?= 0x800000 # 8MB
|
|
|
|
|
|
|
|
MICROPY_HW_SDRAM_AVAIL = 1
|
|
|
|
MICROPY_HW_SDRAM_SIZE = 0x2000000 # 32MB
|
2021-07-20 02:18:18 -04:00
|
|
|
|
2021-07-03 12:39:17 -04:00
|
|
|
MICROPY_PY_LWIP = 1
|
|
|
|
MICROPY_PY_USSL = 1
|
|
|
|
MICROPY_SSL_MBEDTLS = 1
|
|
|
|
|
2020-04-14 15:08:59 -04:00
|
|
|
JLINK_PATH ?= /media/RT1020-EVK/
|
2020-08-21 10:03:21 -04:00
|
|
|
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink
|
|
|
|
|
|
|
|
ifdef JLINK_IP
|
|
|
|
JLINK_CONNECTION_SETTINGS = -IP $(JLINK_IP)
|
|
|
|
else
|
2021-08-20 15:41:58 -04:00
|
|
|
JLINK_CONNECTION_SETTINGS = -USB
|
2020-08-21 10:03:21 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
deploy_jlink: $(BUILD)/firmware.hex
|
2021-08-20 15:41:58 -04:00
|
|
|
$(Q)$(TOUCH) $(JLINK_COMMANDER_SCRIPT)
|
2020-08-21 10:03:21 -04:00
|
|
|
$(ECHO) "ExitOnError 1" > $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(ECHO) "speed auto" >> $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(ECHO) "r" >> $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(ECHO) "st" >> $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(ECHO) "loadfile \"$(realpath $(BUILD)/firmware.hex)\"" >> $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(ECHO) "qc" >> $(JLINK_COMMANDER_SCRIPT)
|
|
|
|
$(JLINK_PATH)JLinkExe -device $(MCU_VARIANT) -if SWD $(JLINK_CONNECTION_SETTINGS) -CommanderScript $(JLINK_COMMANDER_SCRIPT)
|
2020-04-14 15:08:59 -04:00
|
|
|
|
|
|
|
deploy: $(BUILD)/firmware.bin
|
|
|
|
cp $< $(JLINK_PATH)
|