0d7366c912
- Moves definition of BOARD_FLASH_SIZE and other header files related to flash configuration into the Makefile. - Adds board specific clock_config.h. - Adds board.h, pin_mux.h, and peripherals.h as they are required by NXP MCU SDK in order to use our own clock_config.h. - Renames board specific FlexSPI configuration files. - Updates flash frequency of MIMXRT1020_EVK - Creates separated flash_config files for QSPI NOR and QSPI Hyper flash. - Unifies VFS start address to be @ 1M for 1010 and 1020 boards. - Unifies 1050EVK boards - Adds support to both NOR and HyperFlash on boards with both capabilities. - Adds automatic FlexRAM initialization to start-up code based on linker script and NXP HAL. - Applies code formatting to all files in mimxrt port. With this change the flash configuration is restructured and organized. This simplifies the configuration process and provides a better overview of each board's settings. With the integration of clock_config.h, board.h, pin_mux.h, and peripherals.h we gain better control of the settings and clock configurations. Furthermore the implementation of an explicit FlexRAM setup improves the system performance and allows for performance tuning. Signed-off-by: Philipp Ebensberger
30 lines
939 B
Makefile
30 lines
939 B
Makefile
MCU_SERIES = MIMXRT1011
|
|
MCU_VARIANT = MIMXRT1011DAE5A
|
|
|
|
MICROPY_FLOAT_IMPL = single
|
|
MICROPY_PY_MACHINE_SDCARD = 0
|
|
BOARD_FLASH_TYPE ?= qspi_nor
|
|
BOARD_FLASH_SIZE ?= 0x1000000 # 16MB
|
|
|
|
JLINK_PATH ?= /media/RT1010-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)
|