Skip to content

Commit fc12f4d

Browse files
committed
pic32prog.inc.mk: add support for pic32prog flasher
https://github.com/sergev/pic32prog For PICkit3 it requires having it with scripting mode firware. Source ------ RIOT-OS#6092 (comment)
1 parent 6379d8c commit fc12f4d

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

makefiles/tools/pic32prog.inc.mk

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# pic32prog flasher
2+
# =================
3+
#
4+
# https://github.com/sergev/pic32prog
5+
#
6+
# Allow flashing pic32 boards using:
7+
# * Microchip PICkit2
8+
# * Microchip PICkit3 with script firmware
9+
#
10+
#
11+
# PICkit-3
12+
# --------
13+
#
14+
# Changing the firmware to 'scripting mode'
15+
# Should be done from a Windows computer as described here
16+
#
17+
# http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit3%20Programmer%20Application%20v3.10.zip
18+
#
19+
# ### Setup summary
20+
#
21+
# * Extract PICkit3 Programmer Application Setup v3.10.zip
22+
# * setup.exe
23+
# * Run PICkit3
24+
# * Tools/Download PICkit Operating System
25+
# * Select C://Program Files/Microchip/PICkit3/PK3OSV020005.hex
26+
#
27+
28+
PIC32PROG = $(RIOTTOOLS)/pic32prog/pic32prog
29+
30+
FLASHFILE ?= $(HEXFILE)
31+
32+
FLASHER ?= $(PIC32PROG)
33+
FFLAGS ?= $(FLASHFILE)
34+
35+
# No reset command
36+
RESET ?=
37+
RESET_FLAGS ?=
38+
39+
# Compile pic32prog if using the one provided in RIOT
40+
ifeq ($(PIC32PROG),$(FLASHER))
41+
FLASHDEPS += $(PIC32PROG)
42+
endif

0 commit comments

Comments
 (0)