Documentation:AVR32 Embedded Development/Avr32program
From AVRFreaks Wiki
[edit] Programming target
The application avr32program can be used to program the device. Here is an example on how to program target with a given elf file:
avr32program program -e -v -fcfi@0,8Mb myProgram.elf
'-f cfi@0,8Mb'tells the programmer that the flash starts at address 0
and that the size is 8 Mb. The size may also be postfixed with Kb. Use 'cfi' for external flash (eg AT32AP series) and 'internal' for internal flash such as that found inside the UC3 family.
Most often your flash starts at address 0, though if you have a non-standard setup this base address may change.
'-e'is used to erase the flash before programming it.'-v'is used to verify the flash programming.
[edit] Getting help
For more information about avr32program usage and parameters please use the built in help command:
avr32program --help
For a list of all available commands:
avr32program help commands
[edit] Other commands
Test flash:
avr32program flashtest
Write <val> to flash fuse <fuse>:
avr32program writefuses -f type@adress <fuse>=<val> ...
Read from flash fuse <fuse>:
avr32program readfuses -f type@adress <fuse> ...
Retrieve CPU info:
avr32program cpuinfo
Stop execution on target:
avr32program halt
Reset target:
avr32program reset
Start execution on target:
avr32program run [-R] [-O <offset>]
Compare the contents of the given file to the memory at <offset>
avr32program verify [-F <format>] [-O <offset>] [-s <size>] <file>
Perform a flash chip erase
avr32program erase [-f <type>@adress] [-u]
Write <val> to register <reg>
avr32program writeregs <reg>=<val> ...
Read CPU registers
avr32program readregs <reg> ...
Read <size> bytes frin memory at <offset>
avr32program read [-F <format>] [-O <offset>] [-s <size>] [-v]
Program the memory with contents from <file>
avr32program [-F <format>] [-O <offset>] [-s <size>] [-v] [-f <type>@adress] [-e] [-R] [-r] <file>
