Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15482361
  • 博文数量: 2005
  • 博客积分: 11986
  • 博客等级: 上将
  • 技术积分: 22535
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-17 13:56
文章分类

全部博文(2005)

文章存档

2014年(2)

2013年(2)

2012年(16)

2011年(66)

2010年(368)

2009年(743)

2008年(491)

2007年(317)

分类:

2009-12-19 22:13:54

AT91SAM7S板可以使用SAM-BA?软件通过DBGU或者USB口编译。但是AT91SAM7S 系列芯片,出厂后并没有将SAM-BA Boot 固件复制到FLASH 存储器的头两个区,所以当第一次通过USB 连接目标板和PC 机的时候,需要按照“以下的步骤来复制SAM-BA Boot 固件到FLASH 并运行。

  1. 1.关闭AT91SAM7S板电源;
  2. 2.把板上的TST跳线连接;
  3. 3.打开AT91SAM7S板电源;
  4. 4.等10秒;
  5. 5.关闭AT91SAM7S板电源;
  6. 6.把板上的TST跳线断开;
  7. 7.打开AT91SAM7S板电源;
  8. 8.安装USB驱动程序:插上USB线,将提示“无法识别的硬件”,此时可以安装atm6124驱动程序
  9. 9.打开“SAM-BA GUI”,就可以接着使用USB口下载文件到AT91SAM7S板。

SAM-BA调试的硬件要求:

-
  • DBGUG的硬件要求
    • 使用3~20MHz的石英震晶(软件自调适);
  • - USB的硬件要求
    • 使用18.432MHz的石英震晶;
    • USB的PIOA16口需要上拉电阻;

http://www.olimex.com/dev/SAM-BA%20Notes.htm

SAM-BA Notes V1.0 - May 2005

The below procedure is applicable to:
AT91SAM7S32 & AT91SAM7S64 starting from rev E (product ID: 58814E)
AT91SAM7S128 & AT91SAM7S256 starting from rev C (product ID: 58818C)

Getting Started with SAM-BA on the SAM7S-EK Evaluation Kit

The AT91SAM7S-EK is ready to use the SAM-BA™ software through DBGU or USB. Before being able to use SAM-BA, a recovery procedure which consists of copying the SAM-BA Boot Assistant into Flash must be performed as follows:
  1. Power down the SAM7S-EK
  2. Close the Jumper JP5 named TST
  3. Power up the SAM7S-EK
  4. Wait 10s
  5. Power down the SAM7S-EK
  6. Remove the Jumper JP5 named TST
  7. Power up the SAM7S-EK
SAM-BA Boot Assistant is now available in the first two sectors of the on-chip flash and ready to use.
 
Then, you can start using the SAM-BA GUI to interface with the SAM-BA Boot Assistant as described in the SAM-BA User Guide available in the "on-line" help.

How to use SAM-BA on your AT91SAM7S-based devices application ?

The AT91SAM7S devices feature the System Recovery procedure which restores the SAM-BA™ Boot Assistant inside the Flash.

System Recovery Procedure 

When the TST pin is set during power-up and PGMEN0, PGMEN1 and PGMEN2 are set, the device is entering is a specific test mode and performs a SAM-BA™ Boot System Recovery which consists in copying the SAM Boot Assistant (SAM-BA™) in the first two sectors of the on-chip Flash memory. The system recovery procedure takes 10s.
In normal mode, the TST pin can be left unconnected thanks to the internal pull down.
Please note that on the SAM7S-EK, PGMEN0, PGMEN1 and PGMEN2 are set by using the internal pull-up resistors enabled by default after power-up.

SAM-BA Boot Assistant is now available in the first two sectors of the on-chip flash and ready to use. Then, you can start using the SAM-BA GUI to interface with the SAM-BA Boot Assistant as described in the SAM-BA User Guide available in the "on-line" help.

SAM-BA hardware requirements:

-
  • DBGU Requirements
    • Wide range of Quartz from 3 to 20MHz Quartz (software auto detection)
  • - USB Requirements
    • Limited to a 18.432MHz Quartz
    • PIOA16 dedicated for the USB Pull-up (refer to the AT91SAM7S-EK Board Schematics)
阅读(4118) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~