embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: Sections and section types

From: David Graham <dgraham_at_grahamautomationinc.com>
Date: Sun, 11 Jan 2004 15:53:12 -0700

Leon,
I finally got it working. I did not know that I needed to use the E@
command in ExtCode.f to access the data in code space, and then I did
not know how to format the e-address for E@, and then I did not know
that E@ would not work in the SwiftX environment, but once I got past
all that, I finally found that when I compiled the following;

\ Code for HCS12A256 internal flash
$328000 $32BFFF CDATA SECTION PAGE2
PAGE2 CDATA
CREATE MethData
200 , 0 , 384 , ," First Vial "

: T $32 methdata 20 EDUMP ;

PAGE2 $C8000 ABSOLUTE APPEND-CODE TARGET.S19
PROG1 $FC000 ABSOLUTE APPEND-CODE

T displayed the data I expected. I am still not sure how the ABSOLUTE
addresses are determined for the build file - I copied mine from another
project, and it seems to work, but it would be nice to know why.

Thanks,
David Graham

Leon wrote:
Are you trying to read back the data (in code space -- note deliberate
non-portable use of code space) at compile time or at run time? If the
problem is at run time (i.e. executing in the target), I would guess
that you aren't programming the paged code in the right place.

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sun Jan 11 2004 - 14:55:41 PST

This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 03:04:22 PST