AVR32 Embedded Development/Avr32program
From AVRFreaks Wiki
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 myProgram.elf
'-e'
is used to erase the flash before programming it.'-v'
is used to verify the flash programming.
Example on how to specify the flash address and size when programming the AP7:
avr32program program -e -v -f0,8Mb myProgram.elf
'-f 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.
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
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>