Anyone has used USB_CDC_MSD_Hello on Win7 ?

24 Feb 2012

Hi, I have seen the example USB_CDC_MSD_Hello . Did someone used it in connection with a Win7 machine ?

Kind Regards, Daniel

27 Feb 2012

Hello, I can use it on Win7. However, it did not fully debugged.

MSC is required for SD memory.

main.c: SDFileSystem sd(p5, p6, p7, p8, "sd");

And, CDC is required for .inf file.

03 Mar 2012

Thank you Suga ! (I don't know why I don't receive alerts when a reply it's posted).

I have managed to make it work , however it seems to be not so stable. I am having problems especially with serial port.

Do you have any updates on serial port emulation ?

Kind Regards, DAniel

13 Mar 2012

Hello Daniel,

As you say, this program is not stable. It is difficult for me to fix...

13 Mar 2012

Hi,

I have connected BlueTooth USB device to my mbed (BlueUSB). Now I´m looking for a solution to transmit a file from SD card via bluetooth to other device. Do you have an idea how to proceed ? Any hints ?

Br, Mika

14 Mar 2012

I am afraid that your question it's a subject for other topic. however if your file it's text it should be fair easy to retransmit it.

24 Apr 2012

Suga, Daniel, how did you get it to work in win7? All I have is a blue screen after connecting it to win7 64bit?!

On WinXP, it installs serial port, but after opening it with hyper terminal, it doesn't receive or transmit. It doesn't install any drives.

If I connect it to the picture frame (USB Linux host), usb drive works... I'm really frustrated by now...

I'm f*king with it for a days now, with no result...

25 Apr 2012

When compiling I get this error.

"statement is unreachable" in file "ChaNFS/CHAN_FS/ff.c", Line: 1649, Col: 11

25 Apr 2012

If this is a composite device, why isn't it using usbccgp.sys and composite device enumeration like mbed interface chip?

I still cannot get it to work... Please help!

25 Apr 2012

Now I get the mass storage, but serial isn't working... :(

26 Apr 2012

It really works. The point is to uninstall any previous driver and to modify serial.inf...

Here is the serial_msd.inf

;************************************************************
; Windows USB CDC ACM Setup File
; Copyright (c) 2000 Microsoft Corporation


[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MFGNAME%
LayoutFile=layout.inf
CatalogFile=%MFGFILENAME%.cat
DriverVer=11/15/2007,5.1.2600.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&PID_yyyy" to the end of the line.
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_1F00&PID_2012&MI_00

[DeviceList.NTamd64]
%DESCRIPTION%=DriverInstall, USB\VID_1F00&PID_2012&MI_00


;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------
;Modify these strings to customize your device
;------------------------------------------------------------------------------
[Strings]
MFGFILENAME="Virtual Serial port"
DRIVERFILENAME ="usbser"
MFGNAME="http://www.mbed.org"
INSTDISK="Mbed Virtual Serial Port Installer"
DESCRIPTION="Mbed Compozite Virtual Serial Port"
SERVICE="USB RS-232 Emulation Driver"
02 May 2012

Hello Goran, Thank you for updates. Mass storage was generally working for me too. I will try this version of inf file ! (I still don't understand why I receive the alerts so late). Kind REgards, DAniel

04 Oct 2012

I all The first time I install the cdc driver it works. But, as soon I cancel the virtual disk verification in windows, the virtual port com doesn't work any more. In this case, the MBED receive char from the PC, but when I try to send a char from the MBED (cdcmsc.putc(c);), the USBDevice::write(...) function block the program and I receive nothing.

Thanks for your help

Regards