NK Kernel Exception
Hi all,
I have developed a kind of TCP/IP server in Windows CE.NET 4.2. No we are
running "stress" tests over the platform just to assure the correct working
of the device. However, during these tests, I have recently faced the
following exception in my system:
[PID:a7a4bb7a TID:c772ccda 0x879c1800]
NK Kernel: DEBUGCHK failed in file
d:\mckendric\private\winceos\coreos\nk\kernel\nknormal\..\schedule.c at line
316
Exception 00e Thread=879c1800 Proc=a7a4bb7a 'gwes.exe'
AKY=00000211 PC=802415af ESP=143bfa44 EA=00000088
I was connected to the device via Platform Builder using the Ethernet port
of the device. So I could see the "Call Stack" that had lead to the
exception. The problem is that it seemed that the exception had been
originated by a call to PeekMessage() function.
> My program creates a pair of threads for each connection that receives.
> The test is constantly creating and closing connections.
> The source code for each client thread is as follows:
DWORD WINAPI ConnectionThreadPseudoCode ( LPVOID pParms )
{
MSG stMsg;
PeekMessage ( &stMsg, (HWND) INVALID_HANDLE_VALUE, 0, 0,
PM_NOREMOVE );
//
// Rest of the thread body
//
}
> I just call PeekMessage() at the beginning of the thread's execution, to
create the thread's message queue.
The source code of the exception part in schedule.c is the following:
void AddHandleToList (HANDLE *phList, HANDLE hObj, DWORD dwType)
{
[...]
EnterCriticalSection (&NameCS);
if (lpe->hNext = *phList) {
LPEVENT lpeNext = (LPEVENT) GetObjectPtrByType (lpe->hNext, dwType);
DEBUGCHK (lpeNext); <--- this is the line that gives me the
exception in NK
lpeNext->hPrev = hObj;
}
*phList = hObj;
LeaveCriticalSection (&NameCS);
}
Any suggestions on this problem?
Best regards,
R.B.C. Tag: kbhit() Tag: 50388
Build in evc4, debug in PB 4.2 - How?
I've read past posts on this but not found any concrete examples to help.
The scenario:
I have a complex evc4 workspace (24 inter-dependent projects - dlls/exes
+ dll driver), I'd like to be able to keep building it in evc4 but to be
able to debug in platform builder when needed.
This is working to a limited extent. I have added project.bib entries to
lift my dlls/exe direct from the evc4 debug directories. I've added
project.reg entries to get my driver loaded. I build evc4, make image in
pb4.2, download and connect.
Questions:
1. Whenever my CEPC runs one of my EXEs, PB always asks for the local
EXE location (so it can display the source files when it breaks). Can I
stop it asking somehow? i.e. tell it where to find them all in advance.
I've tried Tools->Options->Directories->EXEs but that was a long shot.
2. Breakpoints - how can I set breakpoints (it doesn't know the source
is part of the project)? Is there an equivalent to the MSVC "Additional
DLLs" concept to make PB42 aware of the source code I wish to debug?
Adding "int 3"s would I suppose work but is obviously not ideal.
As you can see, I am trying to avoid having to maintain two workspaces
(one in evc and PB).
Thanks in advance,
Martin Tag: kbhit() Tag: 50387
out of memory error
Dear All,
I am getting the following errors during Windows CE 4.2
boot up on an ARM Based Platform.
stub_LoadLibraryW (mydll) : Failed with error 0x0000000e
stub_CreateProcessW(myexe): Failed with error 0x0000000e
What are the possible reasons and solutions for these
errors?
Note:We have enough physical memory.
Regards
sinu Tag: kbhit() Tag: 50386
Windows CE.NET Bluetooth
Hi All,
I am currently working on a program (for CE.NET) which it can retrieve the bluetooth device name of my own device. However, have been search through the help file and web sites to look into this, so far not much luck. Anyone knows how to do it? Please help. Is the bluetooth name same to the device name in the control panel system properties?
Thanks...
Best Regards,
Candy Tag: kbhit() Tag: 50380
Building Win CE driver for IntelXScale
Hi All,
Am trying to build a Win CE driver uing PB(platform builder). I want
to set the processor type of the driver as Intel Xscale. But I don't
know how to configure the PB for this particular processor.
1. Is it possible to build a driver by setting "processor type Intel
Xsacle" using platform builder?
2. Do I have to purchase any BSPs from Intel for this particular
processor support?
3. If possible,
2.1 Please detail how to configure PB.
2.2 Is it possible with evaluation version of PB?
regards
Bijesh VM Tag: kbhit() Tag: 50377
Building CE Driver for IntelXscale processor
Hi All,
Am trying to build a installable driver for iPAQ PDA which is based
on Intel Xscale processor (iPAQ 2215). I would like to know
1. How to configure the PB for building driver for Intel Xscale
processor?
2. Is there any command line arguments for buiding.
3. Whether I have to purchase the BSP for IntelXscale from intel, Is
it available with PB 4.2 evaluation version?
regards
Bijesh VM
* PB: platform builder 4.2 Tag: kbhit() Tag: 50376
Mapping large PCMCIA common memory in NDIS miniport
Dear all
I'm porting PCMCIA wireless LAN adapter to Windows CE 4.2 on Samsung SMDK2410 boar
Since, our PCMCIA adapter use large common memmory about 2.25MB
I tried to map common memory space in MiniportInitialize() with NdisMMapIoSpace() function like this
-------------------
Status = NdisMMapIoSpace( (PVOID *)(&(pAdapter->pMemVirtual))
pAdapter->MiniportAdapterHandle
pAdapter->MemBaseAddr
pAdapter->MemSpaceSize); // MemSpaceSize = 0x24000
------------------
but, this code generates OUT_OF_RESOURCE error
I suppose that the reason of error is the memory size is too large
Is it possible to map such large size of PCMCIA common memory
If possible, how can I do that
Thanks in advance... Tag: kbhit() Tag: 50373
how to make the configuration for the Sandgate platform
HI
My hardware platform is XCALE255 without SA1111, so I want to configure the platform to be a Sandgate platform
But the default setting is Lubbock. How can I set my Platform builder to do that
Thanks Tag: kbhit() Tag: 50372
Help me on Windows XP Embedded installation.
Dear all,
I have a problem installing the XPe with SP1. I have problem performing the
database setup after I have installed the tools and the database engine. The
error message is
"This installation package cannot be opened. Verify that the package exists
and that you can access it, or contact the application vendor to verify that
this is a valid Windows installer package".
How can I overcome this problem?
Thanks in advance,
PCB Tag: kbhit() Tag: 50365
Debugging on the PDA. Is it possible?
Dear TechGurus
How should I debug my code on the actual PDA?
For example, I have a HP Ipaq PDA and have a active synch connection to the Desktop. The code is present in the EVC++ 3.0 running on the desktop
Provided I have a debug build, is there a way to debug my code(step in)? My processor is ARM..
Is it possible to debug the Application and the Driver DLL
If its a big thing which u may hate typing, pls get me the link so that I can browse from there
Cheer
Ram Tag: kbhit() Tag: 50363
Is all source code available in cepb42 ?
hi,
if someone can tell me that All source code is available in cepb42
including core.dll, gwe.dll and the kenerl code.
thanks for help. Tag: kbhit() Tag: 50362
Localization
G'day All,
I have a question regarding localization of a WinCE 4.2 platform.
We are developing a WinCE platform where installed applications will not
be using any of the standard Windows Interfaces (eg Shell, file open
close etc), applications will manage all interfaces. The installed
application will need to support multiple lanaguages so we need to
provide full font support etc. Most likely a seperate build of the
application will be done for each target language.
My question is:
Do we need to include all the target locales in this situation?
I looks like these just provide language translation of Standard Shell
UI and System Apps etc?
Phil Tag: kbhit() Tag: 50357
Copying bigger files from SD card is not happening
Hi All
I am using PB 4.2
I am using a 64MB Sandisk SD card (uses 8 bit CISC controller within the card
I am not able to copy files above 13 MB from SD card to desktop using active sync
In the receive part of code, we are checking status register to ensure data is ready in FIFO.
Then, I am copying data from FIFO. The above operations(check status reg and copy from FIFO) happens
in a loop until we copy everything (whole size). While file copy reaches 13 MB, status register gives
"RECEIVE TIMEOUT" .
The above issue happens with this particular card only
I have one more Sandisk card (uses 32 bit RISC controller within the card). Using this card I can copy the files as big as possible. This is consistently happening
Any solution
Thank
Prasanna Tag: kbhit() Tag: 50356
why msn don't connect at WinCE net 4.2?
When I try connect msn,my device display error "Signig in to.NET Messenger
Service failed because the service is not compatible with this version of
the program". Tag: kbhit() Tag: 50355
PCMCIA with a CEPC
Q1 Any recommended "off the shelf" cards for PCMCIA on a CEPC
The cards typically come with WiFi network cards but none of the ones I have have the required chipset
TI1250 (Texas Instaruments) or i82365-compatible (as in PB4.2
Q2 Looking at PCMCIA drivers on MSDN at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cxconPCCardDriverSupport.as
There are drivers for 3 PCMCIA cards but when I look on the directory (Platform) there are no such subdirectories
As file serach of %winceroor% finds nothing Tag: kbhit() Tag: 49349
TDI support in Win CE 4.x?
Hi all, I am planning to implement TDI based firewall in Windows CE 4.x. I have been trying to figure out if there are any support for TDI in Win CE. Until now I wasnt able to find any conclusive evidence of it. I'd appreciate if anyone can tell me. Moreover I shall be grateful if there is TDI support, if anybody can tell me where I can find references to the supported TDI Apis' for CE.
thanks a lot in advanc
Tarik Tag: kbhit() Tag: 49346
About the Audio SoftwareMixer
[HKEY_LOCAL_MACHINE\Audio\SoftwareMixer]
"SampleRate"=dword:AC44
"Buffers"=dword:4
"BufferSize"=dword:800
"EnableLowPassFilter"=dword:1
"Priority 256"=dword:dc
I found some difference between 'MediaPlayer' and 'PlaySound API'.
I measured the analog audio output signals, playing the same .wav file by
two ways.
In MediaPlayer, the signal was smooth.
But, in PlaySound API, it was like staircase.
I guess the reason is LowPassFilter of SoftwareMixer.
So, I changed the registry value "EnableLowPassFilter" is zero.
As expected in MediaPlayer, the signal was not smooth and like staircase.
I want to make the sound of PlaySound API is smooth.
How can I use the 'PlaySound API' with Audio Software Mixer like MediaPlayer
?
Please.. Tag: kbhit() Tag: 49344
SDIO hardware attachment driver/software
I am in process of designing a piece of hardware attachment to be used with
an iPaq PocketPC through its SD slot. The hardware will follow SD IO
specifications. I want this hardware to look as a bank of 4 8-bit
read/write registers. Applications using this hardware control it by
reading and writing these registers. An interrupt service routine will be a
big plus.
I really appreciate it if you can point me to the right direction. I have
googled around and searched Microsoft site with not much success. Here are
few questions if you enlighten me please.
1- Is it neccessary to write a driver to access this device? Is it possible
for the application to use low level drivers already in the iPaq to access
the SD slot without the need for a dedicated driver?
1- What is the appropriate software tool to create a driver to access a SD
IO device attached to SD slot of an iPaq?
2- If Platform Builder is the right tool, where do you get it? In Microsoft
site I can find articles mentioning the Platform Builder, but I cannot find
a product named Platform Builder. Did they change the name?
3- Are there any articles or sample code showing SD IO access in a PocketPC?
Thanks in advance Tag: kbhit() Tag: 49343
can I distribute loadcepc with my NK.BIN?
Are there licensing restrictions on distributing loadcepc with my NK.BIN
My NK.BIN will reside on the boot parttion of a CEPC and I currently use loadcepc to load it. Should I be using some other loader
Thanks
Mik Tag: kbhit() Tag: 49337
Windows CE ROM Image Builder
Receiving these warning messages. How can I fix it or should I not
worry about them. myIsr.dll is a loadable ISR ad mydriver.dll is of
course, my CE Driver.
Using old fixup style in module mydriver.dll
Using old fixup style in module myIsr.dll
John Tag: kbhit() Tag: 49336
suspend doesn't work after RDP session
Hi,
I am running Win CE 4.2 on a SH3 device. There is button driver in the
device. When click one of the button, the device will go to suspend. The
code is like this
keybd_event( VK_OFF, 0, KEYEVENTF_SILENT, 0 );
But if I run RDP, then clicking that button won't go to suspend. If I
click Start on the bottom left of the device, then click suspend, it will
work. It looks like if there is a RDP session, the virtual key VK_OFF
doesn't work.
Is there anyone know any information about this problem? By the way, it
exists on Win CE 4.0 too.
Thanks a lot
Rosalind Tag: kbhit() Tag: 49332
WinCe WebServer
Hi,
Can anyone tell me if there is/or where to get software to use a winCe based
handheld wit intel Xscale proc as an Webserver
Preferebly Php and stuf like that.
Afz. Rudy Tag: kbhit() Tag: 49326
Activesync via USB on a CEPC
On an Intrynsyc XScale board, I can easily run activesync with development machine
That board has a USB Client which allows it to connect to the development PC and run activesync
How do you setup USB on a CEPC to activesync with a PC, given that they are both USB hosts? Tag: kbhit() Tag: 49316
RAS
Hi all
I use Wince4.1
To use RAS, I use "COM1:". But, Dial-up Connection is not connected at RAS. In other word, threre is no dialtion
Is it impossible to use COM1 for RAS Connection? I modified debug.c to not use debug port
Plesase some advices
Thanks Tag: kbhit() Tag: 49314
BlueTooth driver in release and debug
Hi all,
I'm using the Mitsumi WML-C20 bluetooth controller with BCSP. This is
working correctly in a debug image but not in a relase image. When I replace
the btd.dll relase version in the release image with the btd.dll debug
version the image works correctly.
Any suggestions what might cause this problem and can also solve this
(compiler optimisation problem....)?
--
Jeroen Kratz
Chess iT Tag: kbhit() Tag: 49313
About Build
Hi all,
I use ce4.1
I tried to build(Build Selected features) "Standard Shell". But, Build is not completed
The following is error message
Error PB2504: Error spawning #(C:\WINCE410\private\wceshellfe\jupiter\Server\explorer\res)build.ex
I modified "C:\WINCE410\PRIVATE\WCESHELLFE\JUPITER\SERVER\CESHELL\host2.cpp"
I wonder that it is impossible to build "C:\WINCE410\PRIVATE\..."
Thanks Tag: kbhit() Tag: 49312
Keep-Alive
Hi all,
I want to implement the Keep-Alive functionality on a Thin Client
device connected to a Terminal Server. As I know it is a standard
feature of the TCPIP protocol (there're also registry settings for
it), but it is disabled by default. Does someone know how to make it
work? Must be enabled by a custom application? How?
Thank you in advance,
Gabor Varga Tag: kbhit() Tag: 49311
Btpair.exe relies on BTHLINK sample??
This is a multi-part message in MIME format.
------=_NextPart_000_002F_01C40227.178C0950
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hello,
The help file of platform builder said:
"The compiled sample generates a Btpair.exe application. It relies on =
the BTHLINK sample device driver that needs to be compiled and copied to =
the device."
However, I can compile the Btpair project without linking Bthlink.lib, =
and I did not find btpair.c call any function related to Bthlink(for =
example RegisterDevice(L"BTL", 1, "bthlink.dll", NULL) that is mentioned =
in help file). Could anybody explain it? If need I modify the sample =
code?
--=20
Thanks!!
Gordon
------=_NextPart_000_002F_01C40227.178C0950
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2737.800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The help file of platform builder=20
said:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"The compiled sample generates a =
Btpair.exe=20
application. It relies on the BTHLINK sample device driver that needs to =
be=20
compiled and copied to the device."</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>However, I can compile the Btpair=20
project without linking Bthlink.lib, and I did not find btpair.c =
call any=20
function related to Bthlink(for example RegisterDevice(L"BTL", 1,=20
"bthlink.dll", NULL) that is mentioned in help file). Could=20
anybody explain it? If need I modify the sample code?</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>-- <BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks!!<BR>Gordon</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_002F_01C40227.178C0950-- Tag: kbhit() Tag: 49307
PCI interrupt sharing
Hi all,
I'm porting on a pretty standard PCI device driver for CE 4.2, that
originated in 2.12 or sometime back then. Currently, the driver uses
InitializeInterrupt() to set up being notified of interrupts. It
requests a SYSINTR_ value as the OEM index plus the IRQ number.
Obviously, this fails if there are multiple devices that have the same
IRQ.
I see that the PCI bus requests a unique SYSINTR from the kernel and
provides it in the registry. Will it be sufficient to use that value?
What if other devices also use the same IRQ, perhaps a NIC that I
don't have the sources of?
Much of the documentation implies that to share interrupts, it is
necessary to rely on installable ISR handlers, such as GIISR.dll. I
can't tell whether I really need to worry about this or not. My quick
glance says the source appears to do nothing but clear the interrupt,
and not call notify my driver that it ever happened.
So my questions are:
Do I have to load an installable ISR within my PCI driver? Or does
the PCI bus driver handle that for me? Or is it not related?
If an installable ISR is needed, do I still use InitializeInterrupt()
to associate an event with the unique SYSINTR?
Thanks for any help and clarifications,
-E. Nelson Tag: kbhit() Tag: 49302
CETK clientside.exe fails
Hi,
I am trying to get the Windows CE Test Kit working but to no avail.
I have my host PC connected to the target over ethernet. I used
ethernet boot to download the image.
I have added the Windows CE test Kit to the Features list. Platform
builder and the Windows CE test Kit are running on the host PC. Then
from the CE shell I have entered the command
s clientside.exe /i=aaa.bbb.ccc.ddd /p=5555
The debug message warns that "AUTORAS:: Reg does not contain RasEntry
value!!!", I checked autoras.c, the error message shows that autodial
cannot find the phonebook entry in [HKLM\Comm\AutoRas\RasEntry]. Do I
have to add this registry entry to make it work and how to add that?
Thank you so much!
Alex
2548278 PID:da5de23e TID:da359526 0x9a311618: RELFSD: Opening file
clientside.exe from desktop
2548921 PID:da37464a TID:da359526 0x9a311618: InitSharedHeap: 46000000
0 c
2548922 PID:da37464a TID:da359526 0x9a311618: InitSharedHeap: return
46000050
2548926 PID:da37464a TID:da359526 0x9a311618: >>> Loading module
clientside.exe at address 0x10010000-0x10020000
Loaded 'D:\WINCE420\PUBLIC\WPC\RELDIR\BVDMAIN-ARMV4IDEBUG\CLIENTSIDE.EXE',
no matching symbolic information found.
2548960 PID:da5de23e TID:da359526 0x9a311618: RELFSD: Opening file
wcetk.txt from desktop
2549124 PID:7a4108e6 TID:ba3ddfb6 0x9a3bb400: WINDOWCREATED: 0
2549256 PID:3a5b2276 TID:da359526 0x9a311618: AUTORAS:: Reg does not
contain RasEntry value!!!
2549257 PID:3a5b2276 TID:da359526 0x9a311618: AUTORAS::
ARSDecideDial() returns: [DO NOT DIAL]
2549257 PID:3a5b2276 TID:da359526 0x9a311618: AUTORAS:: Not dialing..
2549259 PID:3a5b2276 TID:da359526 0x9a311618: AUTORAS:: IOCTL_ARS_DIAL
returns [Succesfully]
2549261 PID:da37464a TID:da359526 Internal Clientside error while
trying to connect to the server. Clientside will now exit Tag: kbhit() Tag: 49301
RAS to Linux
I'm still having PPP troubles..
I manage to get the my CE target device to go through the initialization of a PPP connection with a Linux box (although I still cant connect via serial to work on my Windows 2000!)... however after the targets assigned IP address is sent to it, and it acks this IP address the Win CE device claims it gets disconnected... but the linux box still thinks the connection is going! Any idea
Thanks Tag: kbhit() Tag: 49300
RNDIS/UDC XSC1BD driver
Hi All,
I have managed to link and include the common RNDIS MDD
driver with my PXA255 UDC PDD Driver but I seem to be
getting errors. I'm assuming (because of previous posts)
that this is due to the IOCTL_HAL_TRANSLATE_IRQ condition
not being implemented in the XSC1BD BSP.
When I check my debug log (after I get a first time
exception) is:
4294769168 PID:81c6a782 TID:81c8ef7a 0x81c6a198:
RndisMini: IRQ -> SYSINTR translation failed
4294769171 PID:81c6a782 TID:81c8ef7a 0x81c6a198: <<<
Unloading module xsc_udc_rndis.dll at address 0x01DD0000-
0x01DE7000
I have read in previous posts that I can specify the
Sysinterrupt in platform.reg like this:
[HKEY_LOCAL_MACHINE\Comm\RndisMini1\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"Sysintr"=dword:30
I use the number thirty cause that is the value that
SYSINTR_USB_CLIENT resolves to:
#define SYSINTR_USB_CLIENT (SYSINTR_FIRMWARE+14)
But I still get the same error.
Do I have to implement IOCTL_HAL_TRANSLATE_IRQ
(OEMTranslateIrq) or have I misunderstood the value
of "Sysintr" in my registry?
Cheers, Andrew Tag: kbhit() Tag: 49299
FlushDCache
CE4.2 use OEMCacheRangeFlush to replace FlushDCache, FlushICache in CE 4.0
I saw there is this funciton which has been implemented in \WINCEROOT\publiccommon\oaks\csp directory by Microsoft, so I did nothing. but when I compile the Windows CE OAL in CE 4.2, still got the following message
error LNK2019: unresolved external symbol OEMCacheRangeFlush referenced in function KernelFindMemor
error LNK2001: unresolved external symbol OEMCacheRangeFlus
Why is that Tag: kbhit() Tag: 49298
debug serial port
Hi
I have an application that uses 2 serial ports on a PXA255(BTUART and FFUART) under WinCE4.10. I now have a need to convert the FFUART back to a debug port to spit out some debug messages. The only way I can get the system to boot up with the debug port functioning is to remove the serial driver which sets BSP_NOSERIAL=1. If I do this, however, my application cannot use the BTUART. Is there a way to have one serial port as a debug port and the other available to my application simultaneously? Currently I can only do one or the other
Thanks
Don Tag: kbhit() Tag: 49297
What Happened to the QFEs???
Am I missing something, or did the CE.NET QFEs get removed from the
downloads area of the MS web site? The only ones I can find are some old
quarterly QFEs on the regular embedded site - nothing newer than Q3 of last
year. This info is at
http://www.msdn.microsoft.com/embedded/downloads/ce.net/wince/default.aspx
There's now a reference to the OEM Embedded site, which is restricted and
requires registration. Are the QFEs no longer publicly available?
--
Dean Ramsier - eMVP
Accelent Systems
http://www.accelent.com Tag: kbhit() Tag: 49295
remove drivers from cloned BSP
Hi,
What's the best way to remove a driver from a platform?
From the FeatureView, I can't simply delete the driver, it's just come back.
I tried deleting it from the cloned .cec file(that created the
platform/project) first,
then goback to PB, then seems to be able to do it. Is this safe; the
correct way to do it.
(assume I decided that I don't needed that driver after I have cloned it and
used it for a
while;for the next prototype)
Is this how the cloning process work when it ask what driver you want to
want
in the cloned BSP? Tag: kbhit() Tag: 49293
Re: PCMCIA with PCI card on CEPC
Chris, Did you able to make it work ? I have same problem now.
> Date: Thu, 17 Apr 2003 14:56:18 -0500
> From: Chris Edgington
> Subject: Re: PCMCIA with PCI card on CEPC
>
> Figured it out .... examining the TI1250.reg file reveals that my Ricoh
> chipset's PCI device ID is 0x0475, whereas the .reg file is looking for
> 0x0476. Hopefully I can get my device to work, even though its an
> earlier rev. Changing the reg file results in the being pcmcia.dll
> loaded, and I can now set breakpoints and see debug messages from it.
>
> Thanks for reading and responding to my messages.
>
> Later,
> -Chris
> Tag: kbhit() Tag: 49291
Serial port
This is a multi-part message in MIME format.
------=_NextPart_000_0034_01C401F9.98459D00
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_0035_01C401F9.98459D00"
------=_NextPart_001_0035_01C401F9.98459D00
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
BlankMy CEPC only has 1 COM port and I use PB4.2. I made a program send =
data to COM1, but nothing send to COM1.
But if I open "System" under control panel, something send to COM1.
I added "Serial port support" to platform. Is there anything I need to =
take care of, like platform setting....
Thanks so much!
------=_NextPart_001_0035_01C401F9.98459D00
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE id=3DridTitle>Blank</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252"><BASE=20
href=3D"file://C:\Program Files\Common Files\Microsoft =
Shared\Stationery\">
<STYLE>BODY {
MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; =
FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; =
FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; =
FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR></HEAD>
<BODY id=3DridBody style=3D"COLOR: #000080; FONT-FAMILY: Verdana" =
bgColor=3D#ffffff=20
background=3Dcid:002f01c40223$81127d40$74bf2cd8@3ComC>
<DIV>My CEPC only has 1 COM port and I use PB4.2. I made a program send =
data to=20
COM1, but nothing send to COM1.</DIV>
<DIV>But if I open "System" under control panel, something send to =
COM1.</DIV>
<DIV> </DIV>
<DIV>I added "Serial port support" to platform. Is there anything I need =
to take=20
care of, like platform setting....</DIV>
<DIV> </DIV>
<DIV>Thanks so much!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<P> </P></BODY></HTML>
------=_NextPart_001_0035_01C401F9.98459D00--
------=_NextPart_000_0034_01C401F9.98459D00
Content-Type: image/gif;
name="Blank Bkgrd.gif"
Content-Transfer-Encoding: base64
Content-ID: <002f01c40223$81127d40$74bf2cd8@3ComC>
R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm6sq2
7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYrPXGlfr/Yo/VW45e7amp2tou/lW
xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw==
------=_NextPart_000_0034_01C401F9.98459D00-- Tag: kbhit() Tag: 49290
Setting baud rate prior to RasDial.
I'm trying to change a unimodem serial port baud rate prior to calling
RasDial on my Windows CE .NET 4.1 device. I am successfully setting the baud
rate when the line is configured with the RAS server, but now I am working
on improving dial out capabilities.
Below is code that I am trying from which I am trying to set the baud rate.
I removed some comments and error checking/handling. All of these API calls
succeed without error! I'm afraid my changes aren't being applied because
I'm specifying the modem line to use by device name rather than a line
handle. My code that configures the RAS server uses RasIOControl with the
RASCNTL_SERVER_SET_PARAMETERS flag to change the device configuration, I'm
wondering if I have to do something similar prior to calling RasDial rather
than using lineSetDevConfig.
lineGetDevConfig(dwDeviceID, pVSDevCfg, L"comm/datamodem");
UCD.dwCommand = UNIMDM_CMD_CHG_DEVCFG;
UCD.lpszDeviceClass = L"comm/datamodem";
UCD.lpDevConfig = pVSDevCfg;
UCD.dwOption = UNIMDM_OPT_BAUDRATE;
UCD.dwValue = dwBitsPerSecond;
rc = lineDevSpecific(hLine, 0, NULL, &UCD, sizeof(UCD));
lineGetMessage(hLineApp, &LineMessage, INFINITE);
dwResult = lineSetDevConfig(dwDeviceID, (PBYTE)pVSDevCfg +
pVSDevCfg->dwStringOffset, pVSDevCfg->dwStringSize, L"comm/datamodem");
Please let me know if you have any ideas.
Thanks,
George McCollister Tag: kbhit() Tag: 49288
XIP vs RAM
Thanks for the info Dean.
I copied to responses to a new discussion thread as the subject title really
did not apply.
Would like some more input if anyone else who would like to chime in.
I would think a biggey would be $$. Not having the OS in RAM would save
megabytes (my images are approaching 25Meg) this is now freeed for
scratch. Maybe the system can even get away with the next small size RAM
($$).
Does anyone know if/what the premimum of the "K" Strata FLASH is?
I would think the XIP OS would also be inherently more stable as it's
exicuting
from Read Only Memory, therefor there is less of a chance the OS could self
destruct
itsself??
Also what are the steps needed to transition to a XIP OS? I know the
bootloader
would need some work. Is it a simple matter of checking the "Enable image
for flash" ???
See inline...
--
Dean Ramsier - eMVP
Accelent Systems
http://www.accelent.com
"A. User" <dve@byby.com> wrote in message
news:u00PCkeAEHA.2480@TK2MSFTNGP11.phx.gbl...
> I am very interested in Dean's comments.
>
> I was under the impression there was quite a difference between executing
> from Flash as opposed to RAM. Do you have any numbers?
>
> I would like to see a comparison ... something like this:
> feel free to expand and/or correct me where needed.
> All opinions welcome
>
> FLASH (XIP)
> Slower execution
Yes, Flash is slower than RAM, no question. However, the impact can be
minimized by making use of high performance features in flash. For example,
using the burst mode of regular J3 strataflash is much faster than standard
access. If you switch over to using synchronous strataflash (K3) it's very
fast. Approaches the performance of running from RAM. Other techniques
include compressing modules that impact performance. This causes them to be
decompressed and run from RAM. Careful tuning of the system this way can do
wonders.
> Saves RAM, system needs less RAM as RAM is only needed for stack,heap,
> variables etc. and not OS
> bootup time faster.
> harder to setup (?)
Not sure where this comes from, booting from XIP flash is the simplest thing
possible. There are no extra steps to be concerned about - just get the
image into flash and you're done.
> harder to do OS Flash upgrades
If you're upgrading from within the OS, yes. It's very challenging to
upgrade flash when you're executing from it, for several reasons. This is
why most solutions rely on the bootloader to do upgrades. This can be a
shared task with the OS if desired and there's enough RAM available.
> does (not) work with debugger (??)
You can't step through code if it's in flash (the debugger can't set
breakpoints in ROM). Other aspects of the debugger do work. You can get
around this by loading the image into RAM when doing debugging. You can
also set the C flag to compress the module you're interested in. That will
cause the module to be loaded into RAM, where it can be debugged.
> does (not) work with emulators (??)
Don't know how this applies. Why be concerned about where the image is
stored if you're running from an emulator?
>
> RAM
> traditional build
> faster
> on line FLASH OS upgrades easer as OS is in RAM
>
>
> I know some are subjective any other pros/cons you can think of ?
>
>
>
> "Dean Ramsier" <dramsiernospam@accelentnospam.com> wrote in message
> news:eMdf4mSAEHA.2348@TK2MSFTNGP09.phx.gbl...
> > Since you're using BinFS and not attempting to XIP from strataflash (a
> > questionable decision in my opinion) you should be able to use the NOR
> flash
> > driver available in PB. In fact, since BinFS is already running, the
> block
> > driver is apparently already there. All you need to do is get the
> registry
> > settings correct to format/partition/mount the remaining part of the
> flash.
> > The hive registry can then be targeted to that file system. This can
all
> > happen automatically.
> >
> > Why are you choosing to use BinFS instead of executing directly from
> flash?
> > It's much more complicated, and comes with performance penalties over
> > executing directly in place. The only advantage is that SDRAM is faster
> > than J3 flash, but paging code in and out will negate much or all of
that
> > advantage. It also costs you RAM space. BinFS is primarily intended
for
> > devices where the image is stored on a media that doesn't support XIP,
> NAND
> > flash.
> >
> > --
> > Dean Ramsier - eMVP
> > Accelent Systems
> > http://www.accelent.com
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
> Tell
> > Microsoft!
> > https://www.windowsembeddedeval.com/community/newsgroups
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> >
> > "Fabio - ElettronicaGF" <fmelandri@elettronicagf.it> wrote in message
> > news:3ad3b9c6.0403030250.684fbadf@posting.google.com...
> > > Hi all,
> > > I'm a newbie in WCE.NET and Platform Builder 4.2 and i'm trying to
> > > understand how to use my on-board flash for the OS image and
> > > data/registry storaging.
> > > My platform is a pxa255 processor board with 32M strata flash (2 x
> > > 28f128j3a) and 64M sdram.
> > > My bootloader create a BINFS partition and an EXTENDED partition on
> > > the rest of the flash memory.
> > > The BINFS partition serves for the OS image (non-XIP mode).
> > > Is it possible to use the EXT partition for persistent storage and
> > > hive based registry ?
> > > Do I need for something like Intel IPSM or the NOR strata flash driver
> > > (from PB) and some registry settings (as I see in PB Help) are enough?
> > > Do I have to modify my bootloader to create a FAT partition instead of
> > > an EXTENDED?
> > > Now, when my platform boot, I can see (with stguil) only a BINFS
> > > partition.
> > > I would like to have the storage/registry partition automatically
> > > created at boot time, is it possible?
> > >
> > >
> > > Thanks in advance,
> > > best regards.
> > >
> > > Fabio Melandri
> > > ElettronicaGF
> >
> >
>
> Tag: kbhit() Tag: 49286
file system filter driver not loading in I MATE Smart Phone 2003 device ?
Hi
I developed a file system filter driver for SmartPhone 2003 device
I have I mate smartphone 2003 device.
I am using this filter driver for StorageCards.
When I try to run my filter driver in emulator using ramdisk block driver
it works fine.
but when i try to use in imate smartphone 2003 device its not loading into
filesys.exe process.
I registried my file system filter driver under FAT file system.
so when ever StorageCard inserts into device fatfs will load into
filesys.exe and also filter drivers.
I verified signing also, still the problem is same.
can any body help me.
regards
chakka sudhakar Tag: kbhit() Tag: 49282
DHCP, VBridge and Non-debug TCP/IP Communication
I'm using PB4.2 to create a BSP for a custom headless device. At the moment
I have an Ethernet bootloader and an OAL that I think is nearly complete
(foolish thing to say!).
I use KITL over the Ethernet, with VBridge and VMini to share the Ethernet
connection. I've added the code for VBridge/VMini as described in the PB
Help, and I've also added the registry entries, which I can see on the
target using the Remote Registry Editor. I compile the OAL code
with -DIMGSHAREETH in the compiler options defined in the sources file.
The Communication Services features I have in my test platform are:
Networking Features:
NDIS 5.1
Network Utilities
TCP/IP
Winsock Support
Servers:
Core Server Support
Web Server (HTTPD)
The following environment variables are defined for the BSP in the Platform
Settings:
BSP_NOCOMCARD 1
BSP_NOPCMCIA 1
BSP_NOSERIAL 1
BSP_NOSTORAGE 1
BSP_NOUSBSER 1
When I build the system with the IP address hard-wired (and defined in the
registry) it all works fine. The network utilities work, and the target
responds to ping and http requests from other machines.
The problem is, when I build it to use DHCP, non-debugging TCP/IP packets
are apparently not handled correctly. For example, if I ping the target from
another machine, the ping requests time out. Also, the network utilities on
the target don't work - ping fails, and ipconfig reports that the IP address
and subnet mask are both 0.0.0.0. By adding code to output debug info, I
found that when I ping the target from another machine, the packets sent by
ping are correctly handled by VBridgeKIndicateOneRxBuffer, i.e. they are
taken by VMini, but then they seem to get lost after that.
Do you know what might be missing, or else not working? Currently I don't
have any code in the OAL to put the IP address obtained from DHCP in the
registry - should the OAL be doing this, or does something in the kernel
take care of that?
Regards,
Douglas Wilson Tag: kbhit() Tag: 49273
Can I have two FlashFx disks at the same time ?
I have two separate flash banks, located at different addresses. I can mount a flash disk one at a time, but not both at the same time
The second instance failes. If I disables the first instance, the second instance succeedes
Is there a limitation in the FlashFx driver that prevents me from having two flash disk ?
; HIVE BOOT SECTIO
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashFX
"DLL"="FlashFX.DLL
"FSD"="FATFSD.DLL
"Prefix"="DSK
"Ioctl"=dword:
"Order"=dword:
"Index"=dword:
"Flags"=dword:100
"Start"=dword:180000
"Length"=dword:080000
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}
"ProfileName"="FlashFXDisk1Profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashFXDisk1Profile
"AutoMount"=dword:
"AutoPart"=dword:
"AutoFormat"=dword:
"MountFlags"=dword:
"Name"="Datalight FlashFX
"Folder"="FlashFX Disk
"DefaultFileSystem"="FATFS
"PartitionDriver"="mspart.dll
; END HIVE BOOT SECTIO
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\FlashFX1
"DLL"="FlashFX.DLL
"FSD"="FATFSD.DLL
"Prefix"="DSK
"Ioctl"=dword:
"Order"=dword:
"Index"=dword:
"Start" =dword:0800000
"Length"=dword:0080000
"IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}
"ProfileName"="FlashFXDisk2Profile
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashFXDisk2Profile
"AutoMount"=dword:
"AutoPart"=dword:
"AutoFormat"=dword:
"MountFlags"=dword:
"Name"="Datalight FlashFX2
"Folder"="LoopDisk
"DefaultFileSystem"="FATFS
"PartitionDriver"="mspart.dll Tag: kbhit() Tag: 49269
italian keyboard layout
Hi,
now I need to load the italian keyboard layout in my project in platform
builder 4.2.
I think I must put a registry entry like this one in project.reg but I don't
know the italian id:
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD]
"Keyboard Layout"="00000409"
Is it correct ?
What is the italian id ?
I hope I don't have to create all the language package in
C:\WINCE420\PUBLIC\COMMON\OAK\DRIVERS\KEYBD\DEVICELAYOUTS\PS2_AT...
Then if I go in the Menu, Platform, Settings and click on Locale I have all
the Locales regional settings including italian and I have italian as
default setting but above in the codepages I don't have any italian record,
just some latin....
This is confusing me a lot ....
Thanks
Carlo Tag: kbhit() Tag: 49268
About RAS
Hi all
I use WinCE 4.1 and Rockwell modem. And I am tryng to connect RAS Server
The point of problem is no dialtone
I tried to connect RAS server as the following
Make New Connent -> Dial-Up Connection -> "Hayes Compatible on COM1:" -> Phone number:145 -> Finish, and "Connect
The following is connection result
Opening Port -> Dialing "145" -> messagebox lanuc
(Message: Threre is no dialtone. Make sure your modem is connected to the phone line properly
I already had connected the phone lline properly
For your reference, I had modified "debug.c" to use COM1 as UART(in other word, It disable COM1 as debug port)
But, when I use "Manual Dial", I can listen to dialing tone
I don't know why no dialtone
If you allow, would you like to give me some info about thie issue
Thanks Tag: kbhit() Tag: 49264
Auto hiding Cursor
Hi ,
I want that my cursor should not appear on my screen for
that i set BSP_NOCURSOR = 1 but still the cursor is
appearing on my screen.
I did this by the following way
Right Click -> Settings
From Setting select the Environment Tab select New
In Variable Name : BSP_NOCURSOR
Variable Value : 1
Is anything wrong with the above procedure if so then
please help me.
Regards
Purohit. Tag: kbhit() Tag: 49263
Application Download Issue
hi All
i am in bit fix and there are couple of issues regarding application porting
I am created a Windows Thin Client inage using the PB 4 and successfully downloaded to m
CEPC it downloads properly and also shows the WBT wizard.i am Using Ethernet Connectio
for OS Image Downloading
After Downloading since the platform Builder shows all the Target Control target messages and debugger connected and i could see that Symbols being Loaded one after the Other..
the Issues ar
1) After i see the WBT Wizard i Complete it and i give my development workstation as server and some user name the Windows think Client Doesnt Connects. the only other Option is SHutdown...wat could be the issue My Development machine is a Windows 2k and we are on Workgroup with No domain Controller.So everytime the remote Desktop Client Comes i am Stuck as to go where after that .I want to get the CE desktop running
Since after download the Image goes to the RAM so its not sustaining any changes i am making on the thin Client and i cant get a some flash chip
I have assigned a IP to CEPC which is 10.20.1.60 and my development workstation IP is 10.20.1.6.even though the IMage download happens properly i cant ping my CEPC from th
Workstation wat could be issue regarding this
2) the second issue is I am have created application in EVC 4.0 and once i download the OS image from the PB 4 and the WBT wizard Appears i try to Connect EVC USing KITL/CES
option from the SDK. but it says Failed to Connect to device
Although the PB is connected already and as i read from the Newsgroup items once the PB gets connected and u can see debug messages the EVC should connect but its not i tried the TCP/ip connection also but to no avail
I have also got a NULL modem Cable connected on the COM ports and i have cheked thje cable its working fine.
SO evc is not connecting to the CEPC
if any one give some replies to the above issues it would be really gr
thjanx in advanc
Vish Tag: kbhit() Tag: 49262
can anyone give me some clue about use xip in smdk2410
hi,every.
Thanks for your attention.
I want to use xip feather in smdk2410,with pb 4.2,can any one help me give
me some clue about it?
Thanks Tag: kbhit() Tag: 49261
How do I emulate the kbhit() function?
Running a window console program. Need to know when the 'ESC' key is pressed.