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

Re: Sections and section types

From: Leon Wagner <leon_at_forth.com>
Date: Sun, 11 Jan 2004 15:09:00 -0800

The ABSOLUTE addresses embedded in the Motorola S-Record formats are
specific to whatever loader you're using to program the internal flash. If
you already had a project with these values, that means that in the past you
(or somebody else) figured out how to map each code page's S-records to the
absolute address required by the loader.

--Leon

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of David Graham
> Sent: Sunday, January 11, 2004 2:53 PM
> To: swiftx_at_forth.com
> Subject: [swiftx] Re: Sections and section types
>
>
> 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
> ----------------------------------------------------------------------
>
>

----------------------------------------------------------------------
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 - 15:11:28 PST

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:25 PST