Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

USB in device emulator

4 views
Skip to first unread message

mike

unread,
Jan 5, 2010, 4:04:30 AM1/5/10
to
Is there a usb function driver that I can add to my device emulator bsp.


Luca Calligaris [eMVP]

unread,
Jan 5, 2010, 4:55:19 AM1/5/10
to
The device emulator is based on S3C2410 reference board: that SOC integrates
an USB function controller and you can find the device driver under
%_WINCEROOT%\PLATFORM\DEVICEEMULATOR\SRC\DRIVERS\USB\FUNCTION.
Adding the .dll to the .bib file and the relevant registry entries will
include the driver in your OS.

Apart this, you cannot 'map' the emulated USB function controller to an
actual one you have (if you have one) on your PC (like you can do with the
serial port) so it will be pretty useless


--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"mike" <yan...@posat.net> ha scritto nel messaggio
news:%234H4SYe...@TK2MSFTNGP04.phx.gbl...

mike

unread,
Jan 6, 2010, 5:03:41 AM1/6/10
to
Thanks a lot.

1. includes sc2410usbfn.dll to platform.bib file.
sc2410usbfn.dll $(_FLATRELEASEDIR)\sc2410usbfn.dll
NK SHK

2. includes entries to platform.reg file.
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Usbfn]
"Dll"="sc2410usbfn.dll"
"Prefix"="UFN"
...

and then rebuild my OS image, But I failed to connect to Device Emulator,

Can I debug usb function client driver using Device emulator in VS2005?

Paul G. Tobey [ eMVP ]

unread,
Jan 6, 2010, 11:29:01 AM1/6/10
to
With Platform Builder you should be able to do kernel debugging of an OS
targeted at the emulator, yes.

Paul T.

"mike" wrote:

> .
>

mike

unread,
Jan 7, 2010, 1:39:21 AM1/7/10
to
Sure, it works, thanks.

This time, I encountered another problem:

UfnPdd_Init() -> DDKReg_GetWindowInfo() -> RegReadWindowList() failed.

No iobase or iolen in the registry, how can I set these two registry items.

"iobase"=dword:50000000
"iolen"=dword:100

How can I determine the values for these two items? Can I set them with
random values? sc2410usbfn.dll in device emulator.

"Paul G. Tobey [eMVP]" <paultobey _at_ earthlink _dot_ net> д����Ϣ����:79FEB5AD-2536-463F...@microsoft.com...

Luca Calligaris [eMVP]

unread,
Jan 7, 2010, 3:30:14 AM1/7/10
to
'The device emulator is based on S3C2410 reference board: that SOC
integrates an USB function controller': this does not mean that the emulator
actually supports all the integrated peripherals of a S3C2410.
From OEM address table I guess that the base address for the USB controller
is 0x52000000 but even if it 'works' how do you connect the USB device
(emulator) to an USB host?

--
Luca Calligaris (MVP-Windows Embedded)
l.calliga...@eurotech.it.nospam
www.eurotech.it


"mike" <yan...@posat.net> ha scritto nel messaggio

news:eOA4mQ2j...@TK2MSFTNGP06.phx.gbl...

0 new messages