EmbeddedRelated.com
Forums
Memfault Beyond the Launch

AT91SAM USB to Serial configuration problem

Started by "Staley, Julia" July 29, 2010
I am trying to get the sample USB Enumeration project (AT91SAM9261)
working and wondered if anyone successfully got it working or

Has a working version of the driver? I also updated the product ID in
main.c to be 6119h not the 0001h that the code came with...

When I install the sample 6119.inf I get an error saying it cannot start
error code 10..

; $Id: 6119.inf,v 1.1.2.1 2006/12/05 08:33:25 danielru Exp $

[Version] ;
Version section

Signature="$Chicago$" ; All Windows versions

Class=Ports ; This is
a serial port driver

ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} ;
Associated GUID

Provider=%ATMEL% ; Driver is provided
by ATMEL

DriverVer /12/2006,1.1.1.5 ; Driver version 1.1.1.5
published on 23 February 2007

[DestinationDirs] ;
DestinationDirs section

DefaultDestDir ; Default
install directory is \drivers or \IOSubSys

[Manufacturer] ;
Manufacturer section

%ATMEL%=AtmelMfg ; Only one
manufacturer (ATMEL), models section is named

; AtmelMfg

[AtmelMfg] ; Models
section corresponding to ATMEL

%USBtoSerialConverter%=USBtoSer.Install,USB\VID_03EB&PID_6119 ;
Identifies a device with ATMEL Vendor ID (03EBh) and

; Product ID equal to 6119h. Corresponding Install section

; is named USBtoSer.Install

[USBtoSer.Install] ;
Install section

include=mdmcpq.inf

CopyFiles=USBtoSer.CopyFiles

AddReg=USBtoSer.AddReg ;
Registry keys to add are listed in USBtoSer.AddReg

[USBtoSer.CopyFiles]

usbser.sys,,,0x00000002

[USBtoSer.AddReg] ; AddReg
section

HKR,,DevLoader,,*ntkern ;

HKR,,NTMPDriver,,usbser.sys

HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[USBtoSer.Install.Services] ;
Services section

AddService=usbser,0x00000002,USBtoSer.AddService ; Assign
usbser as the PnP driver for the device

[USBtoSer.AddService] ;
Service install section

DisplayName=%USBSer% ; Name
of the serial driver

ServiceType=1 ;
Service kernel driver

StartType=3 ; Driver
is started by the PnP manager

ErrorControl=1 ; Warn
about errors

ServiceBinary=%12%\usbser.sys ; Driver
filename

[Strings] ;
Strings section

ATMEL="ATMEL Corp." ; String
value for the ATMEL symbol

USBtoSerialConverter="AT91 USB to Serial Converter" ; String
value for the USBtoSerialConverter symbol

USBSer="USB Serial Driver" ; String
value for the USBSer symbol

Also when I look at the hardware->property->device driver it looks like
it points to usbccgp.sys when I really should be pointing to
usbser.sys????

- JStaley
I have no problem of using the following 6119.inf for my At91SAM7SE-EK eva board, which has a AT91SAM7SE512 MCU. The only change I made is to rename the file to be usbser.inf and put it together with usbser.sys file in a folder on desktop. When I was asked to provide a driver, I direct to this folder. The first time, the same problem occurred, as Julia said. But when I did a second installation, it is OK. The driver was installed properly. But I have not test the USB serial port by writing a PC software to communicate with MCU via USB.
--- In A..., "Staley, Julia" wrote:
>
> I am trying to get the sample USB Enumeration project (AT91SAM9261)
> working and wondered if anyone successfully got it working or
>
> Has a working version of the driver? I also updated the product ID in
> main.c to be 6119h not the 0001h that the code came with...
>
>
>
> When I install the sample 6119.inf I get an error saying it cannot start
> error code 10..
>
>
>
> ; $Id: 6119.inf,v 1.1.2.1 2006/12/05 08:33:25 danielru Exp $
>
>
>
> [Version] ;
> Version section
>
> Signature="$Chicago$" ; All Windows versions
>
> Class=Ports ; This is
> a serial port driver
>
> ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} ;
> Associated GUID
>
> Provider=%ATMEL% ; Driver is provided
> by ATMEL
>
> DriverVer /12/2006,1.1.1.5 ; Driver version 1.1.1.5
> published on 23 February 2007
>
>
>
> [DestinationDirs] ;
> DestinationDirs section
>
> DefaultDestDir ; Default
> install directory is \drivers or \IOSubSys
>
>
>
> [Manufacturer] ;
> Manufacturer section
>
> %ATMEL%=AtmelMfg ; Only one
> manufacturer (ATMEL), models section is named
>
>
> ; AtmelMfg
>
>
>
> [AtmelMfg] ; Models
> section corresponding to ATMEL
>
> %USBtoSerialConverter%=USBtoSer.Install,USB\VID_03EB&PID_6119 ;
> Identifies a device with ATMEL Vendor ID (03EBh) and
>
>
> ; Product ID equal to 6119h. Corresponding Install section
>
>
> ; is named USBtoSer.Install
>
>
>
> [USBtoSer.Install] ;
> Install section
>
> include=mdmcpq.inf
>
> CopyFiles=USBtoSer.CopyFiles
>
> AddReg=USBtoSer.AddReg ;
> Registry keys to add are listed in USBtoSer.AddReg
>
>
>
> [USBtoSer.CopyFiles]
>
> usbser.sys,,,0x00000002
>
>
>
> [USBtoSer.AddReg] ; AddReg
> section
>
> HKR,,DevLoader,,*ntkern ;
>
> HKR,,NTMPDriver,,usbser.sys
>
> HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
>
>
>
> [USBtoSer.Install.Services] ;
> Services section
>
> AddService=usbser,0x00000002,USBtoSer.AddService ; Assign
> usbser as the PnP driver for the device
>
>
>
> [USBtoSer.AddService] ;
> Service install section
>
> DisplayName=%USBSer% ; Name
> of the serial driver
>
> ServiceType=1 ;
> Service kernel driver
>
> StartType=3 ; Driver
> is started by the PnP manager
>
> ErrorControl=1 ; Warn
> about errors
>
> ServiceBinary=%12%\usbser.sys ; Driver
> filename
>
>
>
> [Strings] ;
> Strings section
>
> ATMEL="ATMEL Corp." ; String
> value for the ATMEL symbol
>
> USBtoSerialConverter="AT91 USB to Serial Converter" ; String
> value for the USBtoSerialConverter symbol
>
> USBSer="USB Serial Driver" ; String
> value for the USBSer symbol
>
>
>
>
>
>
>
> Also when I look at the hardware->property->device driver it looks like
> it points to usbccgp.sys when I really should be pointing to
> usbser.sys????
>
>
>
> - JStaley
>


Memfault Beyond the Launch