打印
[Atmel]

每天跟我读点资料:ASF用户指南(九)

[复制链接]
1001|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
ddllxxrr|  楼主 | 2014-8-1 19:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
se, ST, IO, TI, ce
6.6 编程
6.6.1 windows用户
6.6.1.1 GUI为基础的解决方案
                              
打开Atmel Studio
选择"File->Open->Open Object File for Debugging" 并且选择产生.elf文件.选择"下一步"
                                  在"Device Selection"菜单下,选择相应的MCU.点击"Finish"
                                  工程可以编程和仿真了,请参考Atmel Studio getting started 和 用户指南。
6.6.1.2 AVR用户命令行解决方案
Program utilities 在Atmel Studio被安装
把atprogram.exe作为编程器(在C:\Program Files (x86)\Atmel\Atmel Studio 6.0\avrdbg)  
例如:编程at32uc3b0512 用JTAGICE3编辑器:  atprogram -t jtagice3 -i jtag -d at32uc3b0512 program -f e:\file.elf
C:\Program Files (x86)\Atmel\Atmel Studio 6.0\avrdbg>atprogram.exe
AVR Studio Command Line Interface
Copyright (C) 2011 Atmel Corporation.
Usage: atprogram [options] <command> [arguments] [<command> [arguments] ...]
Options:
-t --tool <arg> Tool name: avrdragon, avrispmk2, avrone, jtagice3,                                  jtagicemkii, qt600, stk500, stk600 or samice.
-s --serialnumber <arg> The programmer/debugger serialnumber. Must be                                  specified when more than one debugger isconnected.
-c --comport <arg> The com port to use for the programmer/debugger.
e.g. -c COM1 or -c 1
-i --interface <arg> Physical interface: aWire, debugWIRE, HVPP, HVSP,
ISP, JTAG, PDI or TPI.
-d --device <arg> Device name. E.g. atxmega128a1 or at32uc3a0256.
-v --verbose Verbose output (debug).
-h --host <arg> Target host which runs the avrdbg process.
-p --port <arg> Specify which port to use for the avrdbg process.
Ignored if the host option is not given.
-f --force Force command even if firmware is not up to date.
-cl --clock <arg> The frequency to use for communication with a
device (hz, khz, mhz, default hz). E.g. -cl 10mhz
-mb --max-baudrate <arg> The maximum baud rate for communication on awire
(Kbps).
-xr --externalreset Apply external reset when starting a session.
-dc --daisychain <args,..> Set up a JTAG daisychain. Arguments are <devices-
before devices-after instr-before instr-after>.
-tv --target-voltage <arg> Set the STK600 or STK500 target voltage (float
value).
-a0 --aref0 <arg> Set the STK600 Aref0 or STK500 aref generator
voltage (float value).
-a1 --aref1 <arg> Set the STK600 Aref1 generator voltage (float
value).
-cg --clock-generator <arg> Set the STK600 or STK500 Clock generator frequenc
(hz, khz, mhz, default hz).
--timeout <arg> Set the timeout value in seconds for commands. The
default is 180 seconds. Set to 0 for no timeout.
-q --quiet Do not display activity indicator.
-? --help Display help information.
Commands:
chiperase Full erase of chip.
erase Erase the specified memory.
help Displays help for a specific command.
info Display information about a device.
list Detect and print information about connected Atmel Tools.
program Program device with data from <file>.
read Read the contents of the memory on the device.
secure Set the security bit on UC3 and ARM devices.
verify Verify content of memory based on a file.
version Display the version.
write Write to the memory with values entered on the command line.

6.6.1.3 SAM用户命令行为基础的解决办法
        请参考Atmel SAM-BA in system programmer:
        http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx
6.6.2 Linux users
        对8bit用户,用AVRDUDE来编程(http://www.nongnu.org/avrdude/)
        对32bit用户,请参考"AVR32 Studio Users"章节,是基于GUI为基础的解决方案。
        对ARM用户,请参考SAM-BA在系统编程(http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx)
6.7AVR32 Studio用户
        32bit AVR 用户能用Atmel ASF GNU makefile 在32bit的Atmel AVR Studio.可以在AVR Studio中以解压ASF包的形式工作:
        这在应用文档"AVR32769"中描述:如何编译独立AVR32 AVR32工作室V2软件框架
        http://www.atmel.com/dyn/resources/prod_documents/doc32115.pdf.

   
           

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:http://shop34182318.taobao.com/ http://shop562064536.taobao.com

2398

主题

6950

帖子

67

粉丝