2021-06-01 21:31:30 +02:00
|
|
|
PICO_DEBUG ?=
|
|
|
|
ROM_LEN ?= 2097152 # = 2 MiB used in the RPi Pico
|
|
|
|
ROM_OFFSET := 256 # bootloader size
|
|
|
|
RAM_LEN := 270336 # = 264 KiB
|
|
|
|
ROM_START_ADDR := 0x10000000
|
|
|
|
RAM_START_ADDR := 0x20000000
|
|
|
|
|
|
|
|
CFLAGS += -D$(CPU_MODEL)
|
|
|
|
CFLAGS += -DROM_START_ADDR=$(ROM_START_ADDR)
|
|
|
|
CFLAGS += -DRAM_START_ADDR=$(RAM_START_ADDR)
|
|
|
|
|
|
|
|
INCLUDES += -I$(RIOTCPU)/rpx0xx/include
|
|
|
|
|
|
|
|
VECTORS_O ?= $(BINDIR)/cpu/vectors.o
|
|
|
|
VECTORS_FILE := $(RIOTCPU)/rpx0xx/vectors.c
|
|
|
|
|
2021-12-05 00:52:33 +01:00
|
|
|
PROGRAMMERS_SUPPORTED := elf2uf2 openocd jlink
|
|
|
|
PROGRAMMER ?= elf2uf2
|
2021-06-01 21:31:30 +02:00
|
|
|
OPENOCD_DEBUG_ADAPTER ?= dap
|
|
|
|
|
|
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
2021-12-16 14:55:38 +01:00
|
|
|
|
|
|
|
ifneq (,$(filter periph_pio pio_%,$(USEMODULE)))
|
|
|
|
include $(RIOTMAKE)/tools/pioasm.inc.mk
|
|
|
|
endif
|