首页 产品中心 支付方式 联系我们
AVR32应用笔记 AVR32单片机快速入门 BatchISP及相关介绍



AVR32 UC3 系列控制器在出厂时在内部Flash 里已经固化了一个USB DFU Bootloader,可以通过AVR32 UC3系列控制器的USB接口,利用内部固化的USB Bootloader 进行ISP下载,这种下载方式叫做BatchISP。

· ISP: In-System Programming(在系统编程)
· BatchISP: Batch In-System Programming(批量在线编程,ATMEL的用意应该是指它可用于批量编程吧)
· BOD: Brown-Out Detector(掉电检测)
· USB: Universal Serial Bus(通用串行总线)
· DFU: Device Firmware Upgrade(设备固件升级)
· avr32program: AVR32 Part Programmer for JTAGICE mkII
· FLIP: Flexible In-System Programmer(灵活的在系统编程)

The bootloader manages the USB communication protocol and performs read/writeoperations from/to the on-chip memories.
The bootloader is located at the beginning of the on-chip flash array where an area of upto 64 kB can be configured to be write-protected by the internal flash controller. The boot loader protected size must be at least the size of the boot loader . OnAT32UC3xxxxx, it is configured to 8 kB.

Figure 5-1. Physical Environment


BatchISP is the PC tool that allows to program a part using the AT32UC3 USB DFU bootloader. It is compatible with Windows and Linux. It is integrated into AVR32Studio thanks to a plugin.
Note that all GCC make files of the UC3 software framework have programming goals using BatchISP.

An AT32UC3 part having the bootloader programmed resets as any other part at 80000000h. Bootloader execution begins here. The bootloader first performs the boot process to know whether it should start the USB DFU ISP or the application. If the
tested conditions indicate that the USB DFU ISP should be started, then execution continues in the bootloader area, i.e. between 80000000h and 80002000h, else the bootloader launches the application at 80002000h.
The conditions tested by the boot process are configured by the general-purpose fuse bits located outside of the MCU address space and by a 32-bit configuration word located at the end of the flash User page.

Figure 6-1. AT32UC3A0512 Non-Volatile Memory Layout with USB DFU Bootloader