PocketMatrix forums

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

ARM and CF reset?

I have a small help request that has frustrated me to no end. In a nutshell, I need to control the CF (compact flash) reset pin on ARM pocketpc machines (like IPaq 3800s, 3900s, etc..). All I want to do is to get software access to this, but I have found very little info on accessing the egpio pins.

Is there anybody who has an inkling of what is necessary to accomplish this? I am confident developing apps in EVC++ (and even know the process for including assembler), but heck if I can find out the address of this pin or how to set it!

I am hoping that somebody out there has a clue how to do this, and would be eternally grateful for any info they might care to share.
(Proviso - I've not played with GPIOs yet, so this is guesswork).

I would suspect that hardware access that low is going to be "tricky", as the PocketPC OS might get rather upset if you start overruling it. I don't if it details the GPIOs, but have you tried looking that the Compaq/HP Ipaq SDK stuff in the developer section of their site?

If the GPIOs are memory mapped then you should be able to find their location(s) in the StrongARM reference manuals chez Intel (most other memory mapped areas in the StrongARM can only be mapped to certain locations).

If not, I'm 99% sure that you can access the GPIOs from within Linux on the Ipaq (though that may not be a solution for your problem, of course).
Thanks for the reply Refractor! :D

I would suspect that hardware access that low is going to be "tricky", as the PocketPC OS might get rather upset if you start overruling it.


The trickiest part seems to be just finding the right memory addresses at this point! My (rather small) kingdom for a decent memory map. I do know that this should be possible on the PocketPC as some commercial software does what I am attempting to do (namely toggle the Compact Flash reset pin via software).

...have you tried looking that the Compaq/HP Ipaq SDK stuff in the developer section of their site?


I checked out their website in detail, and found nothing about physical memory access. I did, however, find a little information on the IPAQ 3600 at handhelds.org: http://www.handhelds.org/Compaq/iPAQH3600/iPAQ_H3600.html

It states:
The extended GPIO port is write only. The EGPIO appears in static bank 4 starting at address 0h49000000. It is addressed by MCS5# with A25=0, A24=1.


and that the 2nd pin is..

EGPIO1 O(H) CARD_RESET CF/PCMCIA card reset signal


So am I correct in assuming I should be able to use VirtualAlloc/Copy to get access to that memory address and simply write to the 2nd bit? Does anyone have experience doing this with gpio/egpio ports?

Also, does anybody know of a good physical memory map for the IPAQ 3100 or 3800 series, or the newer XSCale models? This info I found only suggested a memory address for the 3600 series, and I expected that my searches would have turned up one for the 3800. (Again, I couldnt find one on the IPAQ site).

...I'm 99% sure that you can access the GPIOs from within Linux on the Ipaq (though that may not be a solution for your problem, of course).


Thanks for the tip! I did start looking at the Linux code for any possible insights. But as you noted, PocketPC is the intended target.
In theory, the egpio is write-only, so you don't even have to worry about setting the direction flags or anything - you just write 2 to 0x49000000 (or wherever you mapped it to in virtual space).

Try doing something like turning off the audio amplifier by toggling EGPIO10 and 11 to 0 :)

I wouldn't hold you breath looking for memory maps :( You just have to look at the disparate approaches for simple things like DMA framebuffers to see how each manufacturer is doing different things :'(