1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/nucleo-f767zi/Makefile.include
Francisco Molina 1dec5ba61b boards/common/stm32f7: add correct flash bank configuration
openocd configuration file for `stm32f7` relies on probing to find out
FLASH_ADDR. On nucleo-f767zi board probing (`flash probe 0`) fails when
`srst` is asserted, but `srst` needs to be asserted to be able to flash
the `BOARD` when sleeping or after a hardfault.

To circumvent this in boards/common/stm32/dist/stm32f7.cfg we define a new
flash bank with the appropriate fash start address and specify that this is
the flash bank to be used as default configuration instead of the
default by setting FLASH_BANK=4
2020-01-27 22:32:06 +01:00

13 lines
683 B
Makefile

# load the common Makefile.include for Nucleo boards
include $(RIOTBOARD)/common/nucleo144/Makefile.include
# openocd configuration file for `stm32f7` relies on probing to find out
# FLASH_ADDR. On this board probing (`flash probe 0`) fails when `srst` is
# asserted, but `srst` needs to be asserted to be able to flash the `BOARD`
# when sleeping or after a hardfault.
# To circumvent this in boards/common/stm32/dist/stm32f7.cfg we define a new
# flash bank with the appropriate flash start address and specify that this is
# the flash bank to be used as default configuration instead of the default (1)
FLASH_BANK ?= 4
$(call target-export-variables,flash flash-only,FLASH_BANK)