ff5d39529c
- modified pin type from pin_obj_t to machine_pin_obj_t - created machine_pin.c - implemented basic version of make-pins.py to genertate pins.c/.h files automatically; the only alternate function currently supported is GPIO - added af.csv files for all supported MCUs - replaced pins.c/pins.h files with pin.csv for all boards - implemented on/off/high/low/value/init methods - Implemented IN/OUT/OPEN_DRAIN modes - modified LDFLAGS for DEBUG build to get usefull .elf file for debugging Signed-off-by: Philipp Ebensberger
27 lines
815 B
Makefile
27 lines
815 B
Makefile
MCU_SERIES = MIMXRT1062
|
|
MCU_VARIANT = MIMXRT1062DVJ6A
|
|
|
|
JLINK_PATH ?= /media/RT1060-EVK/
|
|
JLINK_COMMANDER_SCRIPT = $(BUILD)/script.jlink
|
|
|
|
|
|
ifdef JLINK_IP
|
|
JLINK_CONNECTION_SETTINGS = -IP $(JLINK_IP)
|
|
else
|
|
JLINK_CONNECTION_SETTINGS = -USB
|
|
endif
|
|
|
|
|
|
deploy_jlink: $(BUILD)/firmware.hex
|
|
$(Q)$(TOUCH) $(JLINK_COMMANDER_SCRIPT)
|
|
$(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)
|
|
|
|
deploy: $(BUILD)/firmware.bin
|
|
cp $< $(JLINK_PATH)
|