mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
33195d7965
Using `PROGRAMMER=bmp` has been proven to work reliably at least on SAMD21, SAMD5x and SAML21. Since using unsupported programmers is treated as a warning, this change only reduces the noise in the shell a bit and is not a functional change. [1]: https://black-magic.org/supported-targets.html
23 lines
654 B
Makefile
23 lines
654 B
Makefile
ifneq (,$(filter samd51%,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAMD51
|
|
endif
|
|
ifneq (,$(filter same54%,$(CPU_MODEL)))
|
|
CFLAGS += -DCPU_SAME54
|
|
endif
|
|
|
|
CFLAGS += -DCPU_COMMON_SAMD5X
|
|
|
|
# Slot size is determined by "((total_flash_size - RIOTBOOT_LEN) / 2)".
|
|
# If RIOTBOOT_LEN uses an uneven number of flashpages, the remainder of the
|
|
# flash cannot be divided by two slots while staying FLASHPAGE_SIZE aligned.
|
|
RIOTBOOT_LEN ?= 0x4000
|
|
|
|
BACKUP_RAM_ADDR = 0x47000000
|
|
BACKUP_RAM_LEN = 0x2000
|
|
|
|
include $(RIOTCPU)/sam0_common/Makefile.include
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
|
|
|
# The Black Magic Probe has tested to work fine on SAMD5x
|
|
PROGRAMMERS_SUPPORTED += bmp
|