[riot-notifications] [RIOT-OS/RIOT] doc/mega-xplained: add JTAG/Atmel-ICE instructions (#11209)

Gaƫtan Harter notifications at github.com
Tue Mar 26 21:17:31 CET 2019

cladmi commented on this pull request.

> +     avrdude -p m1284p -c atmelice -U hfuse:w:0x99:m
+     avrdude -p m1284p -c atmelice -U lfuse:w:0xE2:m
+2. After the fuses are set, flash the application.
+   If using the Buspirate:
+     make BOARD=mega-xplained -C examples/hello-world flash
+   If using the Atmel-ICE:
+     make BOARD=mega-xplained PROGRAMMER=atmelice -C examples/hello-world flash

With the current configuration, it does not work:

avrdude -p m1284p -c atmelice -P /dev/ttyUSB0 -F -U flash:w:/home/harter/work/git/RIOT/tests/bloom_bytes/bin/mega-xplained/tests_bloom_bytes.hex
avrdude: jtag3_open_common(): JTAGICE3/EDBG port names must start with "usb"

avrdude done.  Thank you.

/home/harter/work/git/RIOT/tests/bloom_bytes/../../Makefile.include:531: recipe for target 'flash' failed
make: *** [flash] Error 1
make: Leaving directory '/home/harter/work/git/RIOT/tests/bloom_bytes'

PROGRAMMER_FLAGS in the board `Makefile.include` should be put overwritable:

``` diff
diff --git a/boards/mega-xplained/Makefile.include b/boards/mega-xplained/Makefile.include
index 9a8d7e5f4..4d7e1b138 100644
--- a/boards/mega-xplained/Makefile.include
+++ b/boards/mega-xplained/Makefile.include
@@ -23,7 +23,7 @@ export DEBUGGER = $(DIST_PATH)/debug.sh $(DEBUGSERVER_FLAGS) $(DIST_PATH) $(DEBU
 # PROGRAMMER defaults to the Bus Pirate ISP
 export PROGRAMMER ?= buspirate
-export PROGRAMMER_FLAGS = -P /dev/ttyUSB0
+export PROGRAMMER_FLAGS ?= -P /dev/ttyUSB0
 OFLAGS += -j .text -j .data
 export FFLAGS += -p m1284p -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:$(HEXFILE)
and then the following works
BOARD=mega-xplained PROGRAMMER=atmelice PROGRAMMER_FLAGS= make -C tests/bloom_bytes/ flash term

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190326/74f43a03/attachment.html>

More information about the notifications mailing list