mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
35 lines
794 B
Makefile
35 lines
794 B
Makefile
|
# pic32prog flasher
|
||
|
# =================
|
||
|
#
|
||
|
# https://github.com/sergev/pic32prog
|
||
|
#
|
||
|
# Allow flashing pic32 boards using:
|
||
|
# * Microchip PICkit2
|
||
|
# * Microchip PICkit3 with script firmware
|
||
|
#
|
||
|
#
|
||
|
# PICkit-3
|
||
|
# --------
|
||
|
#
|
||
|
# This requires changing the firmware to 'scripting mode'
|
||
|
# Should be done from a Windows computer/virtual machine as described here
|
||
|
#
|
||
|
# https://github.com/RIOT-OS/RIOT/blob/master/dist/tools/pic32prog/doc.md
|
||
|
|
||
|
RIOT_PIC32PROG = $(RIOTTOOLS)/pic32prog/pic32prog
|
||
|
PIC32PROG ?= $(RIOT_PIC32PROG)
|
||
|
|
||
|
FLASHFILE ?= $(HEXFILE)
|
||
|
|
||
|
FLASHER ?= $(PIC32PROG)
|
||
|
FFLAGS ?= $(FLASHFILE)
|
||
|
|
||
|
# No reset command, but the board resets on terminal open
|
||
|
RESET ?=
|
||
|
RESET_FLAGS ?=
|
||
|
|
||
|
# Compile pic32prog if using the one provided in RIOT
|
||
|
ifeq ($(PIC32PROG),$(RIOT_PIC32PROG))
|
||
|
FLASHDEPS += $(RIOT_PIC32PROG)
|
||
|
endif
|