15
32166A–AVR32806–06/11
Atmel AVR32806
7.3.2.5 Step 5: Program ISP Configuration Word2 to the user page
•
Using avr32program:
–
Create a binary file made of one 32-bit word with the value 0x929E0E62, for
example; name that binary file isp_mycfg_w2.bin, for example
–
Issue the following command through a hardware debugger (such as
avr32program program -finternal@0x80000000,512Kb -cxtal -e -v -O0x808001F8 -Fbin
isp_mycfg_w2.bin
•
Using BatchISP (the boot loader must be previously programmed and activated):
–
For each byte of ISP Configuration Word2, issue the following commands (using the
computed ISP Configuration Word2 from step 4 (0x929E0E62)):
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1F8
0x1F8 fillbuffer 0x92 program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1F9
0x1F9 fillbuffer 0x9E program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FA
0x1FA fillbuffer 0x0E program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FB
0x1FB fillbuffer 0x62 program
7.3.3 Programming the two ISP configuration words in one pass
•
Using avr32program:
–
Create a binary file made of two 32-bit words with the value 0x929E0E62E11EFDD9,
for example; name that binary file isp_mycfg.bin, for example
–
Issue the following command through a hardware debugger (such as
or
avr32program program -finternal@0x80000000,512Kb -cxtal -e -v -O0x808001F8 -Fbin
isp_mycfg.bin
•
Using BatchISP (the boot loader must be previously programmed and activated):
–
For each byte of the ISP configuration words, issue the following commands (using
the computed ISP Configuration Word1 (0xE11EFDD9) and the ISP Configuration
Word2 (0x929E0E62)):
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1F8
0x1F8 fillbuffer 0x92 program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1F9
0x1F9 fillbuffer 0x9E program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FA
0x1FA fillbuffer 0x0E program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FB
0x1FB fillbuffer 0x62 program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FC
0x1FC fillbuffer 0xE1 program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FD
0x1FD fillbuffer 0x1E program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FE
0x1FE fillbuffer 0xFD program
batchisp -device at32uc3c0512c -hardware usb -operation memory user addrange 0x1FF
0x1FF fillbuffer 0xD9 program
7.4 BatchISP
BatchISP is a command line tool that allows parts containing an embedded Atmel ISP to be pro-
grammed. It comes with
3. See
for download information.