How to include IOCTL Command into a DLL
Hi All,
I have create a dll to control a driver. I wish to use IOCTL method to let
application access function into this driver. How do I achieve it?
What setting should i set? Or should I just add the XXX_IOControl API
prototype and insert my codes which a big switch case statement?
Sincerely
Jimmy Tag: NTFS support by CE... Tag: 103897
Reduce the booting time of NAND Driver
Hi all,
I am using WinCE 5.0. There is a NAND Flash on the device.
During the device bootup phase, WinCE is checking the status of all
the NAND Blocks, which is increasing the booting time of the device.
Is there any way I can bypass this so that i can reduce the booting
time!!
The flag FATFS_DISABLE_AUTOSCAN of fat fsd has been set but it
keeps checking the status of all the blocks while booting. Please help
me.
Thanks,
Sarath Tag: NTFS support by CE... Tag: 103892
Lock function can't get the virtual address in user space.
Hi,all.
I'm developping directdraw driver in wince6.
I has alloced some system memory as video memory in config.bib
Normally, the video memory is alloced in AllocSurface function whe
create new surface. And the HalLock function write the video memor
virtual address (it is 0xAxxxxxxx) to corresponding parameter.In app
the Lock function can get the virtual address in user space (it mayb
0x0001xxxx). The OS convert the video memory virtual address to th
user space virtual address automatically . App can access the surfac
through the user space virtual address.
During lacking video memory, I want to alloc the system memory as vide
memory dynamic through the AllocPhysMem function . The function retur
the kernel space virtual address(0xDxxxxxxx).And the HalLock functio
write the addressto corresponding parameter.The Lock app function jus
get the kernel space virtual address(0xDxxxxxxx). The OS doesn'
convert the kernel space virtual address to the user space virtua
address automatically. Why Tag: NTFS support by CE... Tag: 103888
buildrel solution
Hi,
I am working on wiince 5.0 build system.In my build enviorment
i have seen when i run baseosenv.bat (in command prompt) then WINCEREL
will be set to 1.So after that if i change the WINCEREL = nothing then
also i observed that blddemo.bat is calling buildrel and after that
makeimg.Actually i dont want to do at a stretch buildrel and makeimg
during calling of blddemo clean -q or blddemo -qbsp. I want to do
buildrel and makeimg manually through command prompt.blddemo -norel
option is there but i canot call that beacuse for that i have to
modify some other batch file and i canot do that .But i can change the
enviormnet setting so is there anyway stop to call buildrel and
makeimg during calling blddemo.bat ?
Your inputs are most welcome
Thanks
Chinmoy Tag: NTFS support by CE... Tag: 103883
MS Flash Media Driver?
Can anybody tell why in the Flash Media Driver Sample code in wince 6.0
contains DSK_* entry points in .def file but these function are not actually
in the source code.
So if entry points are not defined then how it works. Tag: NTFS support by CE... Tag: 103877
RAMDISK block driver working in WinCE 6.0
Does Anybody able to make RAMDISK block driver working in WinCE 6.0.
Could you please tell me how you have done that. Tag: NTFS support by CE... Tag: 103872
How to show mouse cursor when using USB mouse on Windows Mobile 6?
Hi, All
I met a strange question when I use USB mouse on my PXA27X based Pocket
PC. I added the registry setting and built a mouhid.dll on WinCE 5.0, it
seems that the sytem can get the mouse_event notify by the mouhid.dll, but it
does not show the mouse arrow cursor. The Mobile 6 does not include the
support of USB mouse, I think it look the mouse as the stylus though I do so.
MayI doing CreateCursor() or anthing else in mouhid.dll? Anyone who has
some idea about it?
Any help is gratefu, thanks a lot. Tag: NTFS support by CE... Tag: 103871
Launch address of Nk.bin
Hi,
i am trying to jump to the NK.bin downloaded to the ram and i
have assigneed address for the following fn launch(address) with the
physical address of the NK section in the config.bib file.
But while debugging through the JTAG,its jumping but its showing no
instructions in that address.
i really doubt my address is wrong.Pls clarify my doubt,i know
that experts are availble in the group.
i would really appreciate any replies in this regard this i am a
beginner in windows ce.
Following are my queries
1) I really want to have a good insight how the address is fixed
2) what is the functionality of kernelrelocate() (now its commented)
since both my eboot.nb0 and NK.bin is in ram and that i downloaded
through JTAG
Thanking you Tag: NTFS support by CE... Tag: 103870
yet another question about USB RNDIS for Win CE 5 - headless device ?
Hello experts,
let's put aside all that frustration with efforts to make usb rndis to work
on the desired platform under Windows CE 5 for a moment.
I just talked to one person who has asked whether that capability of Windows
CE 5 to support USB rndis has certain other limitations ( in addition to the
troublesome steps to make it work with very mean configuration on an average
platform).
Specifically, the question was about an embedded device with usb port but
having no ui or a quite primitive ui.
In short: will usb rndis work on headless device under Windows CE 5 ? Or
somehow UI is a must ? If so, for what purpose - just to enter SSID etc -
that can be read from a file or done remotely. Or there are other underwater
rocks which I don't foresee in this case ? Still true for CE6 ?
Anyone who have done that or can shed a light on this is welcome to speak
up. Windows CE 5 documentation doesn't say much.
Thanks
Sergei R Tag: NTFS support by CE... Tag: 103869
Font Alias?
We would prefer that our CE image use Arial rather than Tahoma. So I
did some digging and ended up adding the following to my project.reg:
<code>
[HKEY_LOCAL_MACHINE\SYSTEM\GDI\SysFnt]
"Nm" = "Tahoma"
"Ht" = 10
[HKEY_LOCAL_MAHINE\SYSTEM\GDI\FontAlias]
"Tahoma" = "Arial"
</code>
When I attempt to sysgen I get the following error:
regcomp: Overwriting existing value [HKEY_LOCAL_MACHINE\Software
\Microsoft\FontLink\SkipTable] "Tahoma" in system registry
regcomp: Error: InitRegistry FAILED on or near line 6849 of C:
\WINCE500\PBWorkspaces\CirrusTestBedD\RelDir\ep93xx\edb9315a\..\..
\ep93xx_ARMV4I_Release\reginit.ini.
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
My questions are
1) where should I look to gain a better understanding of what is
wrong?
2) any idea what is wrong?
I took these setting from MSDN <http://msdn2.microsoft.com/EN-US/
library/ms901104.aspx> and <http://msdn2.microsoft.com/EN-US/library/
ms901105.aspx>.
Pat O Tag: NTFS support by CE... Tag: 103866
CE 6.0 Calibrui Clone
Okay, anyone else having problems with cloning the calibrui component in CE
6.0? If I do it using the same method as in CE 5.0, which is to right click
on mingdi and select clone, when I build I get an error when it sysgens
DCOM. The error is:
SysgenMake /NOLOGO oleaut32_custom.dll
Unhandled Exception: System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.GetFileName(String path)
at System.IO.Path.GetFileNameWithoutExtension(String path)
at Microsoft.PlatformBuilder.MainClass.ComputeClonedLibs(String
targetLibs, StringDictionary& moduleVars, StringDictionary&
environmentVariables, Boolean res2res)
at Microsoft.PlatformBuilder.MainClass.Main(String[] args)
NMAKE : fatal error U1077: 'SysgenMake' : return code '0xe0434f4d'
Stop.
We have reproduced this with several projects on several different PCs. If
we remove the cloned calibrui, this builds again.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member Tag: NTFS support by CE... Tag: 103864
eboot and checksum errors
I am trying to get eboot running, and I see packets going out on the
network via Ethereal but Ethereal is complaining of incorrect checksums
and on my device console output it is complaining about bad checksums on
packets it receiving ? anyone see this before ? I cant get DHCP to give
me an address and if I assign an address to the device I see the "bootme"
packets but my pc does not respond and again Ethereal is complaining
about bad checksums ?
Thanks,
Joe W. Tag: NTFS support by CE... Tag: 103861
CE 5.0 KITL Question
The company I purchased my development platform from has just released a 5.0
BSP. I currently use their 4.2 BSP and I can use the KITL feature to develop
apps with emBedded Visual C++.
I have just purchased Platform Builder 5.0 and when I try to add KITL to the
image, it complains about a missing file "kernkitl.exe".
How do I add KITL in 5.0. Should I be contacting the company which provides
the BSP for this feature? The processor I'm using is a Samsung 2410.
Thanks in advance. Tag: NTFS support by CE... Tag: 103840
WM6 BSP to Embedded Ce 6
Hi,
i have a BSP for Windows Mobile 6 (i think it is Embedded CE 5 ?). i want to
use this with Embedded CE 6
1- is it possible to use this BSP with Embedded Ce 6.
2- just ignoring files like memory.cfg.xlm, oem.cpm.csv ok?
3- i can't find some files like iplcommon.h in Wince600.
4- is WM6 eboot, ipl and ULDR sections are same with Embedded Ce 6. or any
differences ?
Thanks
Alli Tag: NTFS support by CE... Tag: 103824
HTTPD Password broken
Hi
I have been having problems with the release build of a CE5 image (XScale
pxa255). Firstly we made some modifications to the serial driver to control
our extra hardware. This worked on the debug verion, but not when we
progressed to release. I then returned to the sample project provided with
the BSP, and added our serial driver. This now worked in release, so I
continued to strip this project down to produce what we needed. I came to the
end of this proceedure, only to discover that the wizard.html page has errors
on it.
I can see no difference between the projects, has anyone got any idea what
may have caused this?
Thanks in Advance
--
Snr. Des. Eng.
Northern Hi-Tec Tag: NTFS support by CE... Tag: 103823
windows ce 5.0 virtual address
Hi,
Pls help me to understand the windows ce 5.0 virtual address space.
What I like to know is, how the 4GB space is mapped in to a device
with less physical memory (say 64MB RAM & ROM).In Windows CE 5.0 each
process can have 32MB. So with a device with less physical memory (say
64 MB) does it mean that I can run only 2 process?
Currently am using the Mainstone kit, it has oal address table as
follows. Here as per the table, virtual address of of SDRAM is in
range 0x80000000 -> 0x83FFFFFF. So is it mean that a process
executing in RAM will only have this virtual address range. What am
trying is to undertand the virtual address following table and how it
fits in the 4 GB address space.Pls help me to undertand the concept.
Regards
Bijesh VM
g_oalAddressTable
DCD 0x80000000, 0xA0000000, 64 ; MAINSTONEII: SDRAM
(64MB).
DCD 0x84000000, 0x5C000000, 1 ; BULVERDE: Internal
SRAM (64KB bank 0).
DCD 0x84100000, 0x58000000, 1 ; BULVERDE: Internal
memory PM registers.
DCD 0x84200000, 0x4C000000, 1 ; BULVERDE: USB host
controller.
DCD 0x84300000, 0x48000000, 1 ; BULVERDE: Memory
controller.
DCD 0x84400000, 0x44000000, 1 ; BULVERDE: LCD
controller.
DCD 0x84500000, 0x40000000, 32 ; BULVERDE: Memory-
mapped registers (peripherals).
DCD 0x86500000, 0x3C000000, 64 ; BULVERDE: PCMCIA S1
common memory space.
DCD 0x8A500000, 0x38000000, 64 ; BULVERDE: PCMCIA S1
attribute memory space.
DCD 0x8E500000, 0x30000000, 32 ; BULVERDE: PCMCIA S1
I/O space.
DCD 0x90500000, 0x2C000000, 64 ; BULVERDE: PCMCIA S0
common memory space.
DCD 0x94500000, 0x28000000, 64 ; BULVERDE: PCMCIA S0
attribute memory space.
DCD 0x98500000, 0x20000000, 32 ; BULVERDE: PCMCIA S0
I/O space.
DCD 0x9A500000, 0xE0000000, 1 ; MAINSTONEII: Zero-
bank (in reserved slot - no physical memory required).
DCD 0x9A600000, 0x14000000, 1 ; MAINSTONEII: nCS5:
eXpansion board header.
DCD 0x9A700000, 0x10000000, 1 ; MAINSTONEII: nCS4:
SMSC 91C111 Ethernet controller.
DCD 0x9A800000, 0x0A000000, 1 ; MAINSTONEII: nCS2
(upper half): 2MB SRAM.
DCD 0x9A900000, 0x08000000, 1 ; MAINSTONEII: nCS2
(lower half): Board registers (FPGA).
DCD 0x9AA00000, 0x04000000, 32 ; MAINSTONEII: nCS1:
Secondary flash (32MB).
DCD 0x9CA00000, 0x00000000, 32 ; MAINSTONEII: nCS0:
Boot Flash (32MB).
DCD 0x9EA00000, 0x50000000, 1 ; BULVERDE: Camera
peripheral interface.
DCD 0x00000000, 0x00000000, 0 ; end of table Tag: NTFS support by CE... Tag: 103820
CalibrationData - when to restore from file on cold boot
Where in the os is the registry values of calibrationData read for the touch
screen? I am unable to find this. I currently save the values from the
registry to a file and upon a cold boot I want to restore the values to the
registry - but when or were do I need to do this at? I've tried in
DdsiTouchPanelEnable but it appears this is too late (my touchscreen was not
calibrated - the values were copied into the registry -I looked with remote
registry editor Tag: NTFS support by CE... Tag: 103811
EAP Session
Hello,
I'm having an issue with an aggressive EAP-TLS Radius server implementation
in that the timeout is set to 1 second with no retries. So, the very first
EAP request/Identity has an ID set to 1 and every second another request is
sent by the AP with ID+1.
My problem is, my netui username dialog is brought up because the state
machine doesn't yet have a username and there's no way of clicking OK before
the next request is sent and therefore I'm always behind.
I don't have access to the 5.0 EAP source (as I believe it's part of the
premier source) but the 4.2 has code with the following comments in eapfsm.c:
#if 0
...
#else
//
// There appear to be a lot of bad implementations out there that increment
// the ID field on retransmissions of Request/Identity packets, in violation
// of the EAP specification (RFC2284):
// "The Identifier field MUST be the same if a request packet is
// retransmitted due to a timeout while waiting for a response."
//
// So, we force our response packet to use the most recently received
request id,
// which works around these misbehaving implementations.
//
...
#endif
I don't want to post any code because I'm not sure of the licensing issues.
As you can see this is exactly what I'm interested in. Can someone please
point me to maybe a registry setting, workaround, QFE I'm unaware of? I'm
going to start the red tape process of purchasing the source but was
wondering if someone has ran into this.
As per the AP config â?? this is a clients infrastructure that we have 0
control over so changing the timeouts and retries is not an option.
Thanks for your help,
Chris
--
Chris Kavanagh
Software Developer
LibreStream Technologies Inc.
www.LibreStream.com
Unit 200 - 55 Rothwell Rd.
Winnipeg, Manitoba
Canada R3P 2M5 Tag: NTFS support by CE... Tag: 103808
FATFS not mounting
Hi All,
I need some help from all the gurus of windows ce.
I am developing a host controller driver for SDCARD in ARM
platform(Windows CE6). The driver and the client driver gets loaded
and I am able to see the same in the Storage manager control panel
applet.
I can also get the size and other details(as per debug messages).
I have tried all possible combinations with the registry settings.
Problem:
The problem is, I could not get the file system mounted. and I am not
able to see the "Storage Card" folder in MyDevice folder.
Am I missing anything!!!!!!!!!!!
Any help is greatly appreciated.
Regards,
Sudheer Tag: NTFS support by CE... Tag: 103803
eboot
I have been searching without much help, I am looking to add an ethernet
card to the eboot list of cards, and re-build eboot ?I have cards that are
close to cards that are listed but not completely the same yet have the
same Ethernet chip (i.e. vendor id or product id dont quite match) which
file do I modify to change or add a different product id and how do I build
eboot.bin ?
Thanks,
Joe W. Tag: NTFS support by CE... Tag: 103799
Bluetooth SDP Record for OBEX Basic Printing Profile (BPP)
Hi All,
I am working on Bluetooth Basic printing profile(BPP) on Windows CE
5.0.
I had written an Obex Server for handling BPP reference object
(Bppserver.dll) requests from Printer similar to the Obexinbx.dll and
Obexfile.dll.
It was supposed to be loaded when printer requests for the referenced
objects.
I have to register it in Servers.reg in the way similar to
obexfile.dll is registered.
For that i need the Bluetooth SDP Record for BPP.
This is how it is registered for Obexfile.dll:
; @CESYSGEN IF SERVERS_MODULES_OBEXFILE
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Obex\Services\
{f9ec7bc4-953c-11d2-984e-525400dc9e09}]
"BaseDir"="\\temp\\ftp"
"Server"="obexfile.dll"
"CanWrite"=dword:1
"Authenticate"=dword:0
"TransportAuthenticate"=dword:1
; @CESYSGEN IF CE_MODULES_BTD
"BluetoothSdpRecord"=hex:
35,41,09,00,01,35,03,19,11,06,09,00,04,35,11,35,\
03,19,01,00,35,05,19,00,03,08,0a,
35,03,19,00,08,\
09,00,06,35,09,09,65,6e,09,00,6a,
09,01,00,09,00,\
09,35,08,35,06,19,11,06,09,01,00,09,01,00,25,03,\
46,54,50
; @CESYSGEN ENDIF CE_MODULES_BTD
; @CESYSGEN ENDIF SERVERS_MODULES_OBEXFILE
Can any one provide me with the SDP record for Basic Printing
Profile(BPP) with the Class UUID as
{00001120-0000-1000-8000-00805F9B34FB}.
Thanks in Advance,
~ Rajesh Reddy Tag: NTFS support by CE... Tag: 103789
how to run app verifier on device
hi,
i have connected motorola verzone device through active sync to my
pc.
and when i am trying to run appverifier in the device, its giving me
error " couid not enable shim engine on device.
i have added all the dll's and .exe required.
do i have to change any settings for it? Tag: NTFS support by CE... Tag: 103782
how to add Common drivers to platform
hi all,
how can i build the driver in PUBLIC\COMMON\Drivers folder..for
example.. the one in PUBLIC\COMMON\OAK
\DRIVERS\BLOCK\MSFLASHFMD\STRATA folder...
i am using maistone ii and how can i add stratad.dll to my platform
image..
Can u tell me procedures..
What are the normal procedure for adding the drivers in to platform..I
follwed the steps in the platform builder help and "Add driver to
existing bsp".But it is not building properly. Tag: NTFS support by CE... Tag: 103781
cold boot update registry touch calibration values wince 5.0
Where in the os is the registry values of calibrationData read for the
touch
screen? I am unable to find this. I currently save the values from
the
registry to a file and upon a cold boot I want to restore the values
to the
registry - but when or were do I need to do this at? I've tried in
DdsiTouchPanelEnable but it appears this is too late (my touchscreen
was not
calibrated - the values were copied into the registry -I looked with
remote
registry editor Tag: NTFS support by CE... Tag: 103780
Flash driver for wince 5.0
Hi,
I am going to design flash driver of 128MB size for a handset. So I
need to persist my data in the flash every time it's updated. My doubt
is,
Whether I have to use HIVE BASED REGISTRY or RAM based registry?
The hive-based registry is most efficient on target devices that cold
boot often but rarely or never warm boot.(this info is from platform
builder). I think as a handset, it will need considerable number of
warm boot also.
So can you suggest a suitable registry type?
My second doubt is selecting the internal file system. The available
file systems are ROM only file system and RAM and ROM file system.
It is mentioned in Platform builder that, the RAM and ROM file system
is most useful in target devices that continuously power RAM because
the object store is lost when RAM is not refreshed, and in the case of
ROM only file system, it does not allow applications to place files in
the object store. So can anybody suggest a suitable internal file
system among this?
Thanks in advance. Tag: NTFS support by CE... Tag: 103779
USB Serial KITL (WinCE 6) - can it be done?
I posted this in the microsoft.public.windowsce.embedded group, but
have had no response. I thought I'd give it a try here:
I've got USB Serial downloads on my platform (350 KB/sec -- much
better than the 11 KB/sec of a UART). Now I'd like to get KITL
working over that transport. I can select that option (USB) for
Transport in Target/Connectivity Options, but I'm having a bit of
difficulty getting it to work. Before I continue down this road, can
anyone tell me:
1) Is KITL supported over USB Serial (not USB RNDIS, which I know will
work)?
2) Is there a sample implementation of KITL over USB Serial I could
look at?
More detail: EBOOT can use the USB transport to download its image
(selecting USB for Download in Target/Connectivity Options works just
fine). When I try to use USB for KITL, I get no traffic on the USB
ports after enumeration has completed.
So, a few more questions:
3) What is VS2005 expect when you select USB for KITL Transport?
4) What does VS2005 need to see in order to "speak KITL" over this USB
pipe?
5) Is there ANY documentation on USB (NOT RNDIS) KITL?
Can anyone help? Has anyone from Microsoft tried this?
Thanks!
-- Steve G. Tag: NTFS support by CE... Tag: 103777
Platform 5.0 Bug with Building SDK
We are experiencing the following Microsoft Bug in Platform Builder 5.0:
"BUG: You may receive an error message when you try to build the SDK after
you successfully build a Windows CE 5.0 run-time image in Platform Builder
5.0"
http://support.microsoft.com/kb/906459
Note: I installed all of the QFE's to date prior to any of our build attempts.
I followed the bug workaround procedure and found that there aren't any
Sysgen variables that are found in Anchored.txt file that are not found in
the SysgenSettings.out file.
The only difference is that some of the Sysgen variables are in lowercase
even though they are the same variables. Does case matter, if so, what do we
edit to have uniform case?
We have successfully built all configurations of the operating system
multiple times, however, when we attempt to build the SDK we always get the
errors reported as a known Microsoft bug.
Are there any other methods or procedures to bypass or solve the Microsoft
Bug with regards to building an SDK in Platform 5.0?
Is there another fix for this bug?
Thanks. Tag: NTFS support by CE... Tag: 103776
Incorporating a 3rd party driver into a BSP/Image
I have a .CAB file which installs a WiFi card driver onto the CE device I'm
developing. I've been able to extract out all the binary files, and the
registry changes necessary to get the driver up and running, but I've run
into a problem.
I don't know how to incorporate a binary-only driver into a BSP (especially
not one with several components which installs itself across subdirectories
in the \Windows folder)
Even worse, the word from higher-ups says I have to get rid of the CAB
support since it is taking up too much space, so I have to incorporate this
driver into my image at least, even if it is impossible to make it part of
the BSP. Tag: NTFS support by CE... Tag: 103766
data file compression
I'm developing a project which needs to store compressed files for uploading
to a central server. Some of these files can get pretty large (video), so I
will need compression on my CE device. Additionally, the device must be
configured to receive compressed files for updating (also very large).
What types of file or folder compression/decompression will run on a CE
environment? I will most likely need a dll, since this project will be
essentially headless. Tag: NTFS support by CE... Tag: 103765
Serial communication on USB 2.0 losing characters when using WaitCommEvent
Hello!
I'm adapting a USB 2.0 driver to work with a PXA270. When using this driver
as a serial driver (usbfndrv.cpp and mdd.c) together with WaitCommEvent, I'm
losing 1 character for each 2048 charter.
It's working fine when WaitCommEvent is not used.
It's also working OK with the internal USB device on PXA27. The reason is
that the page size is 64 byte on the internal USB device, but 512 on USB 2.0
device. And the FIFO in mdd is 2048 byte. The character is tossed in the
SerialEventHandler in mdd.c. Is there someone who has worked out this
problem earlier?
Regards
Amund Tag: NTFS support by CE... Tag: 103750
FILESYS: Waiting for bootable file system to be mounted.
Hi All,
I am playing with wince60 device simulator, i select "Binary Rom Image
File System" as my filesystem and ROM-only File System,
however, when reboot, I got "FILESYS: Waiting for bootable file
system to be mounted." many many times.
How can i do?
Thanks Tag: NTFS support by CE... Tag: 103746
how can I play hive-registry on WINCE6.0 device simulator?
Hi ALL,
Can you tell me whether or not I can play hive registry on WINCE60
divice simulator? If can, can you tell me how?
Thanks a lot
max Tag: NTFS support by CE... Tag: 103745
kill build task
Hi ALL,
i am calling my application through makefile during build
command(build -c) in WINCE . So is there any way to stop the build
through my perl application?
Build ->makefile->perlapps .So i want to come out from the build
process after my application finished the work .
Any input is welcome
Thanks
Chinmoy Tag: NTFS support by CE... Tag: 103741
WINCE Hangs
PXA270, PB5.0
Our product will reside in a truck. For longer duration testing, I
left the system running and at some point of time it hangs. I'm not
able to findout where it hangs.
The same system in the test bench works fine for days.
How do I findout why the WINCE hangs and where ? I wont be able to
capture debug output continuosly as I cannot keep a laptop connected
always. Is there any log I can take ?
Any advice would be really helpful to me
Thanks,
Venkatesh Tag: NTFS support by CE... Tag: 103739
EAP-TLS with windows CE
Hi,
I was wondering how EAP-TLS authentication is performed with windows ce 5.0.
I have loaded the necessary private key and certificates (they work with
other devices such as laptops) onto my device and they appear to be going to
the correct stores. When I go to connect to an EAP-TLS enabled network, I
get a prompt for a User Name and Domain Name. What exactly is it looking for
here? The Active Directory user name that the certificate was issued to? Or
the subject name as on the certificate?
After entering the user name and the domain, the username dialog goes away
but then authentication fails and it reappears. What are possible causes of
this authentication failure?
Also, is there a good description somewhere out there about how EAP-TLS
works with Windows CE5.0? I'd really like to be able to troubleshoot these
types of problems...
Thanks,
Jon Tag: NTFS support by CE... Tag: 103734
pm.dll / RequestPowerNotifications
Hi,
I have a WINCE5.0 image with full power mngmnt.
An application needs to be notified of a user pressing the power button.
I call RequestPowerNotifications() for this, with correct parameters.
I get Error 1060 : The specified service does not exist as an installed
service.
After this I noticed that pm.dll does not seem to be loaded.
Can this be the cause ?
I cannot find ANY regfile in the entire CE source-tree that references PM.dll
How is this dll supposed to be loaded ? there is a lot of docu on
powermanagement, but the docu assumes it works :-( and doesn't mention any
settings.
Any tips are welcome...
Greetings,
Rob. Tag: NTFS support by CE... Tag: 103721
how to call CPP functions from a C files?
I see some ms code do it, but i don't see any special calling conversion
define in source or in make files? Tag: NTFS support by CE... Tag: 103716
Help about COM Thread Models!
In my opion the STA COM server only run in one thread and the data is
thread-safety ,
To verify my opions, I did one test.
But from my test result, the two opions are not verified.I can't know
what problem in this.
Any help would be really appreciated!
The follow is to my step to do test, include key code-section and
result content:
The COM Server is only to print the caller's parameter and its
threadid, the code is posted follow:
--------------------------------------------------
STDMETHODIMP CHello::LogTrace(SHORT Caller, SHORT Inc, DWORD Client)
{
FILE* fp;
//szPrint is one member of CHello, it used to check whether the COM
server data is thread-safety.
sprintf(szPrint, "C = %d, Inc = %d, Serv = %x, Client = %x", Caller,
Inc, GetCurrentThreadId(), Client);
Sleep(1);
fp = fopen("Test.txt", "a+");
fprintf(fp, "%s\n", szPrint);
fclose(fp);
return S_OK;
}
--------------------------------------------------
The COM Client have three steps:
1.The main thread create a server thread which build STA thread, the
code is :
--------------------------------------------------
DWORD WINAPI ServPorc(LPVOID lpv)
{
pDlgParam pParam;
DWORD dwInterface;
bool bContinue = true;
IHello* pHello = NULL;
pParam = (pDlgParam )lpv;
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
CoCreateInstance(CLSID_StdGlobalInterfaceTable, NULL,
CLSCTX_INPROC_SERVER, IID_IGlobalInterfaceTable, (void **)&gpGIT);
CoCreateInstance(CLSID_Hello, NULL, CLSCTX_INPROC_SERVER, IID_IHello,
(void **)(&pHello));
pHello->LogTrace( -1, -1, GetCurrentThreadId());
gpGIT->RegisterInterfaceInGlobal(pHello, IID_IHello, &dwInterface);
PostMessage(pParam->hDlg, WM_USER + 2, 0, (LPARAM)dwInterface);
MSG msg;
while(GetMessage(&msg, NULL, 0, 0))
{
DispatchMessage(&msg);
}
if (pHello)
pHello->Release();
CoUninitialize();
return 0;
}
--------------------------------------------------
2.After setup COM server thread, the main thread create some COM
client threads.
--------------------------------------------------
for (int i= 0; i< PARAL_THREAD; i++)
{
LogParam[i].ICookie = dwCookie;
LogParam[i].Child = i;
hTestServer[i] = CreateThread(NULL, 0, LogPorc, &LogParam[i], NULL,
&dwTestHandle[i]);
}
--------------------------------------------------
3.The child thread call the pHello->LogTrace.
DWORD WINAPI LogPorc(LPVOID lpv)
{
pLogChild pParam;
IHello* pHello = NULL;
HRESULT hr;
pParam = (pLogChild) lpv;
gpGIT->GetInterfaceFromGlobal(pParam->ICookie, IID_IHello,
reinterpret_cast< void** >( &pHello ));
for (int i = 0; i < 20; i++)
{
pHello->LogTrace(pParam->Child, i, GetCurrentThreadId());
Sleep(1);
}
pHello->Release();
return 0;
}
The section of test.txt file is :
....
C = 0, Inc = 0, Serv = 61b000e, Client = 61b000e
C = 0, Inc = 1, Serv = 61b000e, Client = 61b000e
C = 2, Inc = 0, Serv = 620000e, Client = 620000e
C = 1, Inc = 1, Serv = 61e000e, Client = 61e000e
C = 0, Inc = 2, Serv = 61b000e, Client = 61b000e
C = 2, Inc = 1, Serv = 620000e, Client = 620000e
C = 1, Inc = 2, Serv = 61e000e, Client = 61e000e
C = 1, Inc = 2, Serv = 61e000e, Client = 61e000e
C = 0, Inc = 3, Serv = 61b000e, Client = 61b000e
C = 2, Inc = 2, Serv = 620000e, Client = 620000e
C = 1, Inc = 3, Serv = 61e000e, Client = 61e000e
C = 1, Inc = 3, Serv = 61e000e, Client = 61e000e
C = 1, Inc = 3, Serv = 61e000e, Client = 61e000e
....
The serv fields have three threadids, and these have some repeated
lines. Tag: NTFS support by CE... Tag: 103715
Wave Driver registry settings
Hi,
I am trying to build a wave driver based on the Unified Audio model.
For this I created a normal stream interface driver with all WAV_xxx
functions required.
The registry entry for the driver was done under
HKEY_LOCAL_MACHINE\Drivers\Builtin\FILTER
When I try to call the wave api "waveOutGetNumDevs" the 0 is returned.
Also the waveOutOpen return "NO DRIVER" found.
What i fail to understand is that how do the wave api know which are
the audio drivers available.
Under what registry settings should the audio driver be put?
Thanks in advance
Mohammed Anwar Tag: NTFS support by CE... Tag: 103714
FATFS CacheSize - is it "overridden" by profiles, or ... ?
Hello all,
How does the CacheSize setting for FATFS interract between the base
setting and the profiles?
You can set the cache size for FATFS by setting the registry value
[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
"CacheSize"=dword:1000
like the other FATFS parameters, you can supposedly override this with a
value under the profile, e.g.
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\ramd\FATFS]
"CacheSize"=dword:1000
But what does override mean here?
Does it mean that FATFS allocates a separate cache of that size for the
profile (ramd here), in addition to it's base cache? Does it use the
larger or smaller of all the profiles for a single cache?
Or is the base setting really just a default, and every mounted FAT
filesystem gets a separate cache that big?
Thanks
Aaron Tag: NTFS support by CE... Tag: 103712
Problem building debug version of a driver (LNK4204)
Hi!
Trying to build a debug version of a driver under eVC gives the warning
"LNK4204: 'ccrthelp.pdb' is missing debugging information for
referencing module; linking object as if no debug info".
The driver DLL is build, but during a debug session the debugger jumps
raher randomly through the source code. The PDB in question is from a
Platform Builder directory (\PUBLIC\COMMON\OAK\LIB\ARMV4I\DEBUG).
Any suggestions?
Regards
Max Tag: NTFS support by CE... Tag: 103709
CE5 ASP - strange error message on Response.Flush
Hello all,
Is John Spaith out there ? :)
In one of my ASP pages, I'm trying to use Response.Flush. Elsewhere, it
has seemed to work OK, but here my script just stops with this message:
------------------------------
Buffering must be turned on to complete that action
ASP scripting compilation error: '80020009'
Description:
In file: /Journal.asp
On line: 54
------------------------------
Even this simple test case now fails:
<%@ language="VBScript" %>
<%
Response.Write "cake<br>"
Response.Flush
%>
Any ideas?
Regards
Aaron Tag: NTFS support by CE... Tag: 103708
NAND flash fmd dirver performance
Dear all,
I'm developing nand flash fmd driver using FAL library. I
printf the 'dwNumSectors' parameter in function FMD_ReadSector(...)
and find it is still 1 .
So, FAL only read 1 sector one time? and if so, the
performace is not good, any one can give me some idea? thanks. Tag: NTFS support by CE... Tag: 103707
Unidentifed USB Device
I have a HID-compliant USB device and I have written a custom driver for it.
(And removed usbhid (SYSGEN_USB_HID) from the catalog for testing purposes).
The driver is loaded correctly if I plug the device in AFTER startup.
But ... if the device is already plugged in at startup, I get the
Unidentifed USB Device dialog. If I cancel the dialog, unplug the device
and plug it back in, the driver loads OK. Or if I just enter the driver
name in the dialog, it loads OK. (With SYSGEN_USB_HID included, it is
recognized at startup by the default HID settings).
I have tried adding all sorts of registry entries under USB\LoadClients and
other keys, using Vendor ID, VendorID_ProductID, Default or whatever,
without success.
What is different about the bootup procedure from that when I plug the
device in? Tag: NTFS support by CE... Tag: 103700
DLL test tool
Hi ALL ,
I am trying to make a tool which will test the all DLL
and EXEs are present are not in the platfrom target tree. So i am
caling my perl application tool through makefile from my own created
directory in platfrom tree with modify the dirs file and this test
tools is checking all DLLS and EXEs.I am comparing with my
platfrom.bib file
and if i not found any DLL or my required EXE which will be used in my
makeimg ,so soon i want come out from build .SO i dont know how to
stop the microsoft build program through perl script and program
should terminate gracefully also?
Any ideas are welcome to open my locked door.
Thanks
Chinmoy Tag: NTFS support by CE... Tag: 103699
Subtle bug in MIPS assembler - missing definition ignored
Here is a potentially nasty behavior in at least the Windows CE MIPS
assembler. It may be present on other as architectures as well.
The following code is compilable:
#include <kxmips.h>
#define PATRICK_STARFISH 0x12340000
LEAF_ENTRY(this_is_bogus)
lw t0, SPONGEBOB_SQUAREPANTS(PATRICK_STARFISH)
...
even though there is _no_ definition for SPONGEBOB_SQUAREPANTS!
The assembled code generated reads:
Proc: this_is_bogus
lw t0, SPONGEBOB_SQUAREPANTS(PATRICK_STARFISH)
0000000000 0x3c011234 lui at,0x1234
0x00000004 0x24210000 addiu at,at,0
0x00000008 0x8c280000 lw t0,0(at)
...
in other words,
SOMETHING(defined_symbol)
is evaluated as if SOMETHING had an empty definition (as opposed to being
undefined).
The assembler correctly handles the case where the macro includes a literal
instead of a symbol. Building the code:
lw t0, SPONGEBOB_SQUAREPANTS(0x12340000)
fails, with an error: unresolved external symbol SPONGEBOB_SQUAREPANTS
referenced in function this_is_bogus
--
--Richard R Lee, eMVP Tag: NTFS support by CE... Tag: 103698
paired/unpaired Flash components and FMD
Hi,
I am facing a problem with the FMD located in:
WINCE500\PUBLIC\COMMON\OAK\DRIVERS\BLOCK\MSFLASHFMD\FASL
After creating my local copy of it, I got it working in one of our
devices using NOR Flash (Spansion) with 2 paired chips.
Also my Booloader is using the PQOAL flash library. I used it to flash
the NK.bin and it works fine.
Now I am using a non-paired architecture (only one 16-bit Flash chip).
I thought that setting the bPairedFlash variable to FALSE should be
enough, but it is not working, while the bootloader still works
without problems.
After some debugging, I found that the driver fails in the following
line:
pStorageDesc->pFlashDevDesc->stDeviceID.u32MfgID = RD_FLASH_REG
(lpvBaseVirtualAddr, CYCLE_4_ADDR_MFG_ID) ;
That is, it cannnot get a correct manufacturer ID. As the Flash
manufacturer is the same for both devices and the bootloader is
working, I am thinking that some is wrong with the WR_FLASH_REG/
RD_FLASH_REG macros in the driver for unpaired chips (or that I'm
getting some alignment problems with the virtual address mapping
[MmMapIoSpace]).
Has anybody find the same situation?
Thanks for your feedback,
Alex Tag: NTFS support by CE... Tag: 103690
How to disable ActiveSync from monitoring serial lines?
I have a strange situation. I have a PXA255 dev board and I use the
processors USB client for ActiveSync.
I also have a serial modem port that I use for remote communication.
When I click the Modem off, I get a brief "USB status" connect system status
screen that pops up.
At first I thought the USB +D line must be glitching and briefly triggering
a USB "attach".
I eliminated this as a posibility by disabling the "USB Client" subsystem on
the Xscale chip.
and via hardware.
I narrowed it down to the "CD" (carrier detct) signal glitching which must
result in CE poping up the status screen as it must not
discern a USB vs a serial port ActiveSync attach.
This screen is very annoying and I can not ship product with this. I could
totally remove the ActiveSync component but I don't want to give
up the functionality.
Is there a way to prevent ActiveSync from monitoring the serial ports (and
just monitor the USB client connection)?
I believe you can do this on the desktop side of ActiveSync, is this
available in CE somehow?. Tag: NTFS support by CE... Tag: 103687
cloning driver
Dear all,
I wanted to clone USB driver, i am getting the following error
BUILD: [01:0000000467:ERRORE] LINK : fatal error LNK1104: cannot open file
'E:\WINCE500\PBWorkspaces\XXXXX\WINCE500\XXXXX\oak\lib\x86\retail\hcdlib.lib'
What settings as to be changed to rectify this error?
Below is the sources file
TARGETTYPE=LIBRARY
TARGETNAME=hcdlib
CONDITIONAL_INCLUDES=macwin32.h
SOURCELIBS= \
$(_TARGETPLATROOT)\lib\hcdlib.lib \
TARGETLIBS= \
$(_TARGETPLATROOT)\lib\hcdlib.lib \
SOURCES= \
cphysmem.cpp \
sync.cpp \
cdevice.cpp \
hcd.cpp \
hcddrv.cpp \
Regards,
Sankarraj Tag: NTFS support by CE... Tag: 103685
Hi,
If I wanna use the ntfs filesystem for my ce device, how can I configure the
os?
The ntfs can be used for all media such as nand(nor) flash, cf, dom, hdd?
But since it is nowhere documented officially, I have some doupts in
its reliability.
For shure I think there is a basic wear levelling support, but you
maybe can't totally rely on it.
(whyelse should MS keep silent about such an important feature,
especially in the embedded area)
>For shure I think there is a basic wear levelling support, but you
>maybe can't totally rely on it.
>(whyelse should MS keep silent about such an important feature,
>especially in the embedded area)
Sure you can rely on it. Your conclusion is a non-sequitor. MS is not silent
on the matter, they document that the FAL performs the wear leveling. They
also document that NTFS is not supported. I'd have to ask WHY would you want
NTFS on CE? NTFS is a big beast that contains a HUGE number of features and
functionality not available on CE systems.