Title: JTAGICE mk II
1JTAGICE mk II
2JTAGICE mk II
- Atmel's Official programmer for 8 32 MCUs
- Works with AVR Studio 4 and AVR32 Studio 2
- GUI based programmer/debugger
- avr32program
- installed with AVR32Studio (/bin)?
- command line access to programming and insight
into AVR32 development boards
3JTAGICE mk II
4Notice the connector placement
5avr32program
- use from inside of cygwin or a windows command
window - avr32program -h for options help
- avr32program help commands for command help
6options
-h, --help Display
this help and exit. -l, --list
Detect and print information about
available
USB programmers. -v, --verbose ltlevelgt
Display diagnostic messages. -V,
--version Print the version
number. -c, --comport ltportgt Connect
to given serial port. If ltportgt is
'USBserial', the
programmer with the given
serial number will be
used. The default is to
connect to a USB device.
-x, --xmlpath ltdirectorygt Specify path to XML
part description files. -p, --programmer
ltprogrammergt Specify which kind of programmer to
use.
Can be either jtagicemkii (the default),
stk600 or avrone. -G, --gui
Indicates that program is being
called from a
graphical user interface. Changes
progress
reporting. -D, --daisy
ltdevbefore,devafter,bitsbefore,bitsaftergt
Specify JTAG daisy-chain parameters. --part
ltpartnamegt Specify part name,
fail unless target matches.
7commands
chiperase Perform a JTAG
chip_erase command. cpuinfo
Get CPU info from the CONFIG0 and CONFIG1
registers. erase -f lttype_at_addressgt -u -o
-a Perform a flash chip erase. flashtest
-f lttype_at_addressgt -e test type test options
Perform test(s) on flash. getfreq ltclockgt
... getvtg ltvoltagegt ... halt
Stop CPU execution. Causes the CPU to
enter debug mode. help
Get help on using avr32program. program -F
ltformatgt -O ltoffsetgt -s ltsizegt -v -f
lttype_at_addressgt -e -R -r -c
ltclocksourcegt ltfilegt
Program the memory with contents from
ltfilegt. read -F ltformatgt -o ltfilegt -O
ltoffsetgt -s ltsizegt -C
Read ltsizegt bytes from memory at ltoffsetgt.
8commands
readfuses -f type_at_address ltfusegt ...
Read flash fuses. readregs
ltreggt ... Read CPU registers. reset
-r --runltaddressgt Reset CPU. Optionally
cause CPU to
start executing after reset. run -R -O
ltoffsetgt Cause CPU to start
executing. secureflash
Protect chip by setting security bit. selftest
Run board selftest. setfreq
ltclockgtltfreqgt ... Set ltclockgt's frequency
to ltfreqgt. setvtg ltvoltagegtltvalgt ... Set
voltage ltvoltagegt to value ltvalgt. verify -F
ltformatgt -O ltoffsetgt -s ltsizegt ltfilegt
Compare the contents of
the given file to
the memory at ltoffsetgt. writefuses -f
lttype_at_addressgt ltfusegtltvalgt ...
Write ltvalgt to flash fuse
ltfusegt. writeregs ltreggtltvalgt ... Write
ltvalgt to register ltreggt.
9program command
program -F ltformatgt -O ltoffsetgt -s ltsizegt
-v -f lttype_at_addressgt -e -R -r
ltfilegt Program
the memory with contents from ltfilegt.
The format of the file is
determined from its
suffix unless specified. If no suffix is
recognized, ELF is
assumed. -F, --format ltformatgt Specify
format of file. Supported input
formats are 'bin' (raw binary) and
'elf' (ELF). -O, --offset ltoffsetgt The
contents of the file will be written to
memory at the ltoffsetgt
address. The default
offset is 0 for binary files. For ELF files,
the default offset
is the ELF file's entry
point. -s, --size ltsizegt
Specify the number of bytes to write. The
default is to write the
entire contents of
the file. -v, --verify
Verify memory after programming. -e, --erase
If programming flash, unlock and
erase flash
sectors before programming. -f, --flash
lttype_at_addressgt
Notify avr32program of a lttypegt flash memory
atltaddressgt
lttypegt possible values is currently limited to
'cfi' and
'internal'. -R, --reset
Reset CPU after programming memory. -r, --run,
--runltoffsetgt Cause CPU to start executing
after programming.
ltaddressgt is an optional address to start
executing from. If
--reset is also specified,
execution will start after reset. -c,
--clock Specify CPU clock
source to use when programming
(support limited to UC3 parts).
Valid clock
sources are 'xtal' (crystal connected to osc0),
'extclk' (external
clock connected to osc0),
'int' (internal RC oscillator).
10program example
avr32program program -e -v -fcfi_at_0 u-boot.bin
-e unlock and erase before programming
-v verify memory after programming
-f format type cfi _at_ 0
u-boot.bin file to get data from (assumption is
file type is bin)?