打印
[Atmel]

Installing the SAM-BA USB CDC Driver

[复制链接]
1072|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
Atmel ARM microcontrollers contain a boot program called SAM-BA. The SAM-BA boot program can be loaded to the Flash memory of the microcontroller by closing a jumper on the microcontroller board and then powering up the board.
Examples: AT91SAM7S uses the TST (TEST) pin to load SAM-BA (e.g. AT91SAM7S256);
ATSAM3U microcontrollers use the ERASE pin to load SAM-BA (e.g. AT91SAM3U2C).
Once the SAM-BA boot software is loaded to Flash memory, the microcontroller will then run the SAM-BA software when powered up. Microcontrollers that have a USB port and SAM-BA running can then be connected to a PC and programmed via a USB cable using the Atmel SAM-BA PC application.
This article shows how to install the driver in Windows 7 that the SAM-BA PC software uses.
SAM-BA USB CDC DriverWhen the Atmel ARM based board is plugged into a PC USB port, the driver makes the Atmel USB microcontroller configure as a USB CDC port that will appear as a COM port in Windows.
The driver will be copied to the PC if the SAM-BA PC software is installed. It can also be downloaded here:
atm6124_cdc.inf – Atmel Windows USB CDC driver
(To save the above driver, right-click and choose Save Link As... or whatever save item your browser uses)
Installing the Driver1. Plug the Microcontroller Board into the PCAfter plugging in the microcontroller (and powering it if externally powered), Windows will try to install a driver.
Automatic driver installation will fail.


2. Open Device ManagerClick the Windows Start button and then right-click Computer. Click Properties on the menu that pops up.
In the window that opens, click "Device Manager".
The Atmel microcontroller running SAM-BA will be displayed as an "unknown device".




3. Update the DriverRight-click the unknown device in the device manager and then click Update Driver Software... on the menu that pops up.
In the dialog box that pops up, click Browse my computer for driver software.
Click the Browse... button.
Use the dialog box to navigate to the folder containing the driver.
The correct path will now appear in the dialog box. Click the Next button at the bottom of the dialog box.
In the dialog box that pops up, click Install this driver software anyway.
The driver may take a while to install.
You will be notified when installation is complete.
Back in the Device Manager window, the new device and COM port number assigned to it can be seen.




Testing the Driver and Microcontroller BoardAfter installing the driver, it can be tested by using the SAM-BA application software on the PC, or by using a terminal emulator as shown here.
Use a terminal software program such as Bray's Terminal.
Connecting with the Terminal EmulatorStart the terminal program, select the COM port shown in device manager, e.g. COM3. Set the Baud rate to 115200 and then click the Connect button.
Requesting the SAM-BA VersionTo test that the terminal emulator can communicate with the SAM-BA software running on the microcontroller, the version of the SAM-BA software can be requested. This is done by sending a specific message to the microcontroller / SAM-BA software.
At the bottom of the terminal window, click the +CR checkbox. This will insert a carriage return character at the end of the message to send.
Now type V# into the Send field and then click the Send button to send the SAM-BA version request message.


SAM-BA Version ResponseThe SAM-BA software will respond with the SAM-BA version information as shown below.

相关帖子

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

本版积分规则

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

2398

主题

6950

帖子

67

粉丝