You are trying to directly access hardware through the 68K abstraction layer.  I think 
you'll
need to build that routine as a native ARMlet.

Kevin

-----Original Message-----
From: Jean-Francois Briere [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 11:12 PM
To: Palm Developer Forum
Subject: Accessing the Tungsten C memory mapped registers



Hi,



I am developping an application that must access the memory mapped registers

of the Tungsten C (Palm OS 5.2 / Intel PXA255 / ARM Architecture).

According to the PXA255 specs, all memory mapped registers fot peripherals

are at addesses 0x4000000+, but when I try to access one of these address,

I get a "Fatal Exceptoin" alert.

For instance, to read the Timer Counter register:



UInt32 * PXA255_OSCR = (UInt32 *)0x40A00010;

UInt32 val = *PXA255_OSCR; // Fatal exception!



I try this also with the debugger and simulator, I get this error:

Run68K.c, Line:2204, Invalid read from 40A00010

EXCEPTION ID = $BC



What is the problem?



Jean-Francois









_______________________________________________
No banners. No pop-ups. No kidding.
Introducing My Way - http://www.myway.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


------------------------------------------
The information in this transmittal and any attachments are confidential and intended 
only for the recipient(s) listed above. You are hereby notified that any unauthorized 
distribution or copying of this transmittal or its attachments is prohibited. If you 
have received this transmittal in error, please notify invivodata immediately at (831) 
438-9550.
------------------------------------------



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to