Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

given a inf file,how to edit it

Status
Not open for further replies.

lgeorge123

Full Member level 2
Full Member level 2
Joined
Jun 13, 2004
Messages
130
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
Hong Kong
Activity points
1,403
edit inf file

the following file is given in elektor electronics using in multi-programmer. The problem is how to edit it when I want to update the windows driver ??????
that is , I install this driver and at next time editing this inf file and then updating this windows driver in start>control panel>system>device manager>usb programmer>update driver. Actually I wish to update this driver to carry out to
install a new tusb3210.bin file.

;
; TI Application Firmware Loader Driver INF
;

;
; The .bin file listed under [SourceDisksFiles] and [DriverCopyFiles]
; AND referenced under the [DriverHwAddReg] section (These values
; MUST match) is the Bin file the driver will read and download to
; the device.
;
; To change the name of the file that will be downloaded to the
; device, not only change the value of the string 'FIRMWARE_FILENAME'
; at the bottom of this file, but also in [DriverCopyFiles] and
; [DriverHwAddReg] sections.
;

[Version]
Signature=$CHICAGO$
Class=USB
LayoutFile=layout.inf
Provider=%MFGNAME%

[Manufacturer]
%MFGNAME%=DeviceList

;-----------------------------------------------------------------------------
; Device directory
;-----------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir=10,System32\Drivers
DriverCopyFiles = 10,SYSTEM32\DRIVERS ; WINDOWS\SYSTEM32\DRIVERS

[SourceDisksFiles]
ApLoader.sys=1
%FIRMWARE_FILENAME%=1 ; This is the bin file that the driver
; will read and download to the device
[PreCopySection]
HKR,,NoSetupUI,,1

[SourceDisksNames]
1=%INSTDISK%,,,

[DeviceList]
%DESCRIPTION%=DriverInstall,USB\VID_0451&PID_2136

;------------------------------------------------------------------------------
; Windows 2000 Sections
;------------------------------------------------------------------------------

[DriverInstall.NT]
CopyFiles=DriverCopyFiles

[DriverCopyFiles]
ApLoader.SYS
TUSB3210.BIN

[DriverInstall.NT.Services]
AddService=APLOADER,2,DriverService

[DriverService]
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%10%\system32\drivers\ApLoader.sys

[DriverInstall.nt.hw]
AddReg=DriverHwAddReg

[DriverHwAddReg]
HKR,,FWFileName,,"TUSB3210.BIN"

;------------------------------------------------------------------------------
; Windows 98 Sections
;------------------------------------------------------------------------------

[DriverInstall]
AddReg=DriverAddReg
CopyFiles=DriverCopyFiles

[DriverAddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ApLoader.sys

[DriverInstall.hw]
AddReg=DriverHwAddReg

;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------

[Strings]
MFGNAME="Texas Instruments"
INSTDISK="TI TUSB3210 Application Firware Loader Install Disk"
DESCRIPTION="TI TUSB3210 Application Firmware Loader"
FIRMWARE_FILENAME="TUSB3210"
 

edit .inf file

Why do you want to edit the inf-file to exchange the bin-file? You shoud have an installation directory containing these files: ApLoader.SYS, TUSB3210.BIN and the posted inf. Now just replace the old TUSB3210.BIN with your new TUSB3210.BIN and reinstall the driver. This replaces the old TUSB3210.BIN in your WINDOWS\SYSTEM32\DRIVERS-directory by your new file. Be sure to point to the installation directory during reinstallation. Don't let Windows find the driver ....


Mik
 

editing inf file

I just replace the TUSB3210.BIN in system32\drivers directory everytime i have made a change. Then i unplug and plug in the usb-device and the new firmware is uploaded! Simple as that... no need to edit the inf file.

/Johan
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top