1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #12266 from francois-berder/pic32-wifire-jlink

boards: pic32-wifire: Add support for JLink programmer
This commit is contained in:
Kaspar Schleiser 2019-09-26 13:23:52 +02:00 committed by GitHub
commit 2096d96a09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,28 @@
export CPU = mips_pic32mz
export CPU_MODEL=p32mz2048efg100
export APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S export APPDEPS += $(RIOTCPU)/$(CPU)/$(CPU_MODEL)/$(CPU_MODEL).S
export USE_UHI_SYSCALLS = 1 export USE_UHI_SYSCALLS = 1
PORT_LINUX ?= /dev/ttyUSB0 PORT_LINUX ?= /dev/ttyUSB0
include $(RIOTMAKE)/tools/serial.inc.mk include $(RIOTMAKE)/tools/serial.inc.mk
# pic32prog # use pic32prog by default to program this board
# PROGRAMMER ?= pic32prog
# For PICkit3:
# ifeq ($(PROGRAMMER),pic32prog)
# * Connect the chipKIT-Wi-Fire to USB # pic32prog
# * Connect the PICkit3 to ICSP holes #
# * https://docs.creatordev.io/wifire/guides/wifire-programming/ # For PICkit3:
# * The triangle `▶` goes into the port number 1 (a hole with a square around it) #
# opposite side of the JP1 ICSP text. # * Connect the chipKIT-Wi-Fire to USB
include $(RIOTMAKE)/tools/pic32prog.inc.mk # * Connect the PICkit3 to ICSP holes
# * https://docs.creatordev.io/wifire/guides/wifire-programming/
# * The triangle `▶` goes into the port number 1 (a hole with a square around it)
# opposite side of the JP1 ICSP text.
include $(RIOTMAKE)/tools/pic32prog.inc.mk
else ifeq ($(PROGRAMMER),jlink)
FLASHFILE ?= $(HEXFILE)
export JLINK_DEVICE := PIC32MZ2048EFG100
export JLINK_IF := JTAG
include $(RIOTMAKE)/tools/jlink.inc.mk
endif