Where does this Debugbreak() int imagelist.cpp come from?
Hi everyone,
My MFC program stops at the following debugbreak when I start it:
4294813649 PID:a1ef5b5a TID:e1e68756 0x81e4b000: Unknown: DEBUGCHK failed in
file d:\jameson\private\winceos\coreos\gwe\controls\imgctl\.\imagelist.cpp
at line 905
and the code jumps to kfuncs.h, line 102 where it calls "debugbreak();"
#elif defined(x86)
_inline void DebugBreak() {
__asm int 3
}
I checked my pc and I don't have any imagelist file, but I have a imgctl lib
file. If I press F5, the application starts as is nothing has happened. But
I can't do the same with a release build, the application doesn't start.
This Debugbreak comes after the CChildView::OnCreate() returns 0 and before
CMyApp::InitInstance
{
................
pFrame->ShowWindow(m_nCmdShow);
pFrame->UpdateWindow();
}
lines are executed. I can't go with F11 until I find the debugbreak cal
because at some stage the CEPC restarts itself and the PB loses connection.
The same restart occurs when I want to debug my code using eVC and the
emulator. I have 2 threads
How can I solve this? Please help me.
Selin Tag: where can i find more technical materials for windows automotive in english? Tag: 40672
migrating display driver from WinCE 2.12 to CE.NET 4.1
Hello,
I want to migrate the display driver for standard VGA provided in
WinCE 2.12 to WinCE .NET 4.1
I have compiled the dource code for Drivers under CE.NET and built the
driver DLL.
then I wrote the following entries in the platform.reg
[HKEY_LOCAL_MACHINE\System\GDI\Driver]
"Display"="ddi_vga8.dll"
and also included the ddi_vga8.dll in the image.
When I boot this image, the display remains blank.
The image is working properly. It also writes the hive-based registry
on the disk, but the display remains blank.
How to solve this problem?
Please help me.
Thnaks
BNP Tag: where can i find more technical materials for windows automotive in english? Tag: 40671
RNDIS Question - USBConnect4.TXT [0/1]
Hi everyone,
I'm in the process of porting across the netchip 2890 usb RNDIS driver
to my Hitachi 64404 hardware. I'm at the point where the endpoint 0
setup appears to be working. I've installed the rndis driver and a
SEND_ENCAPSULATED_COMMAND message is sent to the device, at which point
nothing else happens. No further packets are received and nothing else
seems to happen. I've got no other hardware to test this on, so I'm not
sure what else is supposed to happen. Does anyone know what I should be
sending in response or what ishould be waiting for at this point? I've
attached some debug output from my serial port to indicate what's going
on. Any suggestions on where to go from here are appreciated.
Thanks,
Glenn. Tag: where can i find more technical materials for windows automotive in english? Tag: 40666
Where to find ethernet NDIS driver sample code
Hi,
Where to find NE2000 ethernet NDIS driver sample
code and registry.
Regards
-Weijie Tag: where can i find more technical materials for windows automotive in english? Tag: 40663
problems creating the keyboard device layout
I am following the MSDN's instructions for "Creating the
Keyboard Device Layout", and am having problems as follows:
1. After running the Kbdgen.exe tool, two and only two
files were created:
WINCE420\PUBLIC\TestPlat\TestPlat.log, and
WINCE420\PUBLIC\TestPlat\TESTPLAT_SetEnv.bat
Step 5 of the instructions state "From the files that the
kbdgen.exe tool generated, add the file ending in DL to
the DeviceLayout directory." Neither of the two files
created by Kbdgen.exe have DL anywhere in the file names
or in the contents of the files. When i ran the
Kbdgen.exe tool, i gave the arguments of the 8042 dll and
input local 00000409.
What and how many files (and where) SHOULD have been
created by Kbdgen.exe, and what do i need to change to
make that happen?
2. Step 3 refers to the makefile.def file in the directory
WINCE420
\Public\common\oak\drivers\keybd\devicelayouts\ps2_at\00000
409. Since the file in that directory is named makefile
(without a .def extension), can i correctly assume that
what the documentation is refering to is makefile without
the .def extension?
Thanks in advance!
MJ Tag: where can i find more technical materials for windows automotive in english? Tag: 40661
EnterCriticalSection DEBUGCHK in 4.2
I have been porting some proprietary code from Windows CE 3.0 to CE .Net 4.2
and occasionally hit a DEBUGCHK in EnterCriticalSection. Call stack is:-
COREDLL!DebugBreak() line 102 cscode.c
COREDLL!EnterCriticalSection()
MYCODE!MyClass::MyMethod()
DEBUGCHK call appears to be:-
DEBUGCHK(!(DWORD)hTh & 1))
Where hTh appears to be a thread handle. What is the significance of the
LSBit here and how( if at all ) could my code be effecting this
Thanks in advance
Rimmer Tag: where can i find more technical materials for windows automotive in english? Tag: 40658
FMD NOR Flash driver error message
Hi ,
I am implementing FMD layer for a NOR Flash , I am doing the following :
- I am using 2 MB of the flash only for the File System ( 0xBF500000-0xBF6FFFFF )
- Block size in this area of the flash is 64K , ( 32 Blocks in the 2 MB area )
-Every block contains 120 sectors ,
-Total number of sectors = 120*32= 3840 ,, and it is multiple of 256 ( 3840=256*15 ) .
I get the following message in the debug window after the driver loads :
//--------------------------------------------------------------------------------
FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical sector address for logical sector 0x00000000
--------------------------------------------------------------------------------//
What is the explination of this message ?
Full log is :
//--------------------------------------------------------------------------------
Loaded symbols for 'D:\WINCE420\PUBLIC\RG\RELDIR\88E6318_MIPSIV_FPDEBUG\FLASHDRV.DLL'
4294767733 PID:41fe6372 TID:41feaf42 0x81fe6000: INFO: FMD_Init: Flash Address=0xbf500000 Length=0x200000.
Loaded symbols for 'D:\WINCE420\PUBLIC\RG\RELDIR\88E6318_MIPSIV_FPDEBUG\MSPART.DLL'
Loaded symbols for 'D:\WINCE420\PUBLIC\RG\RELDIR\88E6318_MIPSIV_FPDEBUG\RELFSD.DLL'
4294767742 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:BuildupMappingInfo() - Enter.
4294767803 PID:41fe6372 TID:41feaf42 0x81fe6000: >>> Loading module mspart.dll at address 0x03E70000-0x03E7B000 (RW data at
0x01FEF000-0x01FEF494)
4294767804 PID:41fe6372 TID:41feaf42 0x81fe6000: Loading partition driver mspart.dll hModule=81FAB398
4294767804 PID:41fe6372 TID:41feaf42 0x81fe6000: Driver mspart.dll loaded
4294767804 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't exist for
logical sector 0x0!!!
4294767805 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical sector address for
logical sector 0x00000000
4294767805 PID:41fe6372 TID:41feaf42 0x81fe6000: Opened the store hStore=000B3F00
4294767805 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't exist for
logical sector 0x0!!!
4294767806 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical sector address for
logical sector 0x00000000
4294767806 PID:41fe6372 TID:41feaf42 0x81fe6000: NumSec=3600 BytesPerSec=512 FreeSec=0 BiggestCreatable=0
....
....
....
....
....
--------------------------------------------------------------------------------//
Thanks in advance
--
Maen Tag: where can i find more technical materials for windows automotive in english? Tag: 40654
GWES DEBUG MESSAGES
My system: PXA250, 32 MB FLASH, 32 MB RAM, PB4.2.
I want to see the debug/retail messages from the modules GWES and NK.
My kitl implementation doesn't work, so I use other way to activate the
debug messages.
1. In my desktop PC, I launch regedit program.
2. I add a new key called [HKEY_CURRENT_USER\Pegasus\Zones].
3. I add two dword values:
- NK Kernel: REG_DWORD: 0x0000ffff.
- GWE Server: REG_DWORD: 0x0000ffff.
4. I launch PB4.2.
5. I make a rebuild of a debug image.
6. I load the OS image in my board.
7. I reset the board.
But I only see the messages of RETAILMSG and DEBUGMSG ( 1,.....
For instance, If in the kernel there are a message like this:
DEBUGMSG(ZONE_MEMORY, (TEXT("AllocHandle: pci=%8.8lx pvObj=%8.8lx
pprc=%8.8lx\r\n"),pci, pvObj, pprc));
I never can't see it.
But if the message is like this:
DEBUGMSG (1, (L"SC_CloseAllHandles: CloseHandle(0x%8.8lx) Failed on Process
exit, zapping the handle\r\n", phd->hValue));
I can see it.
So the process of adding a key to the desktop registry to see debug
messages is not working.
Any ideas?
What is the file where is stored the information about the debug zones of
GWES? In GWES.EXE or in other file? Tag: where can i find more technical materials for windows automotive in english? Tag: 40652
How to enable ethernet When the KITL is disabled
Hi,
when enabling KITL my ethernet can work normally.
But when disabling KITL my ethernet can not work.
My ethernet driver is NE2000-compatible which is
provided by Microsoft.
How to enable ethernet when KITL is disabled?
Regards
-Weijie Tag: where can i find more technical materials for windows automotive in english? Tag: 40650
Driver - Application communication
hi ,
How can I register a callback in application which is to be called from a
driver (for eg: serial driver) ?
Please help me...
regards
Ajith Tag: where can i find more technical materials for windows automotive in english? Tag: 40644
multiXIP..Binfs
hi,
i m trying for MultiXip for .net4.2 and xcale 250
platform..
i have included :
the following in config.bib
DRIVERS 81E41000 001BF000 RAMIMAGE
and included the following in paltform.bib:
battdrvr.dll $(_FLATRELEASEDIR)\battdrvr.dll DRIVERS SH
but i get the following error:
Error: Unknown memory type found 'DRIVERS'
Error: failed setting line
makeimg: FATAL ERROR: Command returned non-zero exit code
1 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code
1 (dec).
could anyone tell me the solution for the same
thnx
atul Tag: where can i find more technical materials for windows automotive in english? Tag: 40642
How to Control the Volume of Sound Files in WinCE .?
Hi ,
How to Control the Volume of Sound Files in WinCE .?
I have written an audio driver for WinCE to use instead of wavedev.dll. I am
getting the GetVolume and Setvolume indication when changing the volume
control of Media player. I want to know who is increasing the volume,
waveapi.dll or wavedev.dll ?. When increasing the volume , does the data
getting at the wavedev.dll is volume increased one ?
Thanx in advance
Ajith Tag: where can i find more technical materials for windows automotive in english? Tag: 40640
HOw to enable ethernet without KITO
Hi
When I new a platform with KITO, I can use
PIE to access Internet, but when I new a platform
without Kito, I can not use PIE to access Internet.
I use NE2000-compatible driver, which is provided
by Microsoft.
How to resolve the problem.
Regards
-Weijie zhu Tag: where can i find more technical materials for windows automotive in english? Tag: 40638
DiskOnChip driver does not work in WinCE 4.2
I run to a problem.
I use new Platform Builder for WinCE 4.2 and I use driver
for DiskOnChip (M-Systems) supplyed with Platform Builder
4.2. And nothing work!
But when I use Platform Builder for WinCE 4.1 with driver
from M-Systems- all OK.
What is may be wrong in new Platform Builder 4.2? Tag: where can i find more technical materials for windows automotive in english? Tag: 40637
PMDDI.dll
Hi all.
I migrate 4.1 to 4.2 using assabet board.
I have problem that is about pmddi.dll.
In 4.1, lcd driver is made up with linking library. But in 4.2, I cannot
find pmddi.dll.
What should I do in this situation. Please help me, if anybody that have
same experience is here
Best Regards. Tag: where can i find more technical materials for windows automotive in english? Tag: 40636
How to fixed & add interrupt value in Biosloader ?
I've to fixe some device interrupt value before loading nk.bin.
My platform is X86 architecture.
should I modify Biosloader's source code to get what I want ?
Could someguys tell me some hints to fixe that above that.
Thanks a lot. Tag: where can i find more technical materials for windows automotive in english? Tag: 40635
problems manually setting DNS servers in windows CE .NET
Hi there,
I am using platform builder 4.2, building debug images
and transferring them over ethernet to a CEPC. My
platform is based on the Enterprise Web Pad.
When I attempt to manually set DNS servers on my CE
machine, the network connections window locks up, and the
following debug error message is displayed on the
development workstation in a continuous loop every second
or so:
AUTORAS:: Reg does not contain RasEntry value!!!
Any ideas? Am I missing some registry settings or
something?
Thanks,
David Tag: where can i find more technical materials for windows automotive in english? Tag: 40628
G.729 codec
how can I find a plugable G.729 codec for CE.Net 4.2 ?
can any body help me? Tag: where can i find more technical materials for windows automotive in english? Tag: 40619
[HKEY_LOCAL_MACHINE\Init\BootVars]
I want to use RAM based registry and registry backup. However, when
calling the RegFlushKey, it creates a file on the persistent storage.
Is it partially enabled the hive based registry? Is the Platform
Builder treat it as hive based registry when it saw the
[HKEY_LOCAL_MACHINE\Init\BootVars] registry entry? Tag: where can i find more technical materials for windows automotive in english? Tag: 40613
Help! I have a very simple question about generation of unicodes in CE .NET 4.2
According to the MSDN documentation for CE .NET 4.2, the
KeybdDriverVKeyToUnicode function is responsible for generating the
correct Unicode characters. I located this function in
WINCE420\PUBLIC\COMMON\OAK\DRIVERS\KEYBD\LAYMGR\laymgr.cpp. This
function is the same one that is located in a different file in the
PLATFORM tree of CE 3.0.
My problem is that whatever changes I make to laymgr.cpp to change the
unicode character has no effect on the target, even if I clean and
rebuild. This is the case even if i hard code the character as a "Q"
so that ALL keystrokes will register that character:
*pcCharacters = 0x0051;
I have done a text search on the entire WINCE420 directory tree, and
laymgr.cpp is the only source file with the KeybdDriverVKeyToUnicode
function.
What must i do to allow my changes to have an effect on the target
machine?
Thank you very much
Martin Johnson Tag: where can i find more technical materials for windows automotive in english? Tag: 40607
Platform Builder does not start!
Things got really messy now...
I was working on cloning BSP in my PB4.1 and I just went to
File/Manage Catalog Features to remove my new BSP from Catalog.
When I clocked "remove" button on this window PB crashed.
Now I am not able to start PB at all. It fails with a message
"Unable to initialize Catalog" followed by the "Runtime error"
window and cepb.exe crashes. What can I do to avoid reinstallation? Tag: where can i find more technical materials for windows automotive in english? Tag: 40600
Bug in BINFS+FAT+NANDFLASH
I think we have identified a big fatal problem with the
BINFS+FAT+NandFlash. According to my observation now, it is an aparent bug
in MS's code, but due to lack of relate source code, I can not figure out
where goes wrong.
To simply put the problem: when writing data files on FAT partition, the
BINFS partion will sometimes (actually, with very high frequency) get
corrupted.
Here is the full version of the story:
1). 2 partitions are created on NandFlash in bootloader, BINFS + FAT.
2). block 0x00 - block 0x0B are reserved for bootloader therefore out of
file system, file system(MBR) starts on NandFlash block 0x0C. Followed by
BINFS and FAT partition.
3). MBR, BINFS are marked with READ_ONLY. While FAT partition starts on a
block boundary, not marked with READ_ONLY.
4). Windows CE works very well when the boot up, with BINFS+MultiXIP.
5). FAT on NandFlash works fine too at first sight. A "ResidentFlash"
folder appears in file explorer. Download a Mp3 songs to this folder, play
it without problem.
6). No problem appears if you don't do anything else, power on/off the
board, everything works just fine.
7). Problem happens when we run a test application.
8). What the test app does is very simple, to create a file on under the
"ResidentFlash" folder and write some random data to the file. Then
repeatedly create with the same file name and overwrite it.
9). The symptom is after a few minutes, the test app will erase NandFlash
from right start the file system, block 0x0C. If running enough long time,
the whole file system (MBR, BINFS) on NandFlash will be erased.
To dig out what happened exactly, I tried to print out a message in the
FMD_EraseBlock function to see which block is gonna be erased. Here are what
I found:
1). We are testing on a 32M NandFlash, so totall have 2000 (0x7D0) blocks.
2). FAT partition takes control of 0x550 - 0x7CF.
3). When the test app first time writes a file, file system will try to
erase some blocks according to the file size, for example, from 0x551 -
0x650.
4). Second time to overwrite the same file, will cause the following
blocks to be erased, for example, from 0x651 - 0x751.
5). Problems may possible happen when the searching for a block to erase
wrap back to the boundary 0x7CF.
6). The problem is not happening every time when wraping back from 0x7CF.
In some times, 0x7CF is followed with 0x551, which is the correct case. But
in some times, 0x7CF is followed by 0x0C, which is the MBR block, then 0x0C
is followed by 0x551, or sometimes, 0x0D, ...
Following is some patterns:
0x7CF, 0x551, 0x552 ... (correct case)
0x7CF, 0x0C, 0x551, ...
0x7CF, 0x0C, 0x0C, 0x551, ...
0x7CF, 0x0C, 0x0C, 0x0D, 0x551, ...
0x7CF, 0x0C, 0x0C, 0x0D, 0x0E, 0x551, ...
If the application runs enough long time, it will erase the whole file
system.
I also tested with the Monolithic NK image condition. In this case, the
bootloader only creates a FAT partion, the NK image is stored on reserved
blocks, out side of the file system's control. In this case, it seems there
is no problem when test application erasing wraps back from 0x7CF block.
I hope I have illurstrate this problem very clearly. I have tried to break
the OS when trying to erase block 0x0C, but due to lock of related source
file, I have no idea, when the file system tries to erase the MBR block.
Best regards.
Rui Tang
Centrality Communications Inc Tag: where can i find more technical materials for windows automotive in english? Tag: 40584
USB on wince.net 4.1
Hi
Below is an extract from my platform.reg, this allows auto connection of our
device to a host pc when the usb lead is plugged in. This works on wince
3.0, I try the same code in wince 4.1 and it doesn't work, the
[HKEY_CURRENT_USER\Comm\RasBook\USBCradle] seems to be ignored. The key is
available on the system and I can view it and its content using a registry
editor.
Any help would be appreciated
Regards
Tariq
[HKEY_CURRENT_USER\ControlPanel\Comm]
"AutoCnct"=dword:1
"Cnct"="USBCradle"
;;;; "Cnct"="InfraRedLink" ;; DEV USE ONLY - shipped builds should default
to USB
[HKEY_CURRENT_USER\Comm\RasBook\USBCradle]
"Entry"=hex:\
08,02,00,00,00,00,00,00,00,00,00,00,00,00,E6,AC,\
02,00,00,00,10,2A,15,8C,F2,DF,01,10,00,00,00,00,\
F2,DF,00,00,00,00,00,00,00,00,00,00,4C,56,10,00,\
78,F9,19,00,0A,00,00,00,BC,E6,06,10,C4,0F,0D,00,\
18,AE,19,00,00,00,00,00,02,00,00,00,F2,DF,01,10,\
AE,01,00,00,F2,DF,01,10,18,AE,19,00,D4,E6,06,10,\
14,D8,05,00,CA,8C,E6,AC,88,08,1A,00,60,08,1A,00,\
EC,E6,06,10,F8,58,F9,01,80,B9,FD,01,01,00,00,00,\
00,00,00,00,07,00,00,00,60,08,1A,00,03,00,00,00,\
8E,01,00,00,01,00,00,00,88,08,1A,00,03,00,00,00,\
8E,01,00,00,01,00,00,00,01,00,00,00,24,E7,06,10,\
14,D8,05,00,24,E7,06,10,00,00,00,00,30,DA,08,00,\
01,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,\
50,E7,06,10,05,00,00,00,B0,06,1A,00,B0,06,1A,00,\
5C,E7,06,10,50,59,F9,01,28,E5,12,00,7E,8F,E6,AC,\
01,00,00,00,6C,E7,06,10,A4,E4,07,00,28,E5,12,00,\
BC,69,F9,01,80,B9,FD,01,00,05,1A,00,90,04,0D,00,\
3E,18,EE,0C,80,AB,19,00,00,00,00,00,F2,DF,01,10,\
0A,00,00,00,64,37,A8,C0,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,\
64,00,69,00,72,00,65,00,63,00,74,00,00,00,0D,00,\
01,00,00,00,01,00,00,00,01,00,00,00,80,D7,0C,00,\
01,00,55,00,53,00,42,00,20,00,43,00,61,00,62,00,\
6C,00,65,00,3A,00,00,00,02,00,00,00,F2,DF,01,10,\
00,00,00,00,00,00,00,00,10,A1,14,8C,00,00,00,00,\
90,68,19,0A,90,68,19,0A,00,00,00,00,0A,00,00,00,\
00,00,00,00,00,00,F6,01,00,00,00,00,81,00,00,00,\
10,2A,15,8C,00,00,00,00,30,E8,06,10,70,03,07,80,\
30,E8,06,10,1F,00,00,00,00,00,00,00,01,00,00,00,\
01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,A8,05,1A,00,00,00,00,00,00,00,00,00,\
01,00,00,00,28,E5,12,00,7E,8F,E6,AC,01,00,00,00,\
78,E8,06,10,7C,8E,03,00,28,E5,12,00,00,00,00,00,\
0A,00,00,00,04,15,03,80,F2,DF,01,10,91,00,00,00,\
10,2A,15,8C,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,\
C4,E8,06,10,5C,03,0D,00,80,AB,19,00,89,01,00,00,\
02,00,00,00,F2,DF,01,10,00,AB,19,00,02,00,00,00,\
0A,00,00,00,80,AB,19,00,E4,E8,06,10,F0,E8,06,10,\
A8,DB,0C,00,00,AB,19,00,21,00,00,00,F2,DF,01,10,\
00,00,00,00,03,00,00,00,05,00,00,00,84,0C,1A,00,\
00,00,00,00,00,AB,19,00,B0,05,00,00,40,00,00,00,\
00,00,00,00,00,10,00,00,24,E9,06,10,D0,7A,21,01,\
18,08,18,00,02,00,00,00,08,00,00,00,06,00,00,00,\
FF,FF,FF,FF,89,00,0C,00,00,00,00,00,06,00,00,00,\
FF,FF,FF,FF,02,00,00,00,68,E0,18,00,07,00,00,00,\
00,00,00,00,F2,DF,01,00,80,00,00,00,FF,FF,FF,FF,\
00,00,00,00,6C,E9,06,10,8C,7D,F6,01,B4,7D,F6,01,\
CA,8C,E6,AC,B8,12,03,80,0C,00,00,00,10,A1,14,8C,\
74,7A,DF,8C,01,00,00,00,00,00,00,00,94,E9,06,10,\
98,2D,04,80,02,00,00,00,00,00,00,00,28,E5,12,00,\
00,00,00,00,01,00,00,00,B4,32,F6,8C,A4,E4,07,00,\
74,7A,DF,8C,38,26,E2,8C,81,00,00,00,00,E9,06,10,\
00,00,00,10,00,00,00,00,30,A8,19,00,00,00,00,00,\
50,27,15,8C,0A,00,00,00,00,00,00,00,00,00,00,00,\
00,28,15,8C,01,00,00,00,04,12,03,80,00,00,00,00,\
01,00,00,00,03,00,00,00,F2,DF,01,10,01,00,00,00,\
80,D7,0C,00,01,00,00,00,01,00,00,00,01,00,00,00,\
98,77,01,00,00,00,00,00,2C,EA,06,10 Tag: where can i find more technical materials for windows automotive in english? Tag: 40579
Ethernet driver for CS8900?
Hello,
I am interestiond, when will be available Ethernet driver
for CS8900A for Windows CE .NET referenced in following
document
"http://www.microsoft.com/windows/embedded/docs/ce.net/driv
ers.xls"?
Best regards
Ales. Tag: where can i find more technical materials for windows automotive in english? Tag: 40559
DEBUGCHK error at the beginning of application initialization
Hi all,
I'm developing an MFC application. I create a new window in my main window
with the following code:
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
int CChildView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
m_pTerm = new CTermWnd();
m_pTerm->Create(NULL, NULL, WS_CHILD | WS_VISIBLE | WS_BORDER,
CRect(CPoint(0, 0), CSize(200, 200)), this, ID_TERMSCREEN);
return 0;
}
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
class CTermWnd : public CWnd
{
public:
CTermWnd();
virtual ~CTermWnd();
protected:
//{{AFX_MSG(CTermWnd)
afx_msg void OnPaint();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CWnd* m_pTerm;
static CBrush ms_bkgndBrush;
public:
HWND m_hTermWnd;
};
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
CBrush CTermWnd::ms_bkgndBrush;
CTermWnd::CTermWnd()
{
strTermClass = AfxRegisterWndClass(NULL, NULL,
(HBRUSH) ::GetStockObject(LTGRAY_BRUSH), NULL);
}
CTermWnd::~CTermWnd()
{
}
BEGIN_MESSAGE_MAP(CTermWnd,CWnd )
//{{AFX_MSG_MAP(CTermWnd)
ON_WM_PAINT()
ON_WM_CREATE()
ON_WM_ERASEBKGND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
////////////////////////////////////////////////////////////////////////////
/
// CTermWnd message handlers
void CTermWnd::OnPaint()
{
CPaintDC dc(this); // device context for painting
// TODO: Add your message handler code here
// Do not call CWnd::OnPaint() for painting messages
}
BOOL CTermWnd::OnEraseBkgnd(CDC* pDC)
{
CRect rc;
GetClientRect(&rc);
pDC->FillSolidRect(&rc, RGB(192,192,192));
return TRUE; // Erased
}
int CTermWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
/* Most of OnCreate code is useless since I can't pass the GCL_HBRBACKGROUND
parameter to SetClassLong*/
CDC *pDC = this->GetWindowDC();
//ms_bkgndBrush.CreateSolidBrush(LTGRAY_BRUSH);
ms_bkgndBrush.CreateSolidBrush(RGB(192, 192, 192));
DWORD style = ::GetClassLong(m_hWnd, GCL_STYLE);
//::SetClassLong(m_hWnd, pDC->SetBkColor(RGB(192, 192, 192)), (LONG)
(HBRUSH) ms_bkgndBrush);
::SetClassLong(m_hWnd, GCL_STYLE, (LONG) (HBRUSH) ms_bkgndBrush);
DWORD errno = GetLastError();
UpdateWindow();
return 0;
}
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
I also used AfxRegisterWndClass to create the child window with the
following code, but that , too, stopped at the debugbreak() function:
int CChildView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
CString strTermClass;
strTermClass = AfxRegisterWndClass(NULL, NULL,
(HBRUSH) ::GetStockObject(LTGRAY_BRUSH), NULL);
m_pTerm = new CWnd();
m_pTerm->Create(strTermClass, NULL, WS_CHILD | WS_VISIBLE | WS_BORDER,
CRect(CPoint(0, 0), CSize(200, 200)), this, ID_TERMSCREEN);
return 0;
}
/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
Whenever I start my application I get the following debug message:
4294813649 PID:a1ef5b5a TID:e1e68756 0x81e4b000: Unknown: DEBUGCHK failed in
file d:\jameson\private\winceos\coreos\gwe\controls\imgctl\.\imagelist.cpp
at line 905
and the code jumps to kfuncs.h, line 102 where it calls "debugbreak();"
#elif defined(x86)
_inline void DebugBreak() {
__asm int 3
}
I checked my pc and I don't have any imagelist file, but I have a imgctl lib
file and checking that (as much as it's possible to check!) I somehow
figured out that these lines are in the lib file, which might be related
with my problem:
"application passed invalid ILC_color flags to imagelist_create imagelist
out of near memory imagelist can't create bitmap imagelist unable to
initialize APPLICATION ERROR exited with Imagelist not destroyed"
If I press F5 I can continue to debug and the application initializes as if
nothing has happened. I don't get these messages when I open / close dialog
windows in my application. I get it only at the initialization stage. Also I
don't get any error messages while working with eVC on the standard SDK
Emulator. Since I don't know why this error comes, I can't handle it with
any kind of exception handling procedure.
My aim is to create a window in the view area and to display the characters
I receive from the serial com port in this window. Could you tell me what is
wrong with my code?
Thank you very much already.
Selin Tag: where can i find more technical materials for windows automotive in english? Tag: 40558
my hard disk open very slow
hello
all friends.
i use ce4.1,when my ce startup ,i open my hard disk,i find open it very
slow.why? Tag: where can i find more technical materials for windows automotive in english? Tag: 40557
Allocating fixed shared memory for ISR
On WINCE 4.2 ARMV4I:
I want to allocate a buffer in cached memory that can be shared by the ISR
and the IST.
I've looked at several options but they all seem to indicate they will only
allocate memory that is uncached (and uncachabe?)
AllocPhysMem, CreateStaticMapping, KLibAllocShareMem.
Question:
1) Is it safe to simply remove the uncached mask from this address and use
it so that it is in the cached region?
2) Is it safe to virtualalloc/virtcopy this uncached address but set the
page with cached parameters?
I've been doing this sort of thing on Windows Automotive (which has
supported installable interrupts all along using this mechanism) for 6 years
but would just allocate a piece of virtual memory and do a LockPages on it
to get the physical address. This works fine but much more messing around
that using a simple API like the ones mentioned above.
Regards,
Mark Moeller
Qualnetics Corporation Tag: where can i find more technical materials for windows automotive in english? Tag: 40555
[HELP} USB mouse cursor OFFSET?
Dear guru:
I am developing WinCE.NET 4.1 for a CEPC (VT8606+VT82C686B+RTL8139)
using VIA BSP. For the USB function I encounter a strange condition. The
USB
mouse and Keyboard work ok except the mouse cursor DO NOT match the focus
point. When you surf the IE, the link with the cursor on didn't change
color but the
next 2 rows' link changed (take MSN.COM as an example). If you clicked,
the
changed link is retrieved not the link with the cursor on. But the PS/2
mouse works
perfectly.
What is the possible cause? How should I debug this discrepency? Any
hint is
great thankful.
Best Regards
Henry Tag: where can i find more technical materials for windows automotive in english? Tag: 40553
Running CE directly from RAM
Hi,
I am trying to download CE image through Serial Port to x86(80486 DX)
board.I am not making use of "CEPC Method" provided by Microsoft.I
have customized my BIOS to receive the CE OS image through serial port
and load it at desired location.
I could download the image onto Target platform(In real mode), but
systems hangs up,when i am trying to run this image.Before making FAR
JMP i am switching processor mode to Protected mode.What could be the
problem?
I have created the image using PB 2.12.How can i customize CE in PB so
that it can be run directly from RAM? Is there any special care i need
to take before compiling the OS image?
Thanking you all in advance,
Hemant Tag: where can i find more technical materials for windows automotive in english? Tag: 40548
Testing a serial driver using CEPC
Hi ,
How can I test a serial port driver by using CEPC.
When I tried the tux utility.
I have entered tux -o -d pserial , in the Target->Advanced
commands(CESH) of platform builder.
Then the output window displayed as follows
tux -o -d pserial
Unknown command.
pserial.dll ,tux.exe, kato.dll and tooltalk.dll are present in the
RelDir\X86_Debug directory.
how can I solve this problem ?
thanx in advance
ajith Tag: where can i find more technical materials for windows automotive in english? Tag: 40546
SPI_GETPLATFORMTYPE in 4.2
What is the most recommended naming convention for SPI_GETPLATFORMTYPE
in OEMIoControl -> IOCTL_HAL_GET_DEVICE_INFO. For CE300 we went with
"Jupiter" but for this release we are thinking of something more
specific to our product. However, we do not want to make it difficult
for the installation of third party apps. I have looked for guidelines
for this without success. Tag: where can i find more technical materials for windows automotive in english? Tag: 40542
binfs and eboot
hi,
could anyone tell me , if i need to incorporate BinFs
file system, do i need to have eboot modified.
if yes, how can i download, different(kernel,application
etc images) images...
i m using xscale 250 plus .net4.2
thanks
atul Tag: where can i find more technical materials for windows automotive in english? Tag: 40540
Does x86 Emulator support Stylus?
Hi,
Could anyone advise me if the x86 emulator supports Stylus
(touch panel calibration)? If yes, what should I do in
order to enbale the "Stylus".
Thank you. Tag: where can i find more technical materials for windows automotive in english? Tag: 40539
Custom Device SDK
Hi,
Has anyone made any progress on getting .NET CF applications to cleanly
deploy to custom Windows CE.NET-based devices? We have a nice 4.2-based
device on which a given .NET CF application runs fine, but when you deploy
this application to the device the first time, with the Windows CE platform
selected, you get a pop up on the device saying that the application is not
compatible with the device and do you want to continue with installation.
If you say no, it's not deployed. If you say yes, everything continues from
there and works fine.
I *have* built and installed the SDK generated by Platform Builder for the
device (and the eVC part of the SDK works just fine).
Referencing the previous thread primarily between Chris and I,
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=%23f8A3MFBDHA.208%40TK2MSFTNGP10.phx.gbl&rnum=3&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3D.net%2Bcf%26meta%3Dgroup%253Dmicrosoft.public.windowsce.platbuilder.*
has anyone from MS come up with an update to the SDK generator which will
generate a dialog that will work? I guess I could fool around with the
internals of the SDK, but I'd much rather just generate it and have it work.
Paul T. Tag: where can i find more technical materials for windows automotive in english? Tag: 40526
Running windows media player
This is a multi-part message in MIME format.
--------------4A7E812CA6E1911E5531B4F7
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Could somebody tell if there is a way to run the Window Media Player while debuggin
under Platform Builder. I can see the Wavplay.exe and Wavrec.exe in available Programs but
despite I have added the Windows Media Player I cannot see the player2.exe.
Maybe this is not possible tu run it from command line in Windows CE. It is possible in
Windows 2000 (at least this is what help says).
Regards
Hubert
--------------4A7E812CA6E1911E5531B4F7
Content-Type: text/x-vcard; charset=us-ascii;
name="hubertr.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hubert Rzezniczak
Content-Disposition: attachment;
filename="hubertr.vcf"
begin:vcard
n:Rzezniczak;Hubert
tel;fax:0048 71 33-48-101
tel;work:0048 71 33-48-186
x-mozilla-html:FALSE
org:Silicon & Software Systems Polska sp. z o.o.
version:2.1
email;internet:hubertr@s3group.com.pl
title:System Design Engineer
adr;quoted-printable:;;ul. Nyska 83/85=0D=0A=0D=0A;50-505 Wroclaw;;;Poland
fn:Hubert Rzezniczak
end:vcard
--------------4A7E812CA6E1911E5531B4F7-- Tag: where can i find more technical materials for windows automotive in english? Tag: 40518
FMD Flash File System fails
Hi ,
I am using Strata NOR FMD driver included with Platform Builder as reference for our
Flash FMD driver , and using the same registry used for that driver ( I changed only MemBase and
MemLen ) .
According to the log in the debug window , my driver (FlashDrv.dll) is failing ,below is the log I get
in my debug window , and I don't understand the reason why I get this log ! I ran the driver in debug
mode and saw that the driver is passing correct information to the FAL library and saw also
that the FAL library calls FMD_ReadSector twice for every first sector in a block ,
and it passes only pointer for the meta data and the data returned is what is in the flash,
the flash still has 0xFF value in all of its bytes .
What could be the reason for my driver to fail ? and how should I format for the first time the resulted partition
if the driver succeed ?
Thanks in advance
//-------------------------------------------------------------------------------------------------------------------------
Loaded symbols for 'D:\WINCE420\PUBLIC\RG\RELDIR\88E6318_MIPSIV_FPDEBUG\MSPART.DLL'
Loaded symbols for 'D:\WINCE420\PUBLIC\RG\RELDIR\88E6318_MIPSIV_FPDEBUG\RELFSD.DLL'
4294768220 PID:41fe6372 TID:41feaf42 0x81fe6000: >>> Loading module mspart.dll at address 0x03E70000-0x03E7B000 (RW data at
0x01FEF000-0x01FEF494)
4294768222 PID:41fe6372 TID:41feaf42 0x81fe6000: Loading partition driver mspart.dll hModule=81FAB000
4294768222 PID:41fe6372 TID:41feaf42 0x81fe6000: Driver mspart.dll loaded
4294768222 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't exist for
logical sector 0x0!!!
4294768223 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical sector address for
logical sector 0x00000000
4294768223 PID:41fe6372 TID:41feaf42 0x81fe6000: Opened the store hStore=000B3F00
4294768223 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't exist for
logical sector 0x0!!!
4294768224 PID:41fe6372 TID:41feaf42 0x81fe6000: FLASHDRV.DLL:ReadFromMedia() - Unable to determine physical sector address for
logical sector 0x00000000
4294768224 PID:41fe6372 TID:41feaf42 0x81fe6000: NumSec=3780 BytesPerSec=512 FreeSec=0 BiggestCreatable=0
-------------------------------------------------------------------------------------------------------------------------//
--
Maen Tag: where can i find more technical materials for windows automotive in english? Tag: 40504
Intermittent USB failures
Hi!
We are using the Samsung S3C2410 BSP on our hardware,
parallel with the SMDK 2410. On both platforms we are
experiencing intermittent USB problems when attaching a
USB keyboard.
I've added the OHCD controller and the USBHID class
driver, and I usually get the keyboard to function
correctly (only english mode though). However, every once
in a while, the keyboard stops workings when cold booting
the system. Usually, a reset is the solution to have the
USB keyboard operate again. I've read the USB Host
registers and seen that there is a difference between when
the keyboard works and when it doesn't.
Does anyone have an idea about this problem? Is it
possible to reset the USB driver so that it reloads after
all other drivers have loaded?
Any ideas on how to solve the problem are appreciated!
/Marcus
I was thinking it might be a mist Tag: where can i find more technical materials for windows automotive in english? Tag: 40501
RegFlushKey did nothing
I am using the IPSM data storage and registry backup features. At
boot up, the ReadRegistryFromOEM was called. When I backup the
registry by calling RegFlushKey(HKEY_LOCAL_MACHINE), the function
return with ERROR_SUCCESS. However, it does not call the
WriteRegistryToOEM function. I have successfully called the
REG_FlashInitialize function and assigned the function addresses to
pReadRegistryFromOEM and pWriteRegistryToOEM respectively.
What caused the RegFlushKey doesn't call the WriteRegistryToOEM
function? Tag: where can i find more technical materials for windows automotive in english? Tag: 40495
battery fault on pxa-250
Hi:
I'm working with the pocketpc on the pxa-250 base system.
In the document it says that if set IDAE bit to 1 ,when battery fault occured,
the cpu will get into a data abort handler and then sleep.
If set IDAE to 0 ,CPU will sleep immediately.
When I set IDAE to 0,the PWR_EN go down as I make a battery fault signal
,and CPU get into sleep.
But if I set IDAE to 1,the PWR_EN never get low,and I don't know what routine
the system will run.
I've checked around the files ,and find some possible entry point when battery
fault occure but it seems that those ruotines have never been called .
What I found are kernel\hal\arm\oemabort.s,
Abort_handler and Batt_FaultHandler in kernel\hal\arm\fwxsc1.s .
Could someone gives me some hints about how the flow runs ,or are there
anything I don't notice.
Thanks in advance .
Regards.
Will
-- Tag: where can i find more technical materials for windows automotive in english? Tag: 40492
True Touch USB keyboard DEBUGCHK
Hi,
I am trying to get a True Touch Multimedia USB keyboard with built-in USB
hub to work in PB 4.2
(http://www.manhattan-support.com/driver-truetouch-keyboards.shtml, part no
337922).
I find that ohci2 detects it being attached and subsequently proceeds to hit
a DEBUGCHK on line 1511 of
$(_COMMONOAKROOT)\DRIVERS\USB\HCD\COMMONcdevice.cpp. Just before this line,
the following message is output: RETAILMSG(1, (TEXT("!CHub::AttachDevice
warning: invalid power configuration\n")));
It looks like it's failing to figure out how to power the keyboard, which
seems to remain unpowered and doesn't give any signs of life. Its hub
however seems to be operational, i.e. I can plug a mouse into it and the
mouse works.
Are there any magic registry settings I'm missing ? Has anybody had any
success with this particular keyboard in the past ?
Thanks in advance. Tag: where can i find more technical materials for windows automotive in english? Tag: 40491
about IDE device
hello
I use ce4.1,i find one problem about ide device,when ce startup ,i open
ide device need very long time ,why? this is bug? Tag: where can i find more technical materials for windows automotive in english? Tag: 40489
STN LCD device driver program
hello:
My LCD controller support STN and TFT screen. TFT LCD driver program has
been realization and it runs OK. Now, I wanna achieve STN screen based on
TFT program.
What code or which wince's gpe function must I modify? Thank you ! Tag: where can i find more technical materials for windows automotive in english? Tag: 40486
Error - Loading PSM (Persistent Storage Manager)
We included the PSM (Persistent Storage Manager) in our SA1110 WinCE .Net
built.
After executing the nk.bin we are getting the following error for the PSM.
0x8de4dc64: PSMFSD_MountDisk: FG_Init failed! status=ad
We did the following changes in the PSM_OEMInfo structure
static const PSM_OEMInfo oem_info = {
/* PhysicalReadStartAddress */ (VOID_PTR)0x00000000,
/* PhysicalWriteStartAddress */ (VOID_PTR)0x00000000,
/* PhysicalBurstReadStartAddress */ (VOID_PTR)0x00000000,
/* VirtualReadStartAddress */ (VOID_PTR)0xa4000000,
/* VirtualWriteStartAddress */ (VOID_PTR)0xa4000000,
/* VirtualBurstReadStartAddress */ (VOID_PTR)0xa4000000,
/* MaximumArrayLength */ 0x02000000,
/* MaximumRegistrySize */ 0x00000000,
/* ManagedAreaStart */ 0x01000000,
/* ManagedAreaLength */ 0x00200000,
/* ReadBusWidth */ 32,
/* WriteBusWidth */ 32,
/* BurstReadBusWidth */ 0
};
We have the 32MB Flash, on that 16MB for BOOT code/NK.bin.
So we started the ManagedAreaStart/FileArea at 16th MB.
Could you please help me to solve this problem.
Thanks
Zaid Tag: where can i find more technical materials for windows automotive in english? Tag: 40482
How to enable Stylus (TP Calibration Program ) in x86 Emulator mode
Hello,
I would like to have the Stylus program enabled under the
Emulator mode. I have checked through the "cesysgen.bat"
file and this program was included. However, I couldn't
see the "Stylus" program in the Emulator's control panel.
Must I need a Touch Panel to test out the "Stylus" on my
Emulator? Or does Emulator allow to have the "Stylus"
program running on my desktop computer (without Touch
Panel).
Thank you. Tag: where can i find more technical materials for windows automotive in english? Tag: 40481
How to add the serial port 4 in the wince4.1
I have a mainboard which has 4 com ports,but CE only have
3 ports to select.How can I do to use the com4? Tag: where can i find more technical materials for windows automotive in english? Tag: 40479
New Product Launch: Advantech CE-BUILDER 2.0
Product Launch
Advantech CE-BUILDER 2.0 ¡V The shortest path to Windows CE.NET
application
Advantech Co. Ltd., delivering hardware and software solutions that
empower the e-world, has released our powerful new Advantech CE-Builder 2.0
program, a ¡§total¡¨ Windows CE development solution designed to speed
time-to-market response and ease development of our customers¡¦ embedded
CE-based projects. Aimed at assisting customers with pre-sales inquires,
customization of CE OS solutions and after sales support and service, the
CE-Builder program has the flexibility to support customers at any level of
project complexity and development expertise. (more...)
http://www.advantech.com.tw/epc/newsletter/v94-08-21_03/
http://www.advantech.com.tw/solutions/ess/CE-Builder.asp?Category_ID=1-EE5PM Tag: where can i find more technical materials for windows automotive in english? Tag: 40475
KitlSend problem...
Dear All,
I have a problem of kitlsend problem when porting
XSC1BD BSP (using PB4.2) to PXA255. After KITL has
initalized successfully, it seems that device did not
received anything from workstation via kitlsend(). I'm
wondering whether I lost any component/function to
include or implement? Any advice would be greatly
appreciated.
Best Regards,
---------------------------------------------------------
+OEMKitlInit
ETHERNET Card is found
+EDBG:NE2000Init
-EDBG:NE2000Init
NE2000 Ethernet controller initialized.
VBridgeInit()...TX = [16384] bytes -- Rx = [16384] bytes
Tx buffer [0xA0350400] to [0xA0354400].
Rx buffer [0xA034C3E0] to [0xA03503E0].
VBridge:: NK add MAC: [0-C-0-C-10-C]
Calling EdbgInitDHCP
-OEMKitlInit
Host connected
+KITLRegisterDfltClient, service:0
+KITLRegisterDfltClient, service:1
KITLGlobalState == 0x61
KITL Initialized
Waiting for service 'DBGMSG' to connect..., fUseSysCalls
= 0
ProcessAdminMsg: Receive Config message for service DBGMSG
ProcessAdminMsg: Receive Config message for service PPSH
ProcessAdminMsg: Receive Config message for service DBGMSG
ProcessAdminMsg: Receive Config message for service PPSH
ProcessAdminMsg: Receive Config message for service DBGMSG
ARMInit done.
+KITLRegisterDfltClient, service:2
ProcessAdminMsg: Receive Config message for service KDBG
ProcessAdminMsg: Receive Config message for service KDBG
ProcessAdminMsg: Receive Config message for service KDBG
KITL: Leaving polling mode...
KITL Checking client registrations
+RegisterClientPart2: Id 0x00000000
KITL Timer thread started, (hTh: 0x03CB7F86, pTh:
0x83CB4AC8)
-RegisterClientPart2
+RegisterClientPart2: Id 0x00000001
-RegisterClientPart2
KITL Creating IST
KITL Interrupt thread started (hTh: 0x83CA996E, pTh:
0x83CA9730), using SYSINTR 26
Enabling adapter ints...
0xE3CA9F92: KITLSend(0): Timed out waiting for ack
(AckExpected: 24, TxSeq: 32)
0xE3CA9F92: KITLSend(0): Timed out waiting for ack
(AckExpected: 24, TxSeq: 32)
:
: Tag: where can i find more technical materials for windows automotive in english? Tag: 40474
Hi all,
except the msdn,where can i find more technical
materials for windows automotive in english?can anyone
tell me ? thanks in advance.