Skip to content

Commit 6379d8c

Browse files
committed
pic32prog: add pic32prog programming tool
pic32prog is a program for flashing pic32 boards from command line on Linux. It works with: * Microchip PICkit2 * Microchip PICkit3 with script firmware. * Other ones: https://github.com/sergev/pic32prog/wiki
1 parent 6cbef7b commit 6379d8c

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

dist/tools/pic32prog/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pic32prog
2+
bin/

dist/tools/pic32prog/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
PKG_NAME = pic32prog
2+
PKG_URL = https://github.com/sergev/pic32prog
3+
PKG_VERSION = f5d27d6c9506bc0d1f2053002e2aadad1ac424cd
4+
PKG_LICENSE = GPL-2
5+
PKG_BUILDDIR = bin
6+
7+
# For building it requires some dependencies, on ubuntu:
8+
#
9+
# sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev
10+
11+
all: git-download
12+
@echo "[INFO] compiling pic32prog from source now"
13+
@env -i PATH=$(PATH) TERM=$(TERM) make -C $(PKG_BUILDDIR)
14+
@mv $(PKG_BUILDDIR)/pic32prog pic32prog
15+
16+
distclean::
17+
@rm -f pic32prog
18+
19+
include $(RIOTBASE)/pkg/pkg.mk

makefiles/tools/targets.inc.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ $(RIOTTOOLS)/bossa/bossac:
1212
@make -C $(RIOTTOOLS)/bossa
1313
@echo "[INFO] bossac binary successfully build!"
1414

15+
$(RIOTTOOLS)/pic32prog/pic32prog: $(RIOTTOOLS)/pic32prog/Makefile
16+
@echo "[INFO] $(@F) binary not found - building it from source now"
17+
make -C $(@D)
18+
@echo "[INFO] $(@F) binary successfully build!"
19+
1520
$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
1621
@echo "[INFO] edbg binary not found - building it from source now"
1722
CC= CFLAGS= make -C $(RIOTTOOLS)/edbg

0 commit comments

Comments
 (0)