Skip to content

Commit

Permalink
Merge #19537
Browse files Browse the repository at this point in the history
19537: boards/rpi-pico: specify needed args when using jlink flasher r=dylad a=dylad

### Contribution description
This PR adds the jlink device variable and use hexfile to flash application with a jlink probe.

### Testing procedure
Attach a `jlink` probe to SWD pins.
Try to flash any app with `jlink`
`PROGRAMMER=jlink make BOARD=rpi-pico -C examples/blinky flash`

### Issues/PRs references
None.


Co-authored-by: dylad <dylan.laduranty@mesotic.com>
  • Loading branch information
bors[bot] and dylad authored May 3, 2023
2 parents 718a451 + bd5cff5 commit 2c8fc24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boards/rpi-pico/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
CPU_MODEL := RP2040
PORT_LINUX ?= /dev/ttyUSB0

ifeq ($(PROGRAMMER),jlink)
JLINK_DEVICE = RP2040_M0_0
FLASHFILE = $(ELFFILE)
endif

0 comments on commit 2c8fc24

Please sign in to comment.