PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Trouble getting started

Hi,

I'm new to PPC development, and am having trouble getting started with PocketFrog. I installed EVC 3.0 and am trying to run the PocketFrog examples (from the make directory).

The configurations provided by default are Win32 (WCE ARM) Debug and Release. Neither runs in the "Pocket PC 2002 Emulation" (The Intel 80486 CPU does not support configuration...). My actual device is XScale (Dell Axim), so I can't seem to run on the actual device either.

What do I have to do in order to run

1) in the emulator
2) on my XScale device

Thanks!

::MikiNanuk

(Note: I already searched the forum for relavant posts)
Hi MikiNanuk,

the XScale is backwards compatible with ARM (in fact it's a "renamed" ARM), so anything that works in ARM, works in XScale.

I can't help you with the emulator, sorry. Anyway you can easily debug your project in a native windows application (done with Visual Studio) and then port it easily to embedded visual studio to target the arm device (it's the way I work, however I don't mean it's better, it's just that I've never used the emulator ;) )
I typically don't use the emulator either. If I run on the desktop I just compile in MSVC 6. For the PocketPC in EVC3.0, make sure that you are targeting:

Active Platform: Pocket PC 2002
Active Configuration: Win32 (WCE ARM) Release
Target: Pocket PC 2002 (Default Device)

On the Active Configuration, you could also use "Win32 (WCE ARM) Debug".

What kind of trouble are you having? Any error messages? I also use an Axim for most of my testing.
Thanks, this worked great!
MikiNanuk wrote:
What do I have to do in order to run
1) in the emulator


I've also had this problem trying to compile and run on the PPC2002 emulator. You have to build a new lib called "PocketFrog_EMU_Debug.lib". Also you have to change the machine target to IX86. This example goes for the Blit sample.

1) In the PocketFrog workspace target "WIN32(WCE x86) Debug". (You probably have to add this configuration in Build->Configuration. Choose *Default Debug configuration). Compile.

2) A new lib called PocketFrog.lib is created in the x86Dbg-directory. (e.g. c:/PocketFrog/make/x86Dbg). This is the lib-file you now copy to the lib-directory (e.g. c:/PocketFrog/lib). Here, rename the file to "PocketFrog_EMU_Debug.lib".

3) Open Blit.vcw and target "WIN32(WCE x86) Debug". (As mentioned above, you again probably have to create this configuration)

4) This is the part that I didn't get until now. When I compiled I got the linking error:
fatal error LNK1112: module machine type "IX86" conflicts with target machine type "ARM"
To fix this go to Project->Settings. Choose the tab named "Link". (Make sure you're changing the settings for "WIN32(WCE x86) Debug".) At the bottom of the dialog there's a box called "Project Options". Scroll down to the bottom. There you should see /MACHINE:ARM. Change ARM and instead write IX86. Done.

It should now compile and blit should be able to run on your PPC2002 emulator. Hope my description wasn't too confusing :)

/Kim
" 1) In the PocketFrog workspace target "WIN32(WCE x86) Debug". (You probably have to add this configuration in Build->Configuration. Choose *Default Debug configuration). Compile "

I have stuck here because the pocketFrog will report 9 error if I want build to win32(WCEx86) Debug.
If I build pocketfrog and blit sample into win32(ARM), it will give me a 80486 does not support blit (ARM) error.
How could I make it work on PPC2002 emylation?
BTW, my ev4 can't find ppc2002 emulation.
thanks
finally make it worked for Emulator. :lol:
to run x86 build , include path need add source,lib and frog directory.
the <PocketHAL/display.h> in display.h need to change to "PocketHAL/display.h".
I can't add external dependencies like the orignal build in evc++3.0 , check on MSDN seems MS had abandoned external dependencies after VS6.0