Easy question, if I have modified something in project.reg, how to built?
What is the proper action so it gets included in the image if I have
modified something in project.reg.
I don´t wan´t to built and sysgen the whole platform, it takes like one
hour....
How to do this properly?
regards, Dani Tag: One more easy question, when added a component, how to built? Tag: 65964
How to manage tasks, poutlook.exe not a component in PB?
Hi, in Pocket PC you have poutlook.exe for handling of your tasks, but I
haven´t found any component that handles that in PB.
Anyone knows anything about this?
Or do I have to code it my self?
Happy Easter, Dani Tag: One more easy question, when added a component, how to built? Tag: 65962
Cold boot/Warm boot
Hi
I want to run an application on cold boot only, there are times when I warm
boot the terminal and I don't want this particular application to run.
I have tried a number of methods and have not been successful;
1) myapp.exe and myapp.lnk are in the windows directory and I use
platform.dat to move myapp.lnk to the startup directory, on a coldboot the
application starts up as expected, but it also starts up on a warm boot.
2) removed above changes from platform.dat and put the following in
platform.reg
"Launch60"="myapp.exe"
"Depend60"=hex:1E,00
Again on a cold boot the application runs, but it also runs on a warm boot.
Any help would be appreciated.
Regards Tag: One more easy question, when added a component, how to built? Tag: 65944
SOAP Server failing on CE 4.1
We have a headless XScale-based device running Windows CE 4.1. Our PC
application communicates with an application on the device using SOAP: the
PC is the client and the device is the server. The PC regularly (every
second or so) calls a routine on the device to retrieve data (in the form of
a string - a BSTR since the interface between the soap server and our
application is of course via COM).
Our problem is that the device hangs after about two hours. I believe I've
eliminated every other possibility - I've replaced the soap server with a
simple TCP/IP server which receives a connection from the PC and calls the
same routine in the application and it runs forever.
When I try it with a debug build and platform builder I get a DEBUGCHK in
BSTR.cpp (the source of which I don't have). The thread which fails is in
our application's process but is running system code. It appears to be the
thread which has just called our method (which is called GetEvents) and is
trying to do a SysFreeString.
I realise from the description of the bug check that it appears to be in our
process somewhere, but as I say it works perfectly if we don't use the Soap
server.
Does any of this ring a bell with anyone? I don't really want to replace
the Soap server (we wanted the device to be soap-compatible) but at the
moment I don't seem to have much choice. Tag: One more easy question, when added a component, how to built? Tag: 65937
What difference between ATAPI driver and ATADisk driver?
Dear All:
I'm studying the DOC for block device drivers, and I have some questions
need your help.
1.What difference between the ATAPI driver and ATADisk driver of WIMCE?
2.If I need implement a Hard Disk driver What kind of above drivers is the
most suitable sample?
Thanks.... Tag: One more easy question, when added a component, how to built? Tag: 65935
The relative WinCE functions to WinXP WDM for USB Ethernet adapter [Help!!]
Hi All,
I'm developing a USB-to-Ethernet adapter NDIS driver on CE5 PB. I tried to
migrate my target device WinXP driver to WinCE 5.0 driver but face a problem
to migrate some WinXP WDM functions as listed below to the WinCE driver
because these WDM functions are not supported on CE 5 PB. Could somebody
tell me the relative WinCE functions to these WinXP WDM functions on CE5 PB
or give me some ideas to resolve this issue? Thanks very much in advance.
Some CE5 unsupported USBD functions defined in WinXP DDK usbdlib.h file:
==============================================================
USBD_GetUSBDIVersion();
USBD_ParseConfigurationDescriptorEx();
USBD_CreateConfigurationRequestEx();
Some CE5 unsupported WDM functions defined in WinXP DDK wdm.h file:
============================================================
IoFreeIrp();
IoAllocateIrp();
IoCancelIrp();
IoCallDriver();
IoSetCompletionRoutine();
IoGetNextIrpStackLocation();
ExAllocatePool();
ExFreePool();
ExAllocatePool();
KeRaiseIrql();
KeLowerIrql();
---
Best regards,
Allan Chou
03-5799500 ext.513
allan@asix.com.tw Tag: One more easy question, when added a component, how to built? Tag: 65929
ANN: Reminder Windows CE Chat tomorrow
Hello!
Just a note that we'll be hosting an online chat tomorrow concerning Windows
CE 5.0! Members of the development team will be on hand ready to answer your
questions, so bring 'em on!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: Windows CE 5.0 Live Chat!
March 30, 2005
9:00 - 10:00 A.M. Pacific time
Additional timezones:
http://www.timeanddate.com/worldclock/fixedtime.html?year=2005&month=...
Do you have tough technical questions regarding Windows CE 5.0 for which
you're seeking answers? Do you want to tap into the deep knowledge of the
talented Microsoft Embedded Devices Group members? If so, please join us for
a live Windows CE 5.0 chat and bring on the questions! Windows CE 5.0 is the
operating system that is powering the next generation of 32-bit,
small-footprint and mobile devices. This chat will cover the tools and
technologies used to develop devices using the Windows CE 5.0 operating
system.
To join this chat, please log on via the main MSDN chat page at:
http://msdn.microsoft.com/chats
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--
--
Thanks!
Michael Fosmire
MVP Lead, Windows Embedded
This posting is provided AS IS with no warranties, and confers no rights. Tag: One more easy question, when added a component, how to built? Tag: 65928
suspend twice to reboot?
Hi all,
I tried to apply soft reboot to my VIA x86 based device, but every time I
should click twice to make my device to reboot. What I do is as below:
In \WINCE420\PUBLIC\COMMON\OAK\CS-P\I486\OAL\power.c,
static CpuSleepX86(void) {
#define NOTDEF // add by maverick
#ifdef NOTDEF
// NOTE : This bit of code will reboot the system. Some people build
this way
// so that they can do a soft reboot simply by choosing suspend from the
run menu.
__asm {
cli ; Disable Interrupts
mov al, 0FEh ; Reset CPU
out 064h, al
jmp near $ ; Should not get here
}
#endif
build -cf and build image.
When the first time I click suspend on the start menu, ce stops for a while
then resume, which I guess ce is saving the registry. Only when I click
suspend again, it would reboot. How could this happen? How can I get rid of
this?
maverick Tag: One more easy question, when added a component, how to built? Tag: 65923
Nasty Bug in FileServer for CE 4.2?
Hi,
I think I've found a nasty bug in the file server package for CE 4.2. I
have an application that uses two CEPC systems that are linked together via
Ethernet. System A is set up with the file server to share its Compact
Flash drive. System B connects to the file server via "net use....etc.".
If I copy a file from System B to System A that already exists on System A,
and the file being copied from System B is smaller than the file on System
A, the result is that the new file has the extra data that was in the old
file appended to it.
In this application, System B is a headless system and gets its software and
data files from System A via the file sharing mechanism. Scrambled files
have been a real problem. The work-around is to have the program that does
the updating delete the file being updated from the target system before
copying the new file.
I looked for a place on the MS web site to report a problem with CE 4.2 but
all I could find were links to report 4.0, 4.1 and 5.0 problems. I would
appreciate a hint on where to take this.
Thanks,
Jim Tag: One more easy question, when added a component, how to built? Tag: 65910
Confusion about how Platform Builder works
I have been working on a WinCE 4.2 application for some time using an SBC
that is certified for 4.2. The SBC Vendor has been trying to get an OS
working for us, so we would not have to spend the time and money. It is
starting to become clear that they cannot get it right. We probably will have
to build the OS ourselves. However, I do NOT want to go with WinCE 5.0.
As I understand it, when you buy Platform builder, you are setting up a
relationship with Microsoft to resell Operating System licenses, and they do
not want to do this for 4.2. Am I misunderstanding the process? How can I
move on with my project without making an uneccessary, and probably
impossible, upgrade to 5.0? Tag: One more easy question, when added a component, how to built? Tag: 65908
VMini VMini1 PCI RTL81391
I'm using PB 5.0 and a x86 CEPC target that has a RTL8139 PCI NIC
installed in it.
The PB Windows CE Remote Registry Editor, under HKLM, has these
separate keys:
a) Comm\PCI\RTL81391\Parms\TCPIP
b) TCPIP & TCPIP\Parms
c) VMini & VMini\Linkage
d) VMini1, VMini1\Parms, & VMini1\Parms\TCPIP
On the CEPC, when I go to Start | Settings | Network and Dial-up
Connections, I see a VMINI1 icon; doubling clicking it, I see
'Microsoft null Ethernet Miniport Driver' settings. (Which, BTW,
agrees with HKLM\VMini's Display Name.)
1. Please explain why, given that there is a RTL8139 PCI NIC, that
VMini is being used.
2. Does my OS really need to include RTL8139 from the Catalog (in
light of VMini being used).
3. What's with all these keys (a-d above)? For goodness (and
simplicity) sake, I just want to set some network parameters (static
IP, subnet mask, and default gateway) in the registry and be done with
it! This hierarchy and multiple keys, etc. is a ridiculous
obfuscation!
Thanks for clarify this mess... Tag: One more easy question, when added a component, how to built? Tag: 65906
USB bulk transfer on SM501
Has anyone had problems with bulk transfers on the SM501 USB host controller.
I don't know that this is specific to that device, but its the first full
OHCI controller I've worked with.
I'm working with the mass storage driver and failing on all bulk-out Td's
which are greater than the max allowed per buffer. For example, I'm trying to
write 512 bytes of data to the device. It should get broken into 64 byte
packets on the wire and the Td retired when all 8 packets have gone.
If I break the transfer into 8 separate Td's, it goes fine. If I have a
single Td, I get an error (Device Not Responding, CC5). I think its on the
first buffer since when the error comes in, the Td's current buffer pointer
has moved 64 bytes. I don't have a USB analyzer, so no, I haven't checked
what's on the wire.
I think the retirement of the Td is correct since the error count in the Td
has incremented. The Ed looks fine and the max packet size is correctly set
to 64. All of the pointers look okay and I don't see an alignment or page
issue.
Any suggestions ? Tag: One more easy question, when added a component, how to built? Tag: 65903
SOURCES
Hi
I have an application developed using evc 4.0, I also managed to create the
application in Platform builder 4.2 and get a pbp file. The next step is
that I want to create a sources file so that I can add it to my cec file.
I have created a SOURCES file and all the files compile without error, but I
get numerous errors linker errors, I have tried including all necessary lib
and h files but am not having much joy. Also the start function (picked up
from evc 4.0) is wWinMainCRTStartup.
Is there anyway I can create a SOURCES file from the project file in evc 4.0
or even the pbp file in platform builder.
Regards Tag: One more easy question, when added a component, how to built? Tag: 65889
Read
My CE 5.0 system has FASL NOR flash. I want to use this to store two
copies of the OS image:
- One stored on a FAT filesystem so that the file can be updated from
within the running CE OS.
- One "fallback" stored in certain flash blocks on the device (outside
of the filesystem partition).
The reasoning behind this is that the OS needs to be remote updatable
from the running CE image (this update process can't be done from the
bootloader for various reasons). If the remote update fails (power
outage
etc) then the bootloader will use the "fallback" version of the OS.
I've considered maybe using bootpart to create a FAT partition and
some other one in the bootloader. The problem is that the bootloader
would need to be able to read the alternate OS image from the FAT
partition - this doesn't look too difficult given the MS sample FAT
code etc, but what I'm worried about is that I'd want to link the
FMD with the FAL to implement wear-levelling when writing to the FAT
partition from the OS. This means the bootloader would also need to
know about wear-levelling, but the FAL code is private.
Can I just link my bootloader with the FAL library?
Am I going about this the wrong way?
Thanks!
Matt Tag: One more easy question, when added a component, how to built? Tag: 65886
Failed to initialize from ceconfig.h
I have created a new platform from a freescale BSP and I get the
following error when attempting to "Build And Sysgen Current BSP".
--------------------Configuration: Attitude 2 BSP:
ARMV4I_Debug--------------------
Starting Build: set WINCEREL=1&&SysgenPlatform %_TARGETPLATROOT%
preproc&&cebuild1 platform %_PLATFORMROOT%\%_TGTPLAT%
-c&&SysgenPlatform %_TARGETPLATROOT% postproc&&makeimg
==============
Sysgening platform C:\WINCE500\platform\A2
C:\WINCE500\PBWorkspaces\A2>if not "" == "" goto done
C:\WINCE500\PBWorkspaces\A2>set ___OAKROOT=C:\WINCE500\platform\A2\oak
C:\WINCE500\PBWorkspaces\A2>if not exist
C:\WINCE500\platform\A2\oak\oakver.bat goto endif_20
C:\WINCE500\PBWorkspaces\A2>if not exist C:\WINCE500\platform\A2\dirs
goto done
C:\WINCE500\PBWorkspaces\A2>if "platform" == "public" C:
C:\WINCE500\PBWorkspaces\A2>if "platform" == "private" C:
C:\WINCE500\PBWorkspaces\A2>if "platform" == "platform" C:
C:\WINCE500\PBWorkspaces\A2>cd C:\WINCE500\platform\A2
C:\WINCE500\PLATFORM\A2>set ___CLEANFLAG=
C:\WINCE500\PLATFORM\A2>if not "platform" == "platform" goto endif_11
C:\WINCE500\PLATFORM\A2>if exist C:\WINCE500\platform\A2\A2.bif goto
endif_13
C:\WINCE500\PLATFORM\A2>echo CEBUILD: Building
(C:\WINCE500\platform\A2)
CEBUILD: Building (C:\WINCE500\platform\A2)
C:\WINCE500\PLATFORM\A2>build -c
BUILD: [Thrd:Sequence:Type ] Message
BUILD: [00:0000000000:ERRORI] Failed to initialize from CECONFIG.H.
What is the build process trying to do here and what is the normal
behavior? Should I find a ceconfig.h from elsewhere and copy it? Or
is it generated, and if so from where?
Please help,
Thanks
Gerrit Tag: One more easy question, when added a component, how to built? Tag: 65884
ANN: Platform Build doc chat 3/31
Platform Builder Documentation online chat
Thursday, March 31, 2005, 10 - 11 AM Pacific time
Additional timezones
http://www.timeanddate.com/worldclock/fixedtime.html?month=11&day=30&hour=10&min=0&sec=0&p1=234
Do you have suggestions about how the Platform Builder documentation can be
improved to make your work easier? Take this opportunity to chat with
members of the Windows CE writing team - including Celeste
De Guzman, Court Faw, and Luke Bayler - about what you need from the
documentation that they write for you.
To join this chat, please log on via the main MSDN chat page at:
http://msdn.microsoft.com/chats
Thanks,
Susan Fairo
Content specialist, Windows Mobile and Embedded Devices UA Tag: One more easy question, when added a component, how to built? Tag: 65882
ILTiming: Interrupt Source other that Tick
ILTiming uses the System Timing Ticks (1000 per sec, but you choose how often
to generate an ILtiming interrupt, default 5.)
(Q) Is it possible to use another source, eg IRQ 5= LPT2 Interrupt?
I note in iltiming.c that the code has calls such as
InterruptDone(SYSINTR_TIMING);
InterruptDisable(SYSINTR_TIMING);
if (!InterruptInitialize(SYSINTR_TIMING, hEvent, 0, 0)) {
In some other code, SYSINTR_TIMING is made equal to the system interrupt
number for an IRQn IRQ5.
In the iltiming.c code it is not defined. In one of its headers it is
defined as follows:
<nkintr.h>:
#define SYSINTR_DEVICES 8
#define SYSINTR_PROFILE (SYSINTR_DEVICES+1) // System
Profiling
#define SYSINTR_TIMING (SYSINTR_DEVICES+2) // Latency
Analysis
================================
(Q) So would it be possible to replace SYSINTR_TIMING with a lookup of (say)
IRQ5 (to a system int no.) and use that instead?
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318 Tag: One more easy question, when added a component, how to built? Tag: 65880
don't need explorer.exe
At the startup I don't want to see the explorer. Instead of this my
application should be shown. For this I launched my application with
"launch50=myapp.exe". In this case the application will be started instead of
the explorer. An other and I think a better possibility would be not to
include the explorer.exe with PB. So what features I have to delete for this? Tag: One more easy question, when added a component, how to built? Tag: 65875
PPP connection RAS
Hi all!
I made a PPP connection between a desktop pc (windows XP) and an
embedded pc (windows CE). After the connection is established, i can
ping the embedded pc by the other using the prompt, like it's normal
in a network connection. But if i wanna see inside the embedded pc
(always from the desktop pc, putting the ip address or the name on the
address bar) it's impossible, and a message appears telling me that is
impossible to find the path.
How can i do that?
Thank you all! Andrea Tag: One more easy question, when added a component, how to built? Tag: 65873
Access violation in RNDS USBFN driver when running SMB Server
I get an access violation everytime I try to connect to the SMB Server
over RNDIS (I'm using a Mainstone II based BSP). The RNDIS driver
(RNDIS USBFN driver) seems to work OK otherwise (ping, telnet etc.),
and the SMB server works OK if I use the ethernet adapter.
Obviously, there seems to be some kind of problem with the buffer
handling, since the violation happens in the RNDIS function
"RndisPrepareRndisPacket" (at line 305 in rndis.c) when copying some
ndis buffers.
Any ideas on what might be the problem here? Any takes on what differs
in the buffer handling between say, telnet and SMB?
Henrik Tag: One more easy question, when added a component, how to built? Tag: 65872
a question about IssueIsochTransfer() function?
Hello!
I have found an article(Q317434) in MSDN about isochronous transfer in CE.
Does it mean that the IssueIsochTransfer() can start the transfer?What we
should do is only to set the right parameters,such as "dwFrames"? Tag: One more easy question, when added a component, how to built? Tag: 65869
Any advice about USB webcamera driver on CE.net?
Hello!
I am developing the USB driver of webcamera in CE.Here is my question:
Can I start the isochronous transfer of video data using
IssueIsochTransfer() function(so the data will be store in buffer I
provide)? Tag: One more easy question, when added a component, how to built? Tag: 65867
wince 42 ceplayer code compile fail.
I am using windows ce.net 4.2 on my sh4 processor, i got following error when
compile
-----------------------------------------------------------------------------------------
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistmgr.cpp(653) :
error C2001: newline in constant
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistmgr.cpp(663) :
error C2001: newline in constant
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistmgr.cpp(653) :
error C1057: unexpected end of file in macro expansion
Compiling -
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\.\playlistdlg.cpp for SH
Files: 0
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1441) :
error C2001: newline in constant
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1442) :
warning C4002: too many actual parameters for macro 'TEXT'
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1442) :
error C2143: syntax error : missing ')' before 'constant'
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1442) :
error C2660: 'GetTextExtentExPointW' : function does not take 2 parameters
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1454) :
error C2001: newline in constant
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\playlistdlg.cpp(1454) :
error C1057: unexpected end of file in macro expansion
e:\wince420\public\directx\sdk\samples\wmp\ceplayer\link() : error LNK1181:
cannot open input file 'obj\SH4\retail\playlistmgr.obj
---------------------------------------------------------------------------------
I check the code most error due to code TEXT("?), does any one know what is
the problem?
thanks Tag: One more easy question, when added a component, how to built? Tag: 65857
DDSI (Some Basic Questions)
Hi,
Here comes the quesns.........
What is the exact role of DDSI functions in MDD/PDD layering?
Who is actually defining DDSI, MS or the DD developer ?.
Where exactly in the build process the PDD ,MDD clubbing is done?
Who directs the buid engine to associate the concerned libs?...
I think the SOURCES and DIRS are doing the stuff but still the things are
llittle bit vague for me ..Can anyone throw some light on these
isssues?...(answering these wont take much time ,right ?)
Thanks in Advance
Soorya Tag: One more easy question, when added a component, how to built? Tag: 65849
Building platform for ARM based processor(OMAP730)
Hi,
I am using platform builder 4.2 to build the platform for ARM Integrator AP.
Actually the target is OMAP730.
Is that OMAP730 compatible with ARM Integrator Bsps?
And how should I run the boot monitor on the target(OMAP730 board). I am not
sure with the switch settings.
How should i download eboot.bin, the bootloader in to the target? Tag: One more easy question, when added a component, how to built? Tag: 65848
about ISA bus driver enumerating
Hi, all
I build an image on a CEPC, but it takes long time to boot. After I checked
the debug info through COM1, I found that it stopped at the following line
for a long time:
PnP ISA InitBusInfo : 0 card(s) found
But there is no ISA card on my device. How can I get rid of that?
maverick Tag: One more easy question, when added a component, how to built? Tag: 65844
CEPC Bootload Errors
Just started using WinCE 5.0.
Am trying to download and setup a thin client/CEPC on a desktop PC. I
have tried via the serial port as well as the ethernet port without any
luck.
The EBOOT.bin and SBOOT.bin files that are present on the 3 1/2 "
bootdisk (created via the CEPC utility) are different in size from the
ones in the PBWorkspace\CEPC1 directory (CEPC1 is my thin client
workspace).
Could someone tell me which version should I be using to boot my target
machine?
Secondly the connection settings in the documentation and most
usergroups for a serial port download suggest COM2. But if I have a
serial port on my development machine at COM3 my settings should
reflect that right?
Any suggestions or advice would be greatly appreciated.
Thank you.
Kedar Trivedi. Tag: One more easy question, when added a component, how to built? Tag: 65841
Errors when debugging Activesync, what can be wrong?
Hi, I am trying to get the ActiveSync connection to work, but the only
feature that work is the explorer feature.
I have added ActiveSync,Filesync,Inboxsync,Pocket Outlook Database and the
Cabinstaller components.
When I debug the image using repllog.exe I get the following error
messages:
>>> Loading module repllog.exe
>>> Loading module wspm.dll
AfdRasEnumEntries() unable to open Registry Key 'Comm\RasBook' Error 2
GetGeneralIFConfig:Unable to read WINS value!
>>> Loading module nspm.dll
Call to recv() failed, bytesRecvd = -1, wsaErr = 10054.
<RPC:CLISER> *** FAILURE ***
<RPC:CLISER> FILE:
E:\macallan\private\DataSync\apps\conn31\rapi\server\.\rpcwrk.cpp
<RPC:CLISER> FUNC: CRPCWorker::ServiceRequests
<RPC:CLISER> LINE: 184
<RPC:CLISER> REASON: DO_CALL failed.
Unable to read value "DBFlags" under HKEY_LOCAL_MACHINE\init\BootVars
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
I have tried to add the winsock component and database component to solve
the errors, but it didn´t solve any of the errors.
Does anybody knows what components I am missing or how to solve these
errors?
Before I executed repllog.exe i get the following debug messages:
>>> Loading module relfsd.dll
FSREG: Unable to read value "DBFlags" under HKEY_LOCAL_MACHINE\init\BootVars
Initializing Database
DB:Validation: Name already exists DB_notify_events
DB:CeCreateDatabase failed
: >>> Loading module vmini.dll
OEMIoControl: Unsupported Code 0x1010080 - device 0x0101 func 32
VMini:: Kernel does not support ethernet sharing!
:>>> Loading module ppp.dll
!AFD:AfdInitialize: Can't open Registry key Comm\AFD -- creating 'Stacks'
entry
:>>> Loading module netbios.dll
IPInit: Unable to Load IPSEC
:>>> Loading module tcpip6.dll
DEVICE!I_ActivateDeviceEx: couldn't activate: prefix TCP, index 0, dll
tcpstk.dll, context 0x3f7a719
MIPV6: Could not open registry key... skipping
LanRegister: Adapter failed to initialize.
:>>> Loading module spnego.dll
!AFD: Unable to load library 'IPNat.dll'
:>>> Loading module dhcpv6l.dll
GetGeneralIFConfig:Unable to read DNS value!
GetGeneralIFConfig:Unable to read WINS value!
!AFD: Unable to GetProcAddress of ReadyToGo in 'Netbios'
!AFD: Unable to GetProcAddress of ReadyToGo in 'Redir'
!AFD: Unable to GetProcAddress of ReadyToGo in 'Dhcp'
!AFD: Unable to load library 'IPNat.dll'
!AFD: Unable to GetProcAddress of ReadyToGo in 'Ws2Instl'
AFD: Initialization Complete
DeviceFolder::LoadDevice!Enumerate Found deprecated load instructions at
(Drivers\BuiltIn\PPP). Driver cannot be unloaded.
CXUTIL: ERROR 126 - unable to LoadLibrary(netlog.dll)
CXUTIL: ERROR 126 - unable to LoadLibrary(eap.dll)
Ipv6hlp:: Could not open registry key (COMM\ConnectionSharing)
Loaded symbols for
'C:\WINCE500\PBWORKSPACES\CHRISTMAS\RELDIR\EMULATOR_X86_DEBUG\REGENUM.DLL'
DB:OpenDB fail: DB RecycleData not found
>>> Loading module notify.dll
DB:OpenDB fail: DB DB_notify_queue not found
>>> Loading module asyncmac.dll
ASYNCMAC:MpQueryInfo: OID 0x10116/Unknown OID not supported
ASYNCMAC:MpQueryInfo: OID 0xFD010100/Unknown OID not supported
>>> Loading module dc21x4.dll
NDIS:: CE_DeleteBusFriendlyNames() failed deleting
[HKLM\Comm\BusFriendlyNames]
>>> Loading module ppp.dll
!AFD:AfdInitialize: Can't open Registry key Comm\AFD -- creating 'Stacks'
entry
>>> Loading module regenum.dll
DB:OpenDB fail: DB RecycleData not found
>>> Loading module wspm.dll
DB:OpenDB fail: DB DB_notify_queue not found
>>> Loading module nspm.dll
DB:OpenDB fail: DB RecycleData not found
>>> Loading module imaging.dll
DB:OpenDB fail: DB DB_notify_queue not found
Thanks for helping me out, Happy Easter Tag: One more easy question, when added a component, how to built? Tag: 65837
Error msg in d:\mckendric\private\...
In PB when I debug a project I'm getting the following error message...
Unknown: DEBUGCHK failed in file
d:\mckendric\private\winceos\coreos\gwe\controls\imgctl\.\imagelist.cpp
at line 905
...as the application starts up. I don't have access to the private CE
source. Could someone with access please tell me what this error is?
TIA,
Dan. Tag: One more easy question, when added a component, how to built? Tag: 65836
Help PB takes several minutes to step when debugging using eXDI and ARM multiICE
I thought this wasn't working at all until I got distracted after
stepping and several minutes later noticed that the window had updated
and the target had indeed stepped. The Busy LED on the multiICE is
blinking the whole time, leading me to believe that this is a MultiICE
issue though I am not sure. Anyway I thought someone might have run
into this issue before.
Thanks for any help,
Gerrit Tag: One more easy question, when added a component, how to built? Tag: 65833
WH_KEYBOARD_LL not capture all key events
WH_KEYBOARD_LL not capture all key events
I have a problem. I'm using a WH_KEYBOARD_LL hook in order to capture all
system keyboard events.
I create the hook without problems, but when I want to delete it, the
function unhookWindowsHookEx()
returns a FALSE (that wants to say error in the function), but the hook is
correctly deleted,
because if after I create another WK_KEYBOARD_LL hook, it will be created
correctly.
But my main problem is that in the LowLevelKeyboardProc (the hook process),
I cannot detect
all keyboard events of all the applications of my pda pocket pc. I only
detect the message
WM_KEYDOWN in a few number of keys such as: caps lock, shift, esc, and so
on. And I want to detect
all keyboard events. What do you think that could be the problem?
I ask for your help, please. It's very important for me.
Here you have the declaration of the LowLevelKeyboardProc:
__declspec(dllexport) LRESULT CALLBACK LowLevelKeyboardProc (int code,
WPARAM wParam, LPARAM lParam)
Create the hook:
m_hHkKeyboard = m_pfSetWindowsHook(WH_KEYBOARD_LL, LowLevelKeyboardProc,
aInstance, (DWORD)NULL);
where: m_pfSetWindowsHook is a pointer to the SetWindowsHookExW function;
and delete the hook:
m_pfUnhookWindowsHook(m_hHkKeyboard)
where: m_pfUnhookWindowsHook is a pointer to the UnHookWindowsHookEx
function;
I'm waiting for your answers. Thank you very much.
Sincerely,
javitobcn, Tag: One more easy question, when added a component, how to built? Tag: 65829
WH_KEYBOARD_LL not capture all key events
WH_KEYBOARD_LL not capture all key events
I have a problem. I'm using a WH_KEYBOARD_LL hook in order to capture all
system keyboard events.
I create the hook without problems, but when I want to delete it, the
function unhookWindowsHookEx()
returns a FALSE (that wants to say error in the function), but the hook is
correctly deleted,
because if after I create another WK_KEYBOARD_LL hook, it will be created
correctly.
But my main problem is that in the LowLevelKeyboardProc (the hook process),
I cannot detect
all keyboard events of all the applications of my pda pocket pc. I only
detect the message
WM_KEYDOWN in a few number of keys such as: caps lock, shift, esc, and so
on. And I want to detect
all keyboard events. What do you think that could be the problem?
I ask for your help, please. It's very important for me.
Here you have the declaration of the LowLevelKeyboardProc:
__declspec(dllexport) LRESULT CALLBACK LowLevelKeyboardProc (int code,
WPARAM wParam, LPARAM lParam)
Create the hook:
m_hHkKeyboard = m_pfSetWindowsHook(WH_KEYBOARD_LL, LowLevelKeyboardProc,
aInstance, (DWORD)NULL);
where: m_pfSetWindowsHook is a pointer to the SetWindowsHookExW function;
and delete the hook:
m_pfUnhookWindowsHook(m_hHkKeyboard)
where: m_pfUnhookWindowsHook is a pointer to the UnHookWindowsHookEx
function;
I'm waiting for your answers. Thank you very much.
Sincerely,
javitobcn, Tag: One more easy question, when added a component, how to built? Tag: 65827
Is it okay to Install CE 4.2 after 5.0?
I've purchased and installed Windows CE 5.0 Platform Builder on my
workstation. Due to a requirements change, I have to use 4.2 instead.
What are the issues with installing CE 4.2 on a workstation that
already has 5.0 installed? Tag: One more easy question, when added a component, how to built? Tag: 65818
Debugging USB serial KITL
When porting USB serial KITL to Intel PXA 270 platform, it seems the
TX/RX handler is quite sensitive to timing.
I the followings for debugging
- CATC USB protocol analyzer
- UART debug message
Currently my device could connect with USB via serial KITL, but it's
not robust enough.
Are there any other suggestions for this kind of issue?
- Is KITL protocol analyzer available?
- May I turn on some zones of KITL to get more debug information?
Thanks! Tag: One more easy question, when added a component, how to built? Tag: 65816
Catalog entries don't show up in PB
I added two additional Serial ports to my BSP's CEC file but they do
not show up in PB. Here is the section of the CEC file.
ComponentType
(
Name ( "Serial" )
GUID ( {6563AD6C-E71C-11D4-B892-0050FC049781} )
Description ( "Serial" )
Group ( "\Device Drivers" )
Vendor ( "Microsoft" )
HelpID ( 487 )
MaxResolvedImpsAllowed( 999 )
RequiredCEModules( ANY, "pcmcia serial" )
RequiredCEModules( ALL, "device" )
Implementations
(
Implementation
(
Name ( "A2 COM1" )
GUID ( {E9713CE6-E922-457C-8B0D-879388BE00AE} )
Description ( "i.MX21 Serial Port" )
BSPPlatformDir ( "A2" )
Version ( "4.2.0.0" )
Locale ( 0409 )
Vendor ( "Edge Products LLC" )
Date ( "4/9/2003" )
Variable( "MODULE_NAME", "mx21serial.dll" )
Variable( "BSP_SERIAL1", "1" )
SizeIsCPUDependent( 1 )
BuildMethods
(
BuildMethod
(
GUID ( {E89D979F-8F28-4710-911D-AD11273FB394} )
Step ( BSP )
CPU ( "ARMV4I" )
Action (
'#SRCCODE(SOURCES,"$(_WINCEROOT)\PLATFORM\A2\DRIVERS\SERIAL","")' )
)
)
)
Implementation
(
Name ( "A2 COM2" )
GUID ( {BD0964EA-9F53-410F-8BEF-0695467EB23E} )
Description ( "i.MX21 Serial Port" )
BSPPlatformDir ( "A2" )
Version ( "4.2.0.0" )
Locale ( 0409 )
Vendor ( "Edge Products LLC" )
Date ( "4/9/2003" )
Variable( "MODULE_NAME", "mx21serial.dll" )
Variable( "BSP_SERIAL2", "1" )
SizeIsCPUDependent( 1 )
BuildMethods
(
BuildMethod
(
GUID ( {0B9280BA-8777-451C-BB87-BEA6E7449295} )
Step ( BSP )
CPU ( "ARMV4I" )
Action (
'#SRCCODE(SOURCES,"$(_WINCEROOT)\PLATFORM\A2\DRIVERS\SERIAL","")' )
)
)
)
Implementation
(
Name ( "A2 COM3" )
GUID ( {303BF561-8E1C-4cbb-B3F4-228B55A04254} )
Description ( "i.MX21 Serial Port" )
BSPPlatformDir ( "A2" )
Version ( "4.2.0.0" )
Locale ( 0409 )
Vendor ( "Edge Products LLC" )
Date ( "4/9/2003" )
Variable( "MODULE_NAME", "mx21serial.dll" )
Variable( "BSP_SERIAL3", "1" )
SizeIsCPUDependent( 1 )
BuildMethods
(
BuildMethod
(
GUID ( {49B7FC05-A01D-4e73-BFDC-11FFB6E237A1} )
Step ( BSP )
CPU ( "ARMV4I" )
Action (
'#SRCCODE(SOURCES,"$(_WINCEROOT)\PLATFORM\A2\DRIVERS\SERIAL","")' )
)
)
)
Implementation
(
Name ( "A2 COM4" )
GUID ( {0D8810E8-2085-4c14-ABCC-52D6ACB31E6D} )
Description ( "i.MX21 Serial Port" )
BSPPlatformDir ( "A2" )
Version ( "4.2.0.0" )
Locale ( 0409 )
Vendor ( "Edge Products LLC" )
Date ( "4/9/2003" )
Variable( "MODULE_NAME", "mx21serial.dll" )
Variable( "BSP_SERIAL4", "1" )
SizeIsCPUDependent( 1 )
BuildMethods
(
BuildMethod
(
GUID ( {E9E049D3-22F2-4d18-98B7-D71ED1AFAFD3} )
Step ( BSP )
CPU ( "ARMV4I" )
Action (
'#SRCCODE(SOURCES,"$(_WINCEROOT)\PLATFORM\A2\DRIVERS\SERIAL","")' )
)
)
)
)
)
When I Look under the item in the catalog Third
Party->BSPs->A2->Device Drivers->Serial there is only two serial ports
and the first one shows up with a name of "i.MX21 COM1" not "A2 COM1"
but the GUID is correct (E9713CE6-E922-457C-8B0D-879388BE00AE). And as
I stated the second two ports do not show up at all.
Also, at what point do I need to go to File->Manage Catalog Items...
Select a2.cec and click refresh? Does it essentially do a refresh when
PB is restarted? Please help, this is not the only problem I am
experiencing with the catalog but one at a time.
Gerrit Tag: One more easy question, when added a component, how to built? Tag: 65814
Windows CE 4.x Emulator does not work correctly if you have PAE mode enabled
I get an error everytime I boot. The KB article (883989) states that
this is a result of my system running in PAE mode and I just need to
remove that from my boot.ini file. The only problem ... It's not in my
boot.ini file. Microsoft also informs me that they do not provide
support for the CE emulator other than the newsgroup. So, has anyone
seen this before? Anyone found a solution? Here is my boot.ini file
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP
Professional" /noexecute=optin /fastdetect
Thanks
Gerrit Tag: One more easy question, when added a component, how to built? Tag: 65811
Platform Manager API and build directories
Hello,
I am currently adapting a build system to handle evc4 configurations. To
do so, I must be able to enumerate and allow selection of the different
available platforms and platform configurations from scripts. I finally
discovered the Platform Manager and its COM API. A DFS on the
IPMPlatform property tree return me something like :
########################################################################
SMARTPHONE 2003
{C5C00C80-30C2-11D3-99DD-00105A0DF099}
InstallDir C:\dev\lib\SmartPhone SDK 2003\
{83DACFC1-E17D-11D2-A08F-0060085C1832}
{6869FB12-84C7-4331-AED4-7664E04DC682}
(EVC4-SDK) 1
[... More IPMProperty objects ...]
{2ABBB7CA-3274-4C34-9A26-97F9CC832257}
CECrt C
CECrtDebug C
[... More properties ...]
{D6518FFB-710F-11D3-99F2-00105A0DF099}
Display Name Win32 (WCE ARMV4)
Include Dirs [Directory List here]
Lib Dirs [Directory List here]
Src Dirs [Directory List here]
{32E52003-403E-442D-BE48-DE10F8C6131D}
Display Name Win32 (WCE emulator)
Include Dirs [Directory List here]
Lib Dirs [Directory List here]
Src Dirs [Directory List here]
[... More IPMPlatform objects ...]
########################################################################
At this point, I call a target architecture the object containing the
property tuple ("Display Name", "Include Dirs", "Lib Dirs", "Src Dirs").
There are several targets per platform.
1- Are the targets properties specified somewhere? Their
meaning is obvious from their name but I would prefer to see them
defined since the build tools have to use them.
2- Is there a better way to retrieve them rather than iterating on the
property trees and matching property names? I mean, like retrieving more
structured elements containing these properties?
3- Is there a way to deduce the compiler executable given a target? I
browsed the registry but was unable to relate the target identifiers to
compiler identifiers or other entries. I found the following key tree too :
[HKEY_USERS\MY-SID\Software\Microsoft\CEStudio\4.0\evc\Build
System\Components\Platforms]
under which are listed the available compilers for evc4 as well as their
properties (and the compiler executable name). I can relate them with
targets through the "Display Name" property. However, I do not really
like them to be stored under "HKEY_USERS", it would definitely break if
the build system is run as a service. Can I find these information
somewhere else ?
Patrick Mézard Tag: One more easy question, when added a component, how to built? Tag: 65804
Installable ISR - newbie question
I have a MediaGX based board running Win CE 4.2 and a PC104 SDLC module. The
problem is the manufacturer of SDLC module doesn't have the driver for Win
CE. Can I write an Installable ISR and a driver for that module without
Platform Builder, I only have embedded visual c++ as development tools. Tag: One more easy question, when added a component, how to built? Tag: 65802
Write Image to Flash
Hi All,
I am porting WINCE 5.0 BSP for a ARM based processor. The image is
working fine for when i download it into RAM.
For Writing image to Flash i Checked "Write Run-time image to Flash" in
platform settings and my config.bib file looks something like this:
IF IMGFLASH !
;Ram Image
MEMORY
RESERVED 80000000 00008000 RESERVED
DRV_GLB 80008000 00001000 RESERVED
CS8950 80010000 00030000 RESERVED
EDBG 80040000 00080000 RESERVED
FRAMEBUF 800C0000 00140000 RESERVED
NK 80200000 01E00000 RAMIMAGE
RAM 82000000 02000000 RAM
CONFIG
COMPRESSION=ON
PROFILE=OFF
ROMSTART=80200000
ROMSIZE=01E00000
ROMWIDTH=32
ROMOFFSET=0x80000000
ROMFLAGS=0
KERNELFIXUPS=ON
AUTOSIZE=OFF
ENDIF
IF IMGFLASH
;Flash
MEMORY
RESERVED 80000000 00008000 RESERVED
DRV_GLB 80008000 00001000 RESERVED
CS8950 80010000 00030000 RESERVED
EDBG 80040000 00080000 RESERVED
FRAMEBUF 800C0000 00140000 RESERVED
RAM 80200000 01E00000 RAM
NK 88000000 02000000 RAMIMAGE
CONFIG
COMPRESSION=ON
PROFILE=OFF
ROMSTART=88000000
ROMSIZE=2000000
ROMWIDTH=32
ROMOFFSET=0xD8000000
ROMFLAGS=1
KERNELFIXUPS=ON
AUTOSIZE=OFF
ENDIF
The image is downloaded but when i power off my target board and power
it on againg the image is not getting loaded from flash.
Is there anything else which i need to modify?
Thanks,
Regards,
Sush Tag: One more easy question, when added a component, how to built? Tag: 65798
Problem Set and Query Information NDIs
Hi,
I am trying to set and query information in my NDIS Intermediate Driver but
facing some difficulties:
1. Is it possible to set and query information in an Intermediate Driver.
2. If Yes, then I am using NdisRequest to query the information but when I
try to print the buffer , I am not able to interpret it. Does there exist
any help.
3. Also, when I try to set some information , say buffer length, NdisRequest
give Status Pending and then when I try to print the buffer in which I
stored the data, no printing takes place after that.
Thanks Tag: One more easy question, when added a component, how to built? Tag: 65796
Device Emulator problems
Hi all,
I'm a newbie to Windows CE and have been struggling with getting device
emulator to succesfully work. Basically what I have done is to:
1. Use the New Build Window Wizard to setup the proper build build env. I
chose the Device Emulator as the BSP, Debug for release type, and Smartphone
as the project type.
2. I opened the newly created build windows and did a complete build.
3. I then tried to invoke the Emulator_500.exe with the resulting FLASH.BIN
produced during the build.
The problem is that the emulator never starts due to the following error:
"Your virtual machine may not have enough RAM allocated. Try increasing the
RAM allocation"
I've tried setting the IMGRAM64=1 env variable in the build env. but it
still wont work.
Any help greatly appreciated!
Thanks! Tag: One more easy question, when added a component, how to built? Tag: 65794
About "DriverEntry" and "NDS_init" for USB Ethernet device NDIS driver
Hi All,
I'm developing a USB-to-Ethernet device NDIS driver on CE5 PB. I'm confused
which routine between the "DriverEntry" routine and "NDS_init" routine
should be implemented to initialize my target device and how to deal with
these two routines for my target device driver?
Below are the detail informations about my question,
1. The DriverEntry routine is only called one time during booting up the
WinCE system even if my target USB-to-Ethernet device is not there. The
DriverEntry routine is a required routine for Ethernet NDIS driver.
2. The "NDS_init" routine will be called every time when my target device is
inserted, but the "DriverEntry" routine won't be called any more at this
moment. It seems that I should implement the initialization code into the
"NDS_init" routine. If it's in this case, how to deal with the "DriverEntry"
routine? (Just return a successful code and don't need to implement any code
inside?? or ...??)
I appreciate any comments and suggestions on this issue. Thanks a lot in
advance.
---
Best regards,
Allan Chou
03-5799500 ext.513
allan@asix.com.tw Tag: One more easy question, when added a component, how to built? Tag: 65793
Kernel tracker
Hi there,
I built the x86-emulator setting profiling on. After starting the kernel
tracker (via VC4.0++) one should expect the function-names of the threads to
become visable, instead of just the ID's. This is true for the kernel
processes but the threads of user processes are only visable as ID's.
Any idea how to solve this? Tag: One more easy question, when added a component, how to built? Tag: 65784
Can only change the appearence not the size of the icons!
Hi, I am trying to change the size of the icon in iesample.exe,
if I go to:
C:\WINCE500\public\ie\oak\iesample\res\iesample_base.rc
and open the IDI_IE icon there are five different size/color choises:
Standard (32*32)
32*32, 256 colors
48*48, 256 colors
Small (16*16)
16*16, 256 colors
48*48, 16 colors
My question is how to do if I wan´t to use the Small(16*16) icon for the
iesample.exe?
I haven´t found anything regarding the icon size in the source code for
iesample. exe, is there anywhere else that you can specify the
icon size used in the system?
I hope someone can help me, thanks Dani Tag: One more easy question, when added a component, how to built? Tag: 65783
RAM in CE 5.0 config.bib
Hi,
I am a CE beginner. I tried to set 512MB RAM in the config.bib for CE PC.
But all the documents I can find are just for CE 4.2. The following is the
contents of 5.0 config.bib:
MEMORY
#if defined IMGRAM16
; 16 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 00400000 RAM
#elif defined IMGRAM32
.....
#elif defined IMGRAM512
; 512 MB of RAM (note: AUTOSIZE will adjust boundary)
NK 80220000 009E0000 RAMIMAGE
RAM 80C00000 1E000000 RAM
.....
My question is
If I want to set 512MB RAM, do I just add a "#define IMGRAM512" statement in
the beginning of this file?
Thanks in advance.
James Tag: One more easy question, when added a component, how to built? Tag: 65777
Can't hide the mouse cursor
Hi,
I desperately trying to hide the mouse cursor (arrow). I read
the newgroup entries about this problem. (This is a common issue.:() The
project is based on InternetApplience. The hardware is VIA EPIA-M.
I tried:
1. BSP_NOCURSOR=1
2. BSP_NOCURSOR and BSP_NOMOUSE=1
3. With only Touch Screen in the user interface (some said that there will
be no cursor with touch)
4. With only Mouse
5. With none of them
6. Tried to modify the winceos.bat (but there was cursor or I get link
errors)
7. etc.
I cannot modify the display driver's source, because VIA is not provide
that.
From winceos.bat:
if "%__SYSGEN_MOUSE_CURSOR%"=="1" set
GWE3_COMPONENTS=%GWE3_COMPONENTS% iconcurs mcursor mcursor8
if "%__SYSGEN_TOUCH_CURSOR%"=="1" set
GWE3_COMPONENTS=%GWE3_COMPONENTS% cursor cursor8
What is the difference between mcursor - cursor and mcursor8 - cursor8?
I spent nearly a day with this problem. It is gets irritate me. Thanks for
any advice.
Bálint Kátay. Tag: One more easy question, when added a component, how to built? Tag: 65770
Adding .Net CF to tiny kernel
I want to add the .Net framework to a WinCE image developed under platform
builder 4.2. The PB "documentation" says to add the SYSGEN variable
SYSGEN_DOTNET=1... and that's all! Big help that is. Anyone know where/how
I do this? Or what a SYSGEN variable is?
I tried going into Platform->Settings and then setting SYSGEN_DOTNET as an
environment variable. When I did that, a dialog open and asked if I wanted
to add the CF. So I said yes and it added "NET Compact Framework 1.0" under
a folder names ".NET Compact Framework" under another folder names
"Application and Services Development" on the left pane of Platform Builder.
I saved everything then rebuilt the image. The image is the same size
(~2.5M) as before I did all this, and I'm sure the CF is bigger than that.
I also tried setting an environment variable "SYSGEN_DOTNET_SUPPORT", as
mentioned in the docs, but that didn't change anything either.
Then I wrote a "Hello World" console app in VB.Net and put it on the device.
When I try to run it (via telnet...this is a headless device) , WinCE
reports that it can't run it. I'm pretty sure the CF did not get loaded with
the image.
Anyone have any ideas? Do I need to load the CF sepearately? I'm new at
WinCE so please don't assume I know what you're tallking about. Tag: One more easy question, when added a component, how to built? Tag: 65760
Stream Driver memory exception problem
I am writing a simple driver for a memory mapped digital IO chip. It uses
a 4 byte interface that is phsycially mapped to 0x57800000-0x57800003.
The Init function allocates virtual memory to map these registers using
the following code:
if (v_pDIO_BASE == NULL)
{
v_pDIO_BASE = VirtualAlloc(0,4096,MEM_RESERVE,PAGE_NOACCESS);
if (v_pDIO_BASE == NULL)
{
ERRORMSG(1,(TEXT("VirtualAlloc failed! (0x%x)\r\n"),GetLastError()));
return(0);
}
if
(!VirtualCopy(v_pDIO_BASE,(PVOID)(SBC1625_DIO_BASE_PHYSICAL>>8),4096,PAGE_READWRITE|PAGE_NOCACHE|PAGE_PHYSICAL))
{
ERRORMSG(1,(TEXT("VirtualCopy failed! (0x%x)\r\n"),GetLastError()));
return(0);
}
}
The memory allocation works fine and devices.exe loads the driver on boot.
When I attempt to use the driver, however, I get a memory exception that
is caused by attempting to use the memory allocated. The exception is
caused by my DIO_Write function which looks like this:
DEBUGMSG(1, (TEXT("DIO Base Address: '%Xh' -- '%Xh'\r\n"),v_pDIO_BASE,
SBC1625_DIO_BASE_PHYSICAL));
DEBUGMSG(1, (TEXT("DIO Port Chosen: '%Xh'\r\n"),NumberOfBytes));
DEBUGMSG(1, (TEXT("DIO Write Value: '%Xh'\r\n"),(*((BYTE
*)(pSourceBytes)))));
DEBUGMSG(1, (TEXT("DIO Writing to Address: '%Xh'\r\n"), (BYTE
*)(v_pDIO_BASE) + NumberOfBytes ));
WRITE_REGISTER_UCHAR( (BYTE *)(v_pDIO_BASE) + NumberOfBytes, (*((BYTE
*)(pSourceBytes))) );
DEBUGMSG(1, (TEXT("Memory Write Completed")));
return (1);
The debug dump looks like this:
x83ceccfc: DIO Base Address: '4C0000h' -- '57800000h'
0x83ceccfc: DIO Port Chosen: '3h'
0x83ceccfc: DIO Write Value: '80h'
0x83ceccfc: DIO Writing to Address: '4C0003h'
0x83ceccfc: Undefined Instruction: Thread=83ceccfc Proc=81676aa0
'device.exe'
0x83ceccfc: AKY=00000045 PC=02f218d8(diodrv.dll+0x000018d8)
RA=02f2163c(diodrv.d
ll+0x0000163c) BVA=0e02f9e4 FSR=000004f6
0x83ceccfc: RaiseException: Thread=83ceccfc Proc=81676aa0 'device.exe'
0x83ceccfc: AKY=00000045 PC=03f4e9ac(coredll.dll+0x0002e9ac)
RA=802a5e48(NK.EXE+
0x00018e48) BVA=0e02f398 FSR=00000000
I have tried everything I can think of to get this to work, but an
exception is raised every time I attempt to access this memory. Is there
anything that anyone can see that would cause this execption? Am I
running into permissions issues with this area of memory? Thanks Tag: One more easy question, when added a component, how to built? Tag: 65755
When I have added a new component, what is the proper way to get this into
my image.