Pic basic pro USB and swordfish USB

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Pic basic pro USB and swordfish USB

Post by be80be » Wed Jan 26, 2011 10:35 pm

I used some code I had to test my hardware it was in Pic basic pro

Now my Swordfish USB is no longer loaded the right divers It's loading the microcode usb drivers

Any one have this happen?

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Thu Jan 27, 2011 8:58 am

I'm not sure what you mean by "microcode usb drivers"

be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Post by be80be » Fri Jan 28, 2011 3:24 am

This installs the drivers It' s PBP I use MicroCode plus

But now I can't use I for some reason It will not install for swordfish now
It pops up and tells you it's Install for swordfish but it don't load the driver
It said divers not found but there there.
usbser.sys and mdmcpq.inf

I was testing my hardware to make shore it worked with some old test code because I couldn't get the 18f14k50 to work with swordfish USB CDC

So i put the 18f14k50 away and used a 18f2550 and swordfish and now I can't load the divers changes computers and it works fine.


Code: Select all

; Windows USB CDC ACM Setup File
; Copyright (c) 2000 Microsoft Corporation
; Copyright (C) 2007 Microchip Technology Inc.

[Version] 
Signature="$Windows NT$" 
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} 
Provider=%MCHP% 
LayoutFile=layout.inf
DriverVer=08/18/2001,5.1.2600.0

[Manufacturer] 
%MFGNAME%=DeviceList

[DestinationDirs] 
DefaultDestDir=12 

[SourceDisksFiles]

[SourceDisksNames]

[DeviceList] 
; When developing your custom 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&PID_yyyy" to the end of the line.

%DESCRIPTION%=DriverInstall, USB\VID_04D8&PID_000A 

;------------------------------------------------------------------------------
;  Windows 2000/XP/Vista-32bit Sections
;------------------------------------------------------------------------------

[DriverInstall.nt] 
include=mdmcpq.inf
CopyFiles=DriverCopyFiles
AddReg=DriverInstall.nt.AddReg 

[DriverCopyFiles]
usbser.sys,,,0x20

[DriverInstall.nt.AddReg] 
HKR,,DevLoader,,*ntkern 
HKR,,NTMPDriver,,usbser.sys 
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 

[DriverInstall.nt.Services] 
AddService=usbser, 0x00000002, DriverService

[DriverService] 
DisplayName=%SERVICE% 
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys 

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

[Strings] 
MCHP="Microchip Technology Inc."
MFGNAME="Microchip Technology Inc."
DESCRIPTION="Communications Port" 
SERVICE="USB RS-232 Emulation Driver"


User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Fri Jan 28, 2011 8:09 am

If using the same VID and PID combination, you might need to cl;ear the registry of previous entries. Try running EasyHID to create a new dummy project which should clear out the registry.

be80be
Registered User
Registered User
Posts: 90
Joined: Mon Feb 23, 2009 2:15 am
Location: tn

Post by be80be » Fri Jan 28, 2011 4:12 pm

That worked like a charm

Thanks

Post Reply