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
This commit is contained in:
parent
57f5080e5b
commit
d852ca2b21
2
dist/tools/pic32prog/.gitignore
vendored
Normal file
2
dist/tools/pic32prog/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pic32prog
|
||||||
|
bin/
|
||||||
19
dist/tools/pic32prog/Makefile
vendored
Normal file
19
dist/tools/pic32prog/Makefile
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
PKG_NAME = pic32prog
|
||||||
|
PKG_URL = https://github.com/sergev/pic32prog
|
||||||
|
PKG_VERSION = b9f8db3b352804392b02b42475fc42874ac8bf04
|
||||||
|
PKG_LICENSE = GPL-2
|
||||||
|
PKG_BUILDDIR = bin
|
||||||
|
|
||||||
|
# Building it requires some dependencies, on ubuntu:
|
||||||
|
#
|
||||||
|
# sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev
|
||||||
|
|
||||||
|
all: git-download
|
||||||
|
@echo "[INFO] compiling pic32prog from source now"
|
||||||
|
@env -i PATH=$(PATH) TERM=$(TERM) make -C $(PKG_BUILDDIR)
|
||||||
|
@mv $(PKG_BUILDDIR)/pic32prog pic32prog
|
||||||
|
|
||||||
|
distclean::
|
||||||
|
@rm -f pic32prog
|
||||||
|
|
||||||
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
@ -12,6 +12,11 @@ $(RIOTTOOLS)/bossa/bossac:
|
|||||||
@make -C $(RIOTTOOLS)/bossa
|
@make -C $(RIOTTOOLS)/bossa
|
||||||
@echo "[INFO] bossac binary successfully build!"
|
@echo "[INFO] bossac binary successfully build!"
|
||||||
|
|
||||||
|
$(RIOTTOOLS)/pic32prog/pic32prog: $(RIOTTOOLS)/pic32prog/Makefile
|
||||||
|
@echo "[INFO] $(@F) binary not found - building it from source now"
|
||||||
|
make -C $(@D)
|
||||||
|
@echo "[INFO] $(@F) binary successfully build!"
|
||||||
|
|
||||||
$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
|
$(RIOTTOOLS)/edbg/edbg: $(RIOTTOOLS)/edbg/Makefile
|
||||||
@echo "[INFO] edbg binary not found - building it from source now"
|
@echo "[INFO] edbg binary not found - building it from source now"
|
||||||
CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
|
CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user