![]() | ||
| Home | SwiftX Archive | SwiftForth Archive | |

You are correct. SYNC-CORE should have ended with a TARGET declaration.
Thanks,
Tom
-----Original Message-----
From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf Of
Elizabeth D. Rather
Sent: Thursday, April 18, 2002 12:11 PM
To: swiftx_at_forth.com
Subject: [swiftx] Re: Initializing EXT-IRAM on the CMD12A4 using SwiftX Pro
At 10:44 PM 4/17/02 -0700, Thomas Talkington wrote:
>Hello all,
>
>First time poster to the list=85
>
>I have just upgraded to SwiftX Pro 3.1.7. On my version 2.5 the following
>code worked to initialize EXT-IRAM on the CMD12A4 board. Now when I use it
>at debug I get:
>
>INCLUDE DEBUG START ?
>SYNC-CORE START CR GREET
>At line 4 in C:\Projects\ForthInc\Projects\Bus_A4\DEBUG.F
Specifically, this means that the interpretive execution of START on the
referenced line failed to find any definition of START. It's supposed
to be in CMD12A4\Start.f, which is normally loaded near the end of=20
Kernel.f. Is
it somehow missing or in a different place?
Some things were rearranged between 2.x and 3.x to accommodate the non-Pro
versions and the new project management features. It would be a good idea
to compare the organization of your project files such as Kernel.f, Start.f,
etc. with the new ones as shipped.
>I assume that this means that START bombed at compilation time, never
>completing the definition, however I did not get an error message during
>build.
No, the error message indicates where the error occurred, which
suggests simply a failure to find START at all. Had it failed to compile,
you'd have gotten an error message about that at the time.
>The following is the code from the =93Initialize Data Space=94 section of=
the
>START.F file in the 68HC12 folder. I have also included definitions that I
>did not modify. Any clues as to what I am doing wrong? Perhaps there is a
>better way to do it. It is odd that the CONFIG file for the CMD12A4=
defines
>an external IDATA section but does not restore it at startup.
The code in 68HC12\Start.f is generic to all 68HC12's, and not=
board-specific.
The comment by the definition of EXT-IRAM suggests it's defined for
testing purposes, which implies that the kernel doesn't use it and
therefore there's nothing to restore. If you have added things that use
it to your kernel, it's appropriate to put additional initialization in your
project's Start.f.
Best regards,
Help desk
>Best regards,
>
>Tom Talkington
>
>
>IRAM
>IDATA LIMITS DROP EQU IN-DATA
> HERE IN-DATA - EQU DATA-SIZE
>
>EXT-IRAM
>IDATA LIMITS DROP EQU EXT-IN-DATA
> HERE EXT-IN-DATA - EQU EXT-DATA-SIZE
>
>CDATA HERE EQU IN-CODE EXT-DATA-SIZE DATA-SIZE + ALLOT
> HERE 0 , EQU CHECKSUM
>
>IDATA
>
>INTERPRETER
>
>: SAVE-IDATA ( -- )
> DATA-SIZE 0 ?DO IN-DATA I + C@ IN-CODE I + C!C LOOP
> EXT-DATA-SIZE 0 ?DO EXT-IN-DATA I + C@ IN-CODE DATA-SIZE + I + C!C =
LOOP
>;
>
>: SAVE-CHECKSUM 0 CDATA LIMITS SWAP DO I C_at_C + LOOP
> CHECKSUM !C IDATA ;
>
>: SYNC-CORE CONNECT CHECKSUM @C DISCONNECT CHECKSUM @C
> <> ABORT" KERNEL MISMATCH" CONNECT ;
>
>TARGET
>
>: /IDATA ( -- )
> IN-CODE IN-DATA DATA-SIZE CMOVE
> IN-CODE DATA-SIZE + EXT-IN-DATA EXT-DATA-SIZE CMOVE ;
>
>
>
>
>----------------------------------------------------------------------
>swiftx_at_forth.com The SwiftX programming discussion email list
>To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
>For help with listar commands, send subject "help" to listar_at_forth.com
>Archives are located at http://www.forth.com/swiftx -- check them out!
>----------------------------------------------------------------------
>THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Elizabeth D. Rather (US & Canada) 800-55-FORTH
FORTH Inc. +1 310-491-3356
5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com
"Forth-based products and Services for real-time
applications since 1973."
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Fri Apr 19 2002 - 06:27:44 PDT
This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:24 PST