mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 00:41:17 +01:00
Replace elf2uf2 usage with picotool, fix compilation when arm g++ is installed, adjust documentation to new workflow, picotool udev warning (thanks to crasbe)
26 lines
708 B
Makefile
26 lines
708 B
Makefile
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
|
|
|
|
PROGRAMMERS_SUPPORTED := picotool openocd jlink
|
|
PROGRAMMER ?= picotool
|
|
OPENOCD_DEBUG_ADAPTER ?= dap
|
|
|
|
include $(RIOTMAKE)/arch/cortexm.inc.mk
|
|
|
|
ifneq (,$(filter periph_pio pio_%,$(USEMODULE)))
|
|
include $(RIOTMAKE)/tools/pioasm.inc.mk
|
|
endif
|