background image

32166A–AVR32806–06/11

Atmel Corporation

2325 Orchard Parkway
San Jose, CA 95131
USA

Tel

:  (+1)(408) 441-0311

Fax

: (+1)(408) 487-2600 

www.atmel.com

Atmel Asia Limited

Unit 1-5 & 16, 19/F
BEA Tower, Millennium City 5
418 Kwun Tong Road
Kwun Tong, Kowloon
HONG KONG

Tel

: (+852) 2245-6100

Fax

: (+852) 2722-1369

Atmel Munich GmbH

Business Campus
Parkring 4
D-85748 Garching b. Munich
GERMANY

Tel

: (+49) 89-31970-0

Fax

: (+49) 89-3194621

Atmel Japan

9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
JAPAN

Tel

: (+81)(3) 3523-3551

Fax

: (+81)(3) 3523-7581

© 2011 Atmel Corporation. All rights reserved. 

Atmel

®

, Atmel logo and combinations thereof, AVR

®

, AVR

®

 logo, and others are registered trademarks or trademarks of Atmel Corpo-

ration or its subsidiaries. Windows

®

 and others are registered trademarks or trademarks of Microsoft Corporation in U.S. and or other 

countries. Other terms and product names may be trademarks of others.

Disclaimer:

 The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to 

any intellectual property right is granted by this document or in connection with the sale of Atmel products. 

EXCEPT AS SET FORTH IN THE ATMEL 

TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY 
EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, 
INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROF-
ITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL 
HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

 Atmel makes no representations or warranties with respect to the accuracy or com-

pleteness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. 
Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suit-
able for, and shall not be used in, automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applica-
tions intended to support or sustain life.

Содержание AT32UC3C0128C

Страница 1: ...fault is pressing the joystick on Atmel EVK1100 and Atmel EVK1101 SW2 button on Atmel EVK1104 PB0 button on Atmel UC3C EK HBUTTON0 button on Atmel UC3 C2 Xplained board stored in user page Protected b...

Страница 2: ...er Atmel AT32UC3C0256C rev D and higher Atmel AT32UC3C0128C rev D and higher Atmel AT32UC3C064C rev D and higher Atmel AT32UC3C1512C rev D and higher Atmel AT32UC3C1256C rev D and higher Atmel AT32UC3...

Страница 3: ...sheet http www atmel com dyn resources prod_documents doc32117 pdf Atmel AVR UC3 A0 A1 A3 B0 B1 DFU boot loader up to version 1 0 3 http www atmel com dyn resources prod_documents doc7745 pdf Atmel AV...

Страница 4: ...cated at the beginning of the on chip flash array where an area of up to 64KB can be configured to be write protected by the internal flash controller The boot loader protected size must be at least t...

Страница 5: ...by two 32 bit configuration words located at the end of the flash user page Figure 6 1 The Atmel AT32UC3C0512C non volatile memory layout with USB DFU boot loader 6 2 Configuration The boot loader con...

Страница 6: ...GURATION memory with BatchISP see Section 7 4 2 or execute Program Fuses on the appropriate ISP AVR 32 bit target in AVR32 Studio see Section 7 5 2 From the running embedded application use the WGPB E...

Страница 7: ...to know whetherto start the USB DFU ISP or the application Refer to Table 6 2 for a description of the user page Configuration Word2 Setting this bit to 0 allows the application to save a GPIO pin an...

Страница 8: ...C8 of the boot loader user page Configuration Word2 usingthe polynomial P X X8 X2 X 1 This CRC is used to check the validity of Configuration Word2 15 8 ISP_IO_COND_PIN The GPIO pin number to test dur...

Страница 9: ...e ISP_IO_COND_EN configuration bit is 1 and if so launches either the USB DFU ISP or the application according to the ISP I O configuration specified by the user page Configuration Word2 If ISP_IO_CON...

Страница 10: ...D_EN and ISP_FORCE are respectively bit 8 and bit 9 of the user page configuration word1 ISP_IO_COND_EN 1 Reset Vector 80000000h Bootloader 80000000h ISP_FORCE 1 on DFU Reset Cause POR or EXT or OCD o...

Страница 11: ...sequent reset thanks to an appropriate linker script the C99 standard requires a null pointer to compare unequally to a pointer to any object or function Thus it is recommended that applications leave...

Страница 12: ...ogram the boot loader configuration words in the user page avr32program program finternal 0x80000000 cint e v O0x808001F8 1 Fbin at32uc3c isp_cfg 1 1 2 bin Note See Section 7 3 for a description of ho...

Страница 13: ...SP_FORCE field is either activated 1 or not 0 and set at bit 9 of ISP Configuration Word1 When ISP_FORCE is set to 1 ISP Configuration Word1 is always 0xE11EFE with bit 8 not set yet Otherwise ISP Con...

