Hi there,
After recently purchasing new Treo 600 phones, and with my background as a computer game programmer (PSX, Saturn & PC), I thought I'd give programming the 600 a go.
I've had nothing but trouble with it over the last week - I know that this has probably been covered a load of times, but I can't find the problems in the knowledge base. I'm using the eclipse stuff from this site.
Even the simplest stuff is failing - My problems are as follows:
1) The Garnet simulator doesn't work when I call BmpCreate. The header is written 16 bytes away from the returned pointer and the bitmap itself is not refreshed to white - this is not the documented result - and the simulator also crashes when I try to write to the bitmap data.
BmpCreate does work. However, on Palm OS 5, you can't directly access the data structures used by the OS. Instead, you should use the SDK and glue library calls (BmpGlue.h and Bitmap.h) to handle accessing this data.
2) After giving up on the simulator, I find that the emulator works as expected - even the debugger returns accurate results. The problem here is, I can't get the emulator to use the skins, the handspring site appears to have disappeared and all the generic skins are monochrome emulations. The emulator also doesn't have an OS 5 ROM with it.
I suppose the question is, how do I set up a good debug environment for a low density palm OS 5 device in 65536 colours?
The Palm OS Emulator can't emulate an OS 5 device. It can only emulate 68K-based devices. For a 16-bit color, low-density device, you need to get a ROM image for a m505 or equivalent. These are available from the developer program at http://www.palmsource.com/developers/
If you're doing game development, especially for Palm OS 5, you might want to look at using a library like Razor or GapiDraw. See http://flippinbits.com/twiki/bin/view/Main/DevelopmentToolsList for a good list of tools and libraries.
-- Ben Combee, DTS technical lead, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Palm OS Dev Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
