10年前文章_UC3A/B 开发环境设置

本文介绍了AVR32开发环境的安装,包括Windows和Linux环境。Windows下需安装toolchain和mkII lite V2驱动、集成开发环境,还可选择安装DFU驱动;Linux下安装xerces - c,展开相关压缩包安装rpm,运行avr32studio,支持autotools。此外,还给出了查看烧写器信息、擦除flash等常用命令。

大部分设置和 Z32U 交叉编译环境的配置 类似

Windows 环境

步骤二: 安装 toolchain 和mkII lite V2 的驱动

安装运行 avr32-gnu-toolchain-2.0.3.exe,按提示安装,安装完成后插入 mkII lite, 自动搜索驱动

步骤三: 安装集成开发环境

运行AVR32Studio-2.0.2-Setup.exe, 安装完成后确保toolchain和cygwin 的路径在环境变量PATH 中, 即PATH 路径至少是这样的

C:\Program Files\Atmel\AVR Tools\AVR32 Toolchain\bin;C:\Program Files\Atmel\AVR Tools\AVR32 Toolchain\avr32\bin;C:\Program Files\Atmel\AVR Tools\AVR32 Toolchain\libexec\gcc\avr32\4.2.2;

使用下面的命令确认路径配置正确

ld –version

as –version

cc1 –version

如果都是 atmel 的版本,就是正确的

按”软件操作手册1.1.pdf” 的指导,完成开发环境的配置

步骤四(可选): 安装DFU 驱动

安装 Flip_Installer_3_3_2.exe ,里面包含 DFU 的驱动

linux 安装

linux  下安装比较简单,运行下列步骤

安装   xerces-c

yum install xerces-c

展开avr32_gnu_toolchain_fedora_8.zip, 安装所有的rpm

rpm -i avr32-binutils-2.17.atmel.1.2.6-1.fc8.i386.rpm avr32-gcc-newlib-4.2.2-atmel.1.0.8_1.fc8.i386.rpm  avr32-gdb-6.7.1.atmel.1.0.3-1.fc8.i386.rpm  avr32gdbproxy-3.0.11-1.fc8.i386.rpm avr32headers-1.9.11-1.fc8.noarch.rpm avr32-linux-binutils-2.17.atmel.1.2.6-1.fc8.i386.rpm avr32-linux-gcc-4.2.2-atmel.1.0.8_1.fc8.i386.rpm avr32-linux-gdb-6.7.1.atmel.1.0.3-1.fc8.i386.rpm avr32parts-1.9.9-1.fc8.noarch.rpm avr32program-3.0.4-1.fc8.i386.rpm avr32trace-2.0.3-1.fc8.i386.rpm  avrfwupgrade-1.0.3-1.fc8.i386.rpm libavr32ocd-3.0.8-1.fc8.i386.rpm libavr32sim-0.2.1-1.fc8.i386.rpm  libavrtools-3.0.9-1.fc8.i386.rpm  libelfdwarfparser-2.0.5-1.fc8.i386.rpm

展开avr32studio-ide-R2.0.2-linux.gtk.x86.zip 直接运行 avr32studio

linux 下支持autotools, 按http://sourceware.org/eclipse/autotools/ 的安装指导安装 autotools pligin如下

Sourceware Eclipse update site: http://sourceware.org/eclipse/update

To install the update, go to: Help -> Software Updates -> Find and install… There, click on “Search for new features to install” and hit next If you don’t already have the Sourceware Eclipse site set up, hit “New Remote Site…” and put in the URL given above. Check off the new site you added and then hit “Finish” Choose to install autotools and hit Finish

在autotools 模式下调试器可用

常用命令

查看烧写器信息  avr32program -l -v

擦除flash

avr32program chiperase

烧写 dfu bootloader,

avr32program chiperase

avr32program program -finternal@0×80000000,512Kb -cxtal -e -v -O0×80000000 -Fbin at32uc3a-isp-1.0.0.bin
avr32program program -finternal@0×80000000,512Kb -cxtal -e -v -O0×808001FC -Fbin at32uc3a-isp_cfg-1.0.1.bin

使用 batch isp 烧写应用

batchisp -device at32uc3b0256 -hardware usb -operation erase f memory flash blankcheck loadbuffer myapp.elf program verify start reset 0

转载于:https://www.cnblogs.com/hshy/p/10927762.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值