|
Page date Fri Jul 22 13:08:39 2011 . | Improve this page |
Atmel provides a functional bootloader for its UC3 processors. It was intended for reprogramming the firmware after deployment, but it can be also used during development, as a more convenient alternative to JTAG.
The bootloader occupies the first 8 KB of the flash space, and should be programmed using the JTAG.
The Atmel tools to manage chip programming are available in the AVR perspective:
Although it seems to be included in the next step, to avoid any surprises, it is recommended to first completely erase the chip before any programming.
Be sure you select Chip Erase…, not just Erase…, to completely erase the chip, including any security bits.
For reference, on my machine this translated to:
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --gui --part UC3A3256 chiperase
For reference, on my machine this translated to:
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 chiperase
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 program
-finternal@0x80000000,512Kb -cxtal -e -v -O0x80000000 -Fbin
C:\Users\LIVIUI~1\AppData\Local\Temp\at32uc3a3-isp-1.0.3.bin9020454716059643611.bin
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 program
-finternal@0x80000000,512Kb -cxtal -e -v -O0x808001FC -Fbin
C:\Users\LIVIUI~1\AppData\Local\Temp\userConf7033399909011047483,dat
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 writefuses
-finternal@0x80000000,512Kb gp=0xfff7ffff
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 reset
cmd.exe /C avr32program -c USB:0700000053E7 -pjtagicemkii --part UC3A3256 run
Configuring the USB DFU Programmer is certainly possible, but unfortunately it is not obvious, probably due to some bugs.
The first step is to add a new AVR Target. In the properties page, the Details tab, should allow to select the
If these selections are not available, the trick is to play with existing config until they become available. For example you can first configure the JTAGICE mkII first and select the Device.
The device will start to execute the new image as soon as programming is completed.