12
返回列表 发新帖
楼主: warrorwg

[已解决] MK CDC DEMO driver(已解决)

[复制链接]

该用户从未签到

2

主题

8

帖子

0

新手上路

Rank: 1

积分
23
最后登录
1970-1-1
发表于 2013-6-10 10:59:19 | 显示全部楼层

回复:MK CDC DEMO driver(已解决)

这是从inf_data.c文件里提取出来的,在32位系统测试没问题
原文件在64位系统里装不上,是因为VID字段描述跟硬件不符,修改后测试就可以了
下面是最终的inf文件内容,32位、64位都测试OK了,只适用MSD_CDC的DEMO程序。跟大家分享下
 
 [Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
LayoutFile=layout.inf
CatalogFile=%MFGFILENAME%.cat
DriverVer=02/16/2011,1.0
 
[Manufacturer]
%MFGNAME%=DeviceList, NTamd64
 
[DestinationDirs]
DefaultDestDir=12
 
 
;------------------------------------------------------------------------------
; Windows 2000/XP/Vista-32bit Sections
;------------------------------------------------------------------------------
 
[DriverInstall.nt]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.nt
AddReg=DriverInstall.nt.AddReg
 
[DriverCopyFiles.nt]
usbser.sys,,,0x20
 
[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
 
[DriverInstall.nt.Services]
AddService=usbser, 0x00000002, DriverService.nt
 
[DriverService.nt]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
 
;------------------------------------------------------------------------------
; Vista-64bit Sections
;------------------------------------------------------------------------------
 
[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg
 
[DriverCopyFiles.NTamd64]
%DRIVERFILENAME%.sys,,,0x20
 
[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
 
[DriverInstall.NTamd64.Services]
AddService=usbser, 0x00000002, DriverService.NTamd64
 
[DriverService.NTamd64]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
 
 
;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; Modify the below line to use your VID and PID. Use the format as shown below.
; Note: One INF file can be used for multiple devices with different VID and PIDs.
; For each supported device, append ",USB\VID_xxxx&ampID_yyyy" to the end of the line.
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_15A2&ampID_0800&MI_00
 
[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_15A2&ampID_0800&MI_00
 
 
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
;Modify these strings to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="CDC"
DRIVERFILENAME ="usbser"
MFGNAME="Freescale"
INSTDISK="Freescale CDC Driver Installer"
DESCRIPTION="Virtual Com Port"
SERVICE="FSL Virtual COM Driver"
 
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

3

帖子

0

新手上路

Rank: 1

积分
3
最后登录
1970-1-1
发表于 2014-5-9 15:39:36 | 显示全部楼层

回复:MK CDC DEMO driver(已解决)

回复第 11 楼 于2013-06-10 10:59:19发表:
这是从inf_data.c文件里提取出来的,在32位系统测试没问题
原文件在64位系统里装不上,是因为VID字段描述跟硬件不符,修改后测试就可以了
下面是最终的inf文件内容,32位、64位都测试OK了,只适用MSD_CDC的DEMO程序。跟大家分享下
 
 [Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
LayoutFile=layout.inf
CatalogFile=%MFGFILENAME%.cat
DriverVer=02/16/2011,1.0
 
[Manufacturer]
%MFGNAME%=DeviceList, NTamd64
 
[DestinationDirs]
DefaultDestDir=12
 
 
;------------------------------------------------------------------------------
; Windows 2000/XP/Vista-32bit Sections
;------------------------------------------------------------------------------
 
[DriverInstall.nt]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.nt
AddReg=DriverInstall.nt.AddReg
 
[DriverCopyFiles.nt]
usbser.sys,,,0x20
 
[DriverInstall.nt.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
 
[DriverInstall.nt.Services]
AddService=usbser, 0x00000002, DriverService.nt
 
[DriverService.nt]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
 
;------------------------------------------------------------------------------
; Vista-64bit Sections
;------------------------------------------------------------------------------
 
[DriverInstall.NTamd64]
include=mdmcpq.inf
CopyFiles=DriverCopyFiles.NTamd64
AddReg=DriverInstall.NTamd64.AddReg
 
[DriverCopyFiles.NTamd64]
%DRIVERFILENAME%.sys,,,0x20
 
[DriverInstall.NTamd64.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
 
[DriverInstall.NTamd64.Services]
AddService=usbser, 0x00000002, DriverService.NTamd64
 
[DriverService.NTamd64]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys
 
 
;------------------------------------------------------------------------------
; Vendor and Product ID Definitions
;------------------------------------------------------------------------------
; When developing your USB device, the VID and PID used in the PC side
; application program and the firmware on the microcontroller must match.
; Modify the below line to use your VID and PID. Use the format as shown below.
; Note: One INF file can be used for multiple devices with different VID and PIDs.
; For each supported device, append ",USB\VID_xxxx&ampID_yyyy" to the end of the line.
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_15A2&ampID_0800&MI_00
 
[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_15A2&ampID_0800&MI_00
 
 
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
;Modify these strings to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="CDC"
DRIVERFILENAME ="usbser"
MFGNAME="Freescale"
INSTDISK="Freescale CDC Driver Installer"
DESCRIPTION="Virtual Com Port"
SERVICE="FSL Virtual COM Driver"
 
 
我用win8 64位版本,FRDM-KL26Z的板子,CDC Serialport的驱动始终无法安装上去,你的inf文件具体命名是什么?需要放在什么路径?
 
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-19 15:54 , Processed in 0.080853 second(s), 21 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表