Re: Can't attach to process on CE device



Thank you very much for the replies. Unfortunately I'm still stuck.

I included toolhelp.dll by way of including Debugging Tools, as Paul
pointed out. Anyway, the problem persists whether the "Enable Kernel
Debugger" option is checked or not. I'm using a custom SDK. I've
built my own OSDesign based in Platform Builder based on one of the
templates. Then I exported the SDK and I use that in eMbedded VC++.

I can't use the emulator because I'm developing a client driver for
a USB device. I need to access the device.

My toolhelp.dll file is normally read-only and I can't change it. But
one time I did boot up and it was not read-only for some reason. So I
tried to delete it and I did. But I saw some strange behavior. The
toolhelp.dll file went to the recycle bin, but when I hit F5, it also
reappeared in the \Windows directory again. I'm new to WinCE so for
all I know maybe that's normal. Anyway, none of this seemed to help
at the time. Now, toolhelp.dll has gone back to being read-only and I
don't know why it was writeable that one time.

I started to think that toolhelp.dll is being held by the Platform
Builder debugger somehow. So far, the only way I've been able to run
my nk.bin image on the CEPC device is to boot the device with a floppy
and then download the image from Platform Builder. I figured that maybe
I need to get Platform Builder out of the picture. But simply stopping
the PB debugger and detaching didn't help. So then I wanted to try
booting directly to the nk.bin image, but I haven't been able to do
that yet. Since the image won't fit onto a floppy, I need to boot
either from a CD or hard disk. I tried making a bootable CD that's
equivalent to the floppy except that it includes nk.bin on it as well.
But for some reason, the nk.bin file is not visible when booting to
MSDOS 6.22 and I don't know why. And if I type "loadcepc /v
nk.bin" I get the error that the file is not found. I don't know if
booting from hard disk will be any better, but I'm going to try that
next, after I reformat from NTFS to FAT.

But it all seems rather odd. If eVC++ is going to try to download
toolhelp.dll, then why is it said that toolhelp.dll needs to be on the
target system? Or if it's already there, why is eVC++ trying to
download it?

I did come across the following note in a readme file for eVC++ SP2 QFE
5308:

---------------------------------------------------
Error Messages:

If you get the error message regarding 'File not found' or files
not copied, the possible reason is that a specific processor files are
not originally installed on the machine and hence could not be updated.


You will also get the File could not be copied error if a newer version
of the file already exists on your machine or the file was in use by
another process and could not be copied over.
----------------------------------------------------

Maybe that's obsolete since I'm using SP4. Anyway, I think the
toolhelp.dll file on the target system is the same one it's trying to
download. The date and time of the one on the target system matches the
one I found in C:\Program Files\Common Files\Microsoft Shared\Windows
CE Tools\Platman\target\wce500\x86\. (07/06/2004 12:39) So there
shouldn't be any conflict as far as that's concerned.

Still plugging away.

.



Relevant Pages

  • Re: kernel dll driver
    ... do you have instruction how to use the debugger in platform builder? ... I did sample driver in Embedded Visual C, and I can download to CE target device but can ... In platform builder how do you open the driver project and download to target device for debugging? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Platform Builder download
    ... The download has been proven to be unreliable since it is so huge. ... > I am trying to install Microsoft Windows CE .NET 4.2 platform builder. ... > similar error messages. ...
    (microsoft.public.windowsce.platbuilder)
  • PB Cant Communicate With Device After EBOOT in CE 5.0
    ... Windows CE Desktop appears on the target, Platform Builder can no longer ... I am using Platform Builder for Microsoft Windows CE 5.0, ... The Kernel Debugger is waiting to connect with target. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Breakpoint instantiation
    ... don't have any debugger configured in the Target Device Connctivity ... so I can download the image. ... Also I cannot connect to the device with the remote tools. ... Could the breakpoint problem be related with this? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Breakpoint on Operative system
    ... All the info you need to configure the device and download the ... Luca Calligaris ... Build Options -> Enable kernel debugger. ... I have enabled KITL and connect my board through ethernet, ...
    (microsoft.public.windowsce.platbuilder)