Forums

using codewarrior without a BDM

Started by oulaxer11 November 16, 2003
More Noob question -

I have an Axiom Board with the HCS12 - DP256

I wrote a VERY simple C program in codewarrior and tested it...

I want to download it to the flash of the HCS12 using the AxIDE but
when i try to upload the S - record i get a ROM error, which makes
sense becuase I have no idea where the program is being written to..
no where did i see a place to set where the program would start...
i.e. 4000 or something..

Thanks for any help..




Hi.

Please have a look in the directory where the .s19 file was generated. Have
a look in the .map file (text file). You should find all info there.
Also you might have to load a "physical" srecord file. In the same folder,
there should be a .phy file generated (CodeWarrior for HC12 v2.0 and newer
releases).

Regards,
Gilles At 01:13 AM 11/17/2003, you wrote:
>More Noob question -
>
>I have an Axiom Board with the HCS12 - DP256
>
>I wrote a VERY simple C program in codewarrior and tested it...
>
>I want to download it to the flash of the HCS12 using the AxIDE but
>when i try to upload the S - record i get a ROM error, which makes
>sense becuase I have no idea where the program is being written to..
>no where did i see a place to set where the program would start...
>i.e. 4000 or something..
>
>Thanks for any help.. >
>-------------------- >
>">http://docs.yahoo.com/info/terms/





Thanks for the reply -

is there a way to force the program to start at a specific location?
the MON12 program is sitting in ROM and I have to start my program
after $2000 --- In , Gilles Blanquin <gblanquin@m...> wrote:
>
> Hi.
>
> Please have a look in the directory where the .s19 file was
generated. Have
> a look in the .map file (text file). You should find all info there.
> Also you might have to load a "physical" srecord file. In the same
folder,
> there should be a .phy file generated (CodeWarrior for HC12 v2.0
and newer
> releases).
>
> Regards,
> Gilles > At 01:13 AM 11/17/2003, you wrote:
> >More Noob question -
> >
> >I have an Axiom Board with the HCS12 - DP256
> >
> >I wrote a VERY simple C program in codewarrior and tested it...
> >
> >I want to download it to the flash of the HCS12 using the AxIDE but
> >when i try to upload the S - record i get a ROM error, which makes
> >sense becuase I have no idea where the program is being written
to..
> >no where did i see a place to set where the program would start...
> >i.e. 4000 or something..
> >
> >Thanks for any help..
> >
> >
> >
> >--------------------
> >
> >
> >
> >">http://docs.yahoo.com/info/terms/



You can do so, by setting the appropriate options in the .PRM file.

John
http://embedded.mistekllc.com

> -----Original Message-----
> From: oulaxer11 [mailto:]
> Sent: Tuesday, November 18, 2003 10:42 AM
> To:
> Subject: [68HC12] Re: using codewarrior without a BDM > Thanks for the reply -
>
> is there a way to force the program to start at a specific location?
> the MON12 program is sitting in ROM and I have to start my program
> after $2000 > --- In , Gilles Blanquin <gblanquin@m...> wrote:
> >
> > Hi.
> >
> > Please have a look in the directory where the .s19 file was
> generated. Have
> > a look in the .map file (text file). You should find all
> info there.
> > Also you might have to load a "physical" srecord file. In the same
> folder,
> > there should be a .phy file generated (CodeWarrior for HC12 v2.0
> and newer
> > releases).
> >
> > Regards,
> > Gilles
> >
> >
> > At 01:13 AM 11/17/2003, you wrote:
> > >More Noob question -
> > >
> > >I have an Axiom Board with the HCS12 - DP256
> > >
> > >I wrote a VERY simple C program in codewarrior and tested it...
> > >
> > >I want to download it to the flash of the HCS12 using the
> AxIDE but
> > >when i try to upload the S - record i get a ROM error, which makes
> > >sense becuase I have no idea where the program is being written
> to..
> > >no where did i see a place to set where the program would start...
> > >i.e. 4000 or something..
> > >
> > >Thanks for any help..
> > >
> > >
> > >
> > >--------------------
> > >
> > >
> > >
> > >">http://docs.yahoo.com/info/terms/ > ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
> Printer at MyInks.com. Free s/h on orders $50 or more to the
> US & Canada.
> http://www.c1tracking.com/l.asp?cidU11
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/dN_tlB/TM
> --------------------------
> -------~->
>
> -------------------- >
> ">http://docs.yahoo.com/info/terms/
>





Hi.

Do you mean the MON12 monitor jumps to user application at $2000?

If yes, I propose you to use the current workaround:

in your .prm file, set for example: VECTOR ADDRESS 0x2000 0xA706 /* NOP + JMP ext */
VECTOR ADDRESS 0x2002 _Startup /* entry function/code of your program */

At $2000 will be "wired" a NOP then a JMP to the _Startup function.

There should be some other ways, you sould check with
"". Thanks.

Regards,
Gilles

At 04:41 PM 11/18/2003, you wrote:
>Thanks for the reply -
>
>is there a way to force the program to start at a specific location?
>the MON12 program is sitting in ROM and I have to start my program
>after $2000 >--- In , Gilles Blanquin <gblanquin@m...> wrote:
> >
> > Hi.
> >
> > Please have a look in the directory where the .s19 file was
>generated. Have
> > a look in the .map file (text file). You should find all info there.
> > Also you might have to load a "physical" srecord file. In the same
>folder,
> > there should be a .phy file generated (CodeWarrior for HC12 v2.0
>and newer
> > releases).
> >
> > Regards,
> > Gilles
> >
> >
> > At 01:13 AM 11/17/2003, you wrote:
> > >More Noob question -
> > >
> > >I have an Axiom Board with the HCS12 - DP256
> > >
> > >I wrote a VERY simple C program in codewarrior and tested it...
> > >
> > >I want to download it to the flash of the HCS12 using the AxIDE but
> > >when i try to upload the S - record i get a ROM error, which makes
> > >sense becuase I have no idea where the program is being written
>to..
> > >no where did i see a place to set where the program would start...
> > >i.e. 4000 or something..
> > >
> > >Thanks for any help..
> > >
> > >
> > >
> > >--------------------
> > >
> > >
> > >
> > >">http://docs.yahoo.com/info/terms/ >
>-------------------- >
>">http://docs.yahoo.com/info/terms/