Страница 14: ...his step Configuration Word2 is always 0x929E with bit 16 unset 7 3 2 2 Step 2 Setting the ISP_IO_COND_LEVEL field As mentioned in Table 6 2 the ISP_IO_COND_LEVEL field is either high 1 or low 0 and s...

Страница 15: ...fg bin for example Issue the following command through a hardware debugger such as AVR JTAGICE mkII or AVR ONE avr32program program finternal 0x80000000 512Kb cxtal e v O0x808001F8 Fbin isp_mycfg bin...

Страница 16: ...USB cable and then activate the ISP as described in Section 7 2 For instance with the default con figuration on the Atmel UC3C EK board press the reset push button then keep PB0 pressed while releasi...

Страница 17: ...11 Atmel AVR32806 On the next screen select Install from a list or specific location advanced and click Next Then request a search in the usb folder of the Atmel FLIP installation directory as shown...

Страница 18: ...vironment variable When running BatchISP on an AT32UC3xxxxx the target part has to be specified with device at32uc3xxxxx and the communication port with hardware usb Commands can then be placed after...

Страница 19: ...buffer with a byte value LOADBUFFER in_elffile in_hexfile loads the ISP buffer from an input file PROGRAM programs the selected address range with the ISP buffer VERIFY verifies that the selected addr...

Страница 20: ...t manufacture Add1 2 the product number Add3 the product revision USER This memory is the internal flash user page of the target with addresses from 0 to the size of the user page minus 1 For further...

Страница 21: ...et will appear in this pane and its properties will be displayed in the Proper ties pane where it can be renamed In general tab From the Details tab in the Properties pane select USB DFU for the debug...

Страница 22: ...To achieve this a trampoline section is placed at the reset vector 80000000h This section simply jumps to the beginning of the application 80002000h To program an application with Atmel AVR JTAGICE mk...

Страница 23: ...ne is not programmed and a warning is issued by BatchISP to tell the user that the binary image may contain an application linked directly at the reset vector without the trampo line Consequently when...

Страница 24: ...An application can be programmed and run with BatchISP with boot loader by issuing make isp program run for a GCC project For IAR projects which are configured to use the Atmel AVR JTAGICE mkII hardw...

Страница 25: ...11 Atmel AVR32806 batchisp device at32uc3c0512c hardware usb operation erase f memory flash blankcheck loadbuffer TARGET_BPATH hex program verify start reset 0 This requires the generation of an Intel...

Страница 26: ...n the binary image of the part at the location of the trampoline 7 6 3 Project customization All the following parts are related to the ASF architecture 7 6 3 1 Adding or removing the trampoline To ad...

Страница 27: ...debug purposes when using a hardware debugger To add the boot loader binary image to a GCC project do the following in config mk Add common services usb class dfu device atmel isp avr32 to the INC_PA...

Страница 28: ...mpile it by using GCC or IAR and program it as any other project with Atmel AVR JTAGICE mkII These changes will automatically be applied to the boot loader binary image used for IAR projects 7 6 3 3 E...

Страница 29: ...of the boot loader on the Atmel AT32UC3C0256C Atmel s Bootloader Reset vector is 80000000h Application is 80002000h Free Flash Space MCU Address Space Application Applicative Bootloader BOOT PROT 8 k...

Страница 30: ...and higher Atmel AVR UC3 A3 rev E and higher Atmel AVR UC3 B0 B1 rev F and higher Atmel AVR UC3 C rev D and higher Devices delivered with version 1 1 3 Atmel AVR UC3 C rev D and higher 8 1 3 Version 1...

Страница 31: ...being referred to as Configuration Word2 Supported devices Atmel AVR UC3 A0 A1 rev H and higher Atmel AVR UC3 A3 rev E and higher Atmel AVR UC3 B0 B1 rev F and higher Atmel AVR UC3 C rev D and higher...

Страница 32: ...32UC3A0 1 rev E Atmel AT32UC3B rev B Known bugs and limitations The device erratum titled On AT32UC3A0512 and AT32UC3A1512 corrupted read in flash after FLASHC WP EP EA WUP EUP com mands may happen is...

Страница 33: ...ic prior written permission 4 ATMEL grants developer a non exclusive limited license to use the Software as a development platform solely in connection with an Atmel AVR product Atmel Product THIS SOF...

Страница 34: ...ation How do I do that A Remove the boot loader with a hardware debugger by unprotecting and erasing the MCU flash array with avr32program chiperase The trampoline should then be removed from your pro...

Страница 35: ...t the referring page numbers in this section refer to this document The referring revisions in this section are referring to the document revision 10 1 Rev A 06 11 1 Initial revision for boot loader 1...

Страница 36: ...36 32166A AVR32806 06 11 Atmel AVR32806...

Страница 37: ...or in connection with the sale of Atmel products EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EX...

Отзывы: