newflash. avrdude dumps core trying to send this hex file. default tip
author"Darron Broad" <darron@kewl.org>
Wed, 17 Feb 2016 04:45:01 +0000
changeset 2 fcbaca19a971
parent 1 f70f4b7b8728
newflash. avrdude dumps core trying to send this hex file.
Makefile
--- a/Makefile	Tue Feb 16 09:48:14 2016 +0000
+++ b/Makefile	Wed Feb 17 04:45:01 2016 +0000
@@ -70,6 +70,10 @@
 # <plib.h> either use -fgnu89-inline for gcc or --allow-multiple-definition for ld
 CFLAGS  += -fgnu89-inline
 
+# MPIDE avrdude
+AVRDUDE := /opt/mpide-0150-linux64-20150820/hardware/tools/avrdude
+AVRCONF := /opt/mpide-0150-linux64-20150820/hardware/tools/avrdude.conf
+
 ifneq (,$(wildcard $(PIC32)))
 build:		init $(TARGET)
 else
@@ -92,7 +96,13 @@
 install:	build
 
 program:	build
-		pload program /dev/ttyAMA0 $(TARGET) 24
+		pload program /dev/ttyACM0 $(TARGET) 32
+
+avrdude:	build
+		$(AVRDUDE) -C $(AVRCONF) -p pic32 -D -P /dev/ttyACM0 -b 115200 -c stk500v2 -U flash:w:$(TARGET)
+
+pic32prog:	build
+		pic32prog -d /dev/ttyACM0 -b 115200 $(TARGET)
 
 verify:		build