2019-02-07 05:28:01 +00:00
|
|
|
# By default this board is configured to use mboot which must be deployed first
|
|
|
|
USE_MBOOT ?= 1
|
|
|
|
|
2020-01-30 03:40:38 +00:00
|
|
|
# By default the filesystem is in external QSPI flash. But by setting the
|
|
|
|
# following option this board puts some code into external flash set in XIP mode.
|
2019-03-04 11:32:44 +00:00
|
|
|
# USE_MBOOT must be enabled; see f769_qspi.ld for code that goes in QSPI flash
|
2020-01-30 03:40:38 +00:00
|
|
|
USE_QSPI_XIP ?= 0
|
|
|
|
CFLAGS += -DUSE_QSPI_XIP=$(USE_QSPI_XIP)
|
2019-03-04 11:32:44 +00:00
|
|
|
|
|
|
|
# MCU settings
|
2016-12-12 05:36:35 +00:00
|
|
|
MCU_SERIES = f7
|
|
|
|
CMSIS_MCU = STM32F769xx
|
2017-06-28 06:42:40 +01:00
|
|
|
MICROPY_FLOAT_IMPL = double
|
2017-03-30 07:58:45 +01:00
|
|
|
AF_FILE = boards/stm32f767_af.csv
|
2019-02-07 05:28:01 +00:00
|
|
|
|
|
|
|
ifeq ($(USE_MBOOT),1)
|
2020-01-30 03:40:38 +00:00
|
|
|
ifeq ($(USE_QSPI_XIP),1)
|
2019-03-04 11:32:44 +00:00
|
|
|
|
2020-01-30 03:40:38 +00:00
|
|
|
# When using Mboot and QSPI-XIP the text is split between internal and external
|
|
|
|
# QSPI flash, and the filesystem is in internal flash between the bootloader and
|
|
|
|
# the main program text.
|
2019-03-04 11:32:44 +00:00
|
|
|
LD_FILES = boards/STM32F769DISC/f769_qspi.ld
|
|
|
|
TEXT0_ADDR = 0x08020000
|
|
|
|
TEXT1_ADDR = 0x90000000
|
|
|
|
TEXT0_SECTIONS = .isr_vector .text .data
|
|
|
|
TEXT1_SECTIONS = .text_qspi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2020-01-30 03:40:38 +00:00
|
|
|
# When using Mboot but not QSPI-XIP all the text goes together after the bootloader
|
|
|
|
# (at same location as when QSPI-XIP is enabled so the same Mboot can be used for
|
|
|
|
# either configuration) and the filesystem is in external flash.
|
2019-02-07 05:28:01 +00:00
|
|
|
LD_FILES = boards/stm32f769.ld boards/common_blifs.ld
|
|
|
|
TEXT0_ADDR = 0x08020000
|
2019-03-04 11:32:44 +00:00
|
|
|
|
|
|
|
endif
|
2019-02-07 05:28:01 +00:00
|
|
|
else
|
2019-03-04 11:32:44 +00:00
|
|
|
|
2020-01-30 03:40:38 +00:00
|
|
|
# When not using Mboot (and so no ability to load text into QSPI) all the text goes
|
|
|
|
# together at the start of internal flash, and the filesystem is in external flash.
|
|
|
|
LD_FILES = boards/stm32f769.ld boards/common_basic.ld
|
2018-03-27 11:24:15 +01:00
|
|
|
TEXT0_ADDR = 0x08000000
|
2019-03-04 11:32:44 +00:00
|
|
|
|
2019-02-07 05:28:01 +00:00
|
|
|
endif
|
2019-03-04 12:34:03 +00:00
|
|
|
|
|
|
|
# MicroPython settings
|
|
|
|
MICROPY_PY_LWIP = 1
|
2019-06-24 08:48:28 +01:00
|
|
|
MICROPY_PY_USSL = 1
|
|
|
|
MICROPY_SSL_MBEDTLS = 1
|