CodeWarrior C compiler for MC9S12DP256

Started by Naheed M K August 11, 2003
Hi,
Does any one use c compiler for MC9S12DP256 for developing small code
to store at RAM and execute it. I am using DRAGON12PRO board and
trying to compile. I have successfully compiled and stored the code
to RAM but not able to execute. I have tried to load .abs file and s
record file both not working.

Any idea ?

Thanks
Naheed



Hi Naheed.

Did you make sure that the processor's PC is set to your code entry point
before running the part?
Also resetting the debugger will make the chip fetch the first PC in
FFFE-FFFF. If the reset vector is not programmed, set the PC yourself via
the debugger Register window.

You can also set the pc by command, in a "postload" command file, for
example, with:

RS PC _Startup

(to make the pc point to the startup code (Startup function) after loading
your .abs file)

Best regards,
Gilles At 04:36 PM 8/11/2003, you wrote:
>Hi,
>Does any one use c compiler for MC9S12DP256 for developing small code
>to store at RAM and execute it. I am using DRAGON12PRO board and
>trying to compile. I have successfully compiled and stored the code
>to RAM but not able to execute. I have tried to load .abs file and s
>record file both not working.
>
>Any idea ?
>
>Thanks
>Naheed >
>-------------------- >
>">http://docs.yahoo.com/info/terms/





Hi Gilles,
After loading .abs file I opened command window and running by command
"g 0x3000". 0x3000 is the program start point
it gives me Start error.

even I tried to set pc using "t pc 0x3000". Still it is not. I will
try with postload command.

Thanks
Naheed

--- In , Gilles Blanquin <gblanquin@m...> wrote:
> Hi Naheed.
>
> Did you make sure that the processor's PC is set to your code entry
point
> before running the part?
> Also resetting the debugger will make the chip fetch the first PC
in
> FFFE-FFFF. If the reset vector is not programmed, set the PC
yourself via
> the debugger Register window.
>
> You can also set the pc by command, in a "postload" command file,
for
> example, with:
>
> RS PC _Startup
>
> (to make the pc point to the startup code (Startup function) after
loading
> your .abs file)
>
> Best regards,
> Gilles > At 04:36 PM 8/11/2003, you wrote:
> >Hi,
> >Does any one use c compiler for MC9S12DP256 for developing small
code
> >to store at RAM and execute it. I am using DRAGON12PRO board and
> >trying to compile. I have successfully compiled and stored the code
> >to RAM but not able to execute. I have tried to load .abs file and
s
> >record file both not working.
> >
> >Any idea ?
> >
> >Thanks
> >Naheed
> >
> >
> >
> >--------------------
> >
> >
> >
> >">http://docs.yahoo.com/info/terms/




Hi Naheed.

You use a CodeWarrior C compiler, but which debugger do you use?
The command here below "t pc 0x3000" does not exist in the
HI-WAVE/CodeWarrior debugger.

If you use HI-WAVE, make sure that your code is really loaded at 0x3000.
Load "read back only" to verify that your code is in ram.

Best regards,
Gilles

At 06:30 PM 8/11/2003, you wrote:
Hi Gilles,
After loading .abs file I opened command window and running by command
"g 0x3000". 0x3000 is the program start point
it gives me Start error.

even I tried to set pc using "t pc 0x3000". Still it is not. I will
try with postload command.

Thanks
Naheed

--- In , Gilles Blanquin <gblanquin@m...> wrote:
> Hi Naheed.
>
> Did you make sure that the processor's PC is set to your code entry
point
> before running the part?
> Also resetting the debugger will make the chip fetch the first PC
in
> FFFE-FFFF. If the reset vector is not programmed, set the PC
yourself via
> the debugger Register window.
>
> You can also set the pc by command, in a "postload" command file,
for
> example, with:
>
> RS PC _Startup
>
> (to make the pc point to the startup code (Startup function) after
loading
> your .abs file)
>
> Best regards,
> Gilles > At 04:36 PM 8/11/2003, you wrote:
> >Hi,
> >Does any one use c compiler for MC9S12DP256 for developing small
code
> >to store at RAM and execute it. I am using DRAGON12PRO board and
> >trying to compile. I have successfully compiled and stored the code
> >to RAM but not able to execute. I have tried to load .abs file and
s
> >record file both not working.
> >
> >Any idea ?
> >
> >Thanks
> >Naheed
> >
> >
> >
> >--------------------
> >
> >
> >
> >">http://docs.yahoo.com/info/terms/
--------------------
">http://docs.yahoo.com/info/terms/



HI Gilles,
Sorry I used command "tp pc 0x3000" on Dbug-12 command window under
True-time simulator that coming with code warrior standard version.
But it throws error. Also the sRecords generated is very lengthy and
that cannot be loaded by some other tool. I have try to set the
burner file still no use.
postload command as per your suggestion "RS PC _Startup" is giving
error too.
I switched to another c IDE embeddedGNU and it works fine.
Thanks
Naheed

--- In , Gilles Blanquin <gblanquin@m...> wrote:
>
> Hi Naheed.
>
> You use a CodeWarrior C compiler, but which debugger do you use?
> The command here below "t pc 0x3000" does not exist in the
> HI-WAVE/CodeWarrior debugger.
>
> If you use HI-WAVE, make sure that your code is really loaded at
0x3000.
> Load "read back only" to verify that your code is in ram.
>
> Best regards,
> Gilles
>
> At 06:30 PM 8/11/2003, you wrote:
> Hi Gilles,
> After loading .abs file I opened command window and running by
command
> "g 0x3000". 0x3000 is the program start point
> it gives me Start error.
>
> even I tried to set pc using "t pc 0x3000". Still it is not. I will
> try with postload command.
>
> Thanks
> Naheed
>
> --- In , Gilles Blanquin <gblanquin@m...>
wrote:
> > Hi Naheed.
> >
> > Did you make sure that the processor's PC is set to your code
entry
> point
> > before running the part?
> > Also resetting the debugger will make the chip fetch the first PC
> in
> > FFFE-FFFF. If the reset vector is not programmed, set the PC
> yourself via
> > the debugger Register window.
> >
> > You can also set the pc by command, in a "postload" command file,
> for
> > example, with:
> >
> > RS PC _Startup
> >
> > (to make the pc point to the startup code (Startup function)
after
> loading
> > your .abs file)
> >
> > Best regards,
> > Gilles
> >
> >
> > At 04:36 PM 8/11/2003, you wrote:
> > >Hi,
> > >Does any one use c compiler for MC9S12DP256 for developing small
> code
> > >to store at RAM and execute it. I am using DRAGON12PRO board and
> > >trying to compile. I have successfully compiled and stored the
code
> > >to RAM but not able to execute. I have tried to load .abs file
and
> s
> > >record file both not working.
> > >
> > >Any idea ?
> > >
> > >Thanks
> > >Naheed
> > >
> > >
> > >
> > >--------------------
> > >
> > >
> > >
> > >">http://docs.yahoo.com/info/terms/ >
> -------------------- >
> ">http://docs.yahoo.com/info/terms/