# Hey Emacs, this is a -*- makefile -*- # # nucleo144_f767zi_1.0.makefile # # based on tawaki (STM32F7) # only compatible with ChibiOS # BOARD=nucleo BOARD_VERSION=144_f767zi BOARD_DIR=$(BOARD)/$(BOARD_VERSION) BOARD_CFG=\"boards/$(BOARD_DIR)/$(BOARD)$(BOARD_VERSION).h\" ARCH=chibios $(TARGET).ARCHDIR = $(ARCH) RTOS=chibios MCU=cortex-m7 ## FPU on F7 USE_FPU=softfp USE_FPU_OPT= -mfpu=fpv5-d16 USE_LTO=yes $(TARGET).CFLAGS += -DPPRZLINK_ENABLE_FD ############################################################################## # Architecture or project specific options # # Define project name here (target) PROJECT = $(TARGET) # Project specific files and paths (see Makefile.chibios for details) CHIBIOS_BOARD_PLATFORM = STM32F7xx/platform.mk CHIBIOS_BOARD_LINKER = STM32F76xxI.ld CHIBIOS_BOARD_STARTUP = startup_stm32f7xx.mk # ITCM flash is a special flash that allow faster operations # At the moment it is not possible to flash the code in this mode using dfu-util # but it should work with the BlackMagicProbe or STLINK # By default, normal flash is used ifeq ($(USE_ITCM),1) $(TARGET).CFLAGS += -DUSE_ITCM=1 DFU_ADDR = 0x00200000 else $(TARGET).CFLAGS += -DUSE_ITCM=0 DFU_ADDR = 0x08000000 endif ############################################################################## # Compiler settings # # default flash mode is via usb dfu bootloader # possibilities: DFU-UTIL, SWD, STLINK FLASH_MODE ?= STLINK HAS_LUFTBOOT = FALSE # # default LED configuration # RADIO_CONTROL_LED ?= 3 BARO_LED ?= none AHRS_ALIGNER_LED ?= none GPS_LED ?= 2 SYS_TIME_LED ?= 1 # # default UART configuration (modem, gps, spektrum) # MODEM_PORT ?= UART3 MODEM_BAUD ?= B57600 GPS_PORT ?= UART7 GPS_BAUD ?= B57600 RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT ?= UART6 RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT ?= UART8 # single mode SBUS_PORT ?= UART8 # dual mode SBUS1_PORT ?= UART8 SBUS2_PORT ?= UART6 # # default actuator configuration # # you can use different actuators by adding a configure option to your firmware section # e.g. # ACTUATORS ?= actuators_pwm