From bd5cff5748f57f7bd5eb04de2c78e73f79df40d8 Mon Sep 17 00:00:00 2001 From: dylad Date: Tue, 2 May 2023 19:12:26 +0200 Subject: [PATCH] boards/rpi-pico: specify needed args when using jlink flasher Signed-off-by: dylad --- boards/rpi-pico/Makefile.include | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boards/rpi-pico/Makefile.include b/boards/rpi-pico/Makefile.include index 10814e8919ee..6b08fb9eb9c4 100644 --- a/boards/rpi-pico/Makefile.include +++ b/boards/rpi-pico/Makefile.include @@ -1,2 +1,7 @@ CPU_MODEL := RP2040 PORT_LINUX ?= /dev/ttyUSB0 + +ifeq ($(PROGRAMMER),jlink) + JLINK_DEVICE = RP2040_M0_0 + FLASHFILE = $(ELFFILE) +endif