EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Codewarrior size limit

Started by Darren January 29, 2004

Hi All,

Is there a way to know how large the C code file
size is, that the licence limit works from ? Darren Moore



Hello Darren,
The limitation is documented in the license file.
E.g. if you have
FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C code, 1024 bytes of
C++ code, HC12 Linker" ....

Then you see that the limit is 12K of C code and 1024 bytes of C++ code.

Additionally, you get this kind of information in the about box (e.g.
compiler or linker) too.

Regards,
Erich

> -----Original Message-----
> From: Darren [mailto:]
> Sent: Donnerstag, 29. Januar 2004 09:13
> To:
> Subject: [68HC12] Codewarrior size limit >
> Hi All,
>
> Is there a way to know how large the C code file
> size is, that the licence limit works from ? > Darren Moore > --------------------To
> learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu o learn more about Motorola Microcontrollers,
please visit http://www.motorola.com/mcu ------------------------ 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
---------------------------------~-




Hi Erich,

How can you tell what the current C code size is ?

Darren > -----Original Message-----
> From: Erich Styger [mailto:]
>
> Hello Darren,
> The limitation is documented in the license file.
> E.g. if you have
> FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C code,
> 1024 bytes of
> C++ code, HC12 Linker" ....
>
> Then you see that the limit is 12K of C code and 1024 bytes
> of C++ code.
>
> Additionally, you get this kind of information in the about box (e.g.
> compiler or linker) too.
>
> Regards,
> Erich
>





Darren,
The compiler stops as soon the limit is reached (on a function base). You
may split up your source file into two parts (e.g. with #if 0 ... #else ...
#endif).

But the best thing would be if you ask for an full evaluation license.
I agree that the current way is not an ideal situation, so let me check what
can be done/changed.
So thanks for the feedback.

If you just want to check if the source compiles, you may use the compiler
option -Cx as well.

Erich

> -----Original Message-----
> From: Darren [mailto:]
> Sent: Donnerstag, 29. Januar 2004 10:38
> To:
> Subject: RE: [68HC12] Codewarrior size limit >
> Hi Erich,
>
> How can you tell what the current C code size is ?
>
> Darren > > -----Original Message-----
> > From: Erich Styger [mailto:]
> >
> > Hello Darren,
> > The limitation is documented in the license file.
> > E.g. if you have
> > FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C code, 1024
> > bytes of
> > C++ code, HC12 Linker" ....
> >
> > Then you see that the limit is 12K of C code and 1024 bytes of C++
> > code.
> >
> > Additionally, you get this kind of information in the about
> box (e.g.
> > compiler or linker) too.
> >
> > Regards,
> > Erich
> > --------------------To
> learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu o learn more about Motorola Microcontrollers,
please visit http://www.motorola.com/mcu




I am still having problems with the boot loader code. It emulates fine.
We made some changes
1) we don't use the PLL we run from the oscillator
2) we use XIRQ pin to decide whether or not to enter the boot loader

We don't enable the XIRQ interrupt. However code only functions when
running from a BDM cable. Disconnect it and it fails to run the boot
loader, however it will run the application.
Anybody have any thoughts?
Rod Niner
GSE Scales
42860 Nine Mile Road
Novi, MI 48375-4122
ph: 248.596.3350 The information contained in this electronic mail transmission is intended
by SPX Corporation for the use of the named individual or entity to which
it is directed and may contain information that is confidential or
privileged. If you have received this electronic mail transmission in
error, please delete it from your system without copying or forwarding it,
and notify the sender of the error by reply email so that the sender's
address records can be corrected.



Does the reset vector errata apply to POR reset only or to COP and clock
monitor vectors as well? I assume all other vectors will vector
correctly when running from RAM (assuming I have the vectors in RAM)

Rod Niner
GSE Scales
42860 Nine Mile Road
Novi, MI 48375-4122
ph: 248.596.3350 The information contained in this electronic mail transmission is intended
by SPX Corporation for the use of the named individual or entity to which
it is directed and may contain information that is confidential or
privileged. If you have received this electronic mail transmission in
error, please delete it from your system without copying or forwarding it,
and notify the sender of the error by reply email so that the sender's
address records can be corrected.



Erich,

How do you limit yourself to only C code? My source files are all C,
and yet, CW is using the C++ compiler?

Also, when I created the CW project, I selected 'C and Assembly' from
the HCS12 Stationary.

Regards,
Dee

--- In , "Erich Styger" <estyger@m...> wrote:
> Darren,
> The compiler stops as soon the limit is reached (on a function
base). You
> may split up your source file into two parts (e.g. with #if 0 ...
#else ...
> #endif).
>
> But the best thing would be if you ask for an full evaluation
license.
> I agree that the current way is not an ideal situation, so let me
check what
> can be done/changed.
> So thanks for the feedback.
>
> If you just want to check if the source compiles, you may use the
compiler
> option -Cx as well.
>
> Erich
>
> > -----Original Message-----
> > From: Darren [mailto:djmoore@t...]
> > Sent: Donnerstag, 29. Januar 2004 10:38
> > To:
> > Subject: RE: [68HC12] Codewarrior size limit
> >
> >
> >
> > Hi Erich,
> >
> > How can you tell what the current C code size is ?
> >
> > Darren
> >
> >
> > > -----Original Message-----
> > > From: Erich Styger [mailto:estyger@m...]
> > >
> > > Hello Darren,
> > > The limitation is documented in the license file.
> > > E.g. if you have
> > > FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C code, 1024
> > > bytes of
> > > C++ code, HC12 Linker" ....
> > >
> > > Then you see that the limit is 12K of C code and 1024 bytes of
C++
> > > code.
> > >
> > > Additionally, you get this kind of information in the about
> > box (e.g.
> > > compiler or linker) too.
> > >
> > > Regards,
> > > Erich
> > >
> >
> >
> > --------------------To
> > learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu o learn more about Motorola
Microcontrollers,
> please visit http://www.motorola.com/mcu >





Hi Dee,
The compiler is either compiling in C or in C++ mode (depending on file
extension or compiler switches). If you have HLI (high level inline)
assembly in your C/C++ source files: this counts either to C or C++. The
assembler (means: macro assembler) anyway is unlimited.
Same for the linker: it checks the module linked (in which language they are
compiled): C compiler, C++ compiler or Assembler.

The project settings while creating the project ('C and Assembly') just sets
up the framework so you can work seamlessly with C/Assembly (Macro
Assembler). E.g. if you would add 'C++' on project creation, this would care
about the slightly different startup code (e.g. global
constructor/destructor calls).

Regards,
Erich > -----Original Message-----
> From: dee_17324 [mailto:]
> Sent: Freitag, 30. Januar 2004 22:18
> To:
> Subject: [68HC12] Re: Codewarrior size limit > Erich,
>
> How do you limit yourself to only C code? My source files
> are all C, and yet, CW is using the C++ compiler?
>
> Also, when I created the CW project, I selected 'C and
> Assembly' from the HCS12 Stationary.
>
> Regards,
> Dee
>
> --- In , "Erich Styger" <estyger@m...> wrote:
> > Darren,
> > The compiler stops as soon the limit is reached (on a function
> base). You
> > may split up your source file into two parts (e.g. with #if 0 ...
> #else ...
> > #endif).
> >
> > But the best thing would be if you ask for an full evaluation
> license.
> > I agree that the current way is not an ideal situation, so let me
> check what
> > can be done/changed.
> > So thanks for the feedback.
> >
> > If you just want to check if the source compiles, you may use the
> compiler
> > option -Cx as well.
> >
> > Erich
> >
> > > -----Original Message-----
> > > From: Darren [mailto:djmoore@t...]
> > > Sent: Donnerstag, 29. Januar 2004 10:38
> > > To:
> > > Subject: RE: [68HC12] Codewarrior size limit
> > >
> > >
> > >
> > > Hi Erich,
> > >
> > > How can you tell what the current C code size is ?
> > >
> > > Darren
> > >
> > >
> > > > -----Original Message-----
> > > > From: Erich Styger [mailto:estyger@m...]
> > > >
> > > > Hello Darren,
> > > > The limitation is documented in the license file.
> > > > E.g. if you have
> > > > FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C
> code, 1024
> > > > bytes of
> > > > C++ code, HC12 Linker" ....
> > > >
> > > > Then you see that the limit is 12K of C code and 1024 bytes of
> C++
> > > > code.
> > > >
> > > > Additionally, you get this kind of information in the about
> > > box (e.g.
> > > > compiler or linker) too.
> > > >
> > > > Regards,
> > > > Erich
> > > >
> > >
> > >
> > > --------------------To
> > > learn more about Motorola Microcontrollers, please visit
> > http://www.motorola.com/mcu o learn more about Motorola
> Microcontrollers,
> > please visit http://www.motorola.com/mcu
> >
> >
> > --------------------To
> learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu
> o learn more about Motorola Microcontrollers, please visit
> http://www.motorola.com/mcu > ------------------------ 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
> --------------------------
> -------~- >
>





Hi Erich,

It seems that the license for my version of CW SE is different
from yours; it doesn't explicitly state that the C or C++
code size is.

# Without having additional license keys, the software will run in a
# limited demo mode only (code size restricted).

I think my problem is with the linker - it only allows linking
of 1024 bytes of code:

Linker Error: L4025: This limited version allows only 1024
bytes of code

So apparently the code size restriction is 1024 bytes and NOT
12k bytes! This is not a very useful limit! (my initializations
barely fit in 1024 bytes)

To test this, I made a new project using the Project
Stationary -> HCS12 T-Board and I just replicated
'playsound' 5 times -> 'playsound[12345]' and called each of them.

With the addition of playsound5, it got large enough to stop linking.

From looking at the .map file, the files seem to be ANSI-C:

*********************************************************************************************
FILE SECTION
---------------------
start12.c.o Model: BANKED, Lang: ANSI-C
main.c.o Model: BANKED, Lang: ANSI-C
rtshc12.c.o (ansib.lib) Model: BANKED, Lang: ANSI-C
isr_vectors.c.o Model: BANKED, Lang: ANSI-C
6812dp256b.c.o Model: BANKED, Lang: ANSI-C

I'm not sure what else I can try. (other than the 30-day license)
I'm a hobbyist, so 'renewing' every month seems to be quite a pain.

Regards,
Dee.

--- In , "Erich Styger" <estyger@m...> wrote:
> Hi Dee,
> The compiler is either compiling in C or in C++ mode (depending on file
> extension or compiler switches). If you have HLI (high level inline)
> assembly in your C/C++ source files: this counts either to C or C++. The
> assembler (means: macro assembler) anyway is unlimited.
> Same for the linker: it checks the module linked (in which language
they are
> compiled): C compiler, C++ compiler or Assembler.
>
> The project settings while creating the project ('C and Assembly')
just sets
> up the framework so you can work seamlessly with C/Assembly (Macro
> Assembler). E.g. if you would add 'C++' on project creation, this
would care
> about the slightly different startup code (e.g. global
> constructor/destructor calls).
>
> Regards,
> Erich > > -----Original Message-----
> > From: dee_17324 [mailto:thezedd@h...]
> > Sent: Freitag, 30. Januar 2004 22:18
> > To:
> > Subject: [68HC12] Re: Codewarrior size limit
> >
> >
> > Erich,
> >
> > How do you limit yourself to only C code? My source files
> > are all C, and yet, CW is using the C++ compiler?
> >
> > Also, when I created the CW project, I selected 'C and
> > Assembly' from the HCS12 Stationary.
> >
> > Regards,
> > Dee
> >
> > --- In , "Erich Styger" <estyger@m...> wrote:
> > > Darren,
> > > The compiler stops as soon the limit is reached (on a function
> > base). You
> > > may split up your source file into two parts (e.g. with #if 0 ...
> > #else ...
> > > #endif).
> > >
> > > But the best thing would be if you ask for an full evaluation
> > license.
> > > I agree that the current way is not an ideal situation, so let me
> > check what
> > > can be done/changed.
> > > So thanks for the feedback.
> > >
> > > If you just want to check if the source compiles, you may use the
> > compiler
> > > option -Cx as well.
> > >
> > > Erich
> > >
> > > > -----Original Message-----
> > > > From: Darren [mailto:djmoore@t...]
> > > > Sent: Donnerstag, 29. Januar 2004 10:38
> > > > To:
> > > > Subject: RE: [68HC12] Codewarrior size limit
> > > >
> > > >
> > > >
> > > > Hi Erich,
> > > >
> > > > How can you tell what the current C code size is ?
> > > >
> > > > Darren
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Erich Styger [mailto:estyger@m...]
> > > > >
> > > > > Hello Darren,
> > > > > The limitation is documented in the license file.
> > > > > E.g. if you have
> > > > > FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C
> > code, 1024
> > > > > bytes of
> > > > > C++ code, HC12 Linker" ....
> > > > >
> > > > > Then you see that the limit is 12K of C code and 1024 bytes of
> > C++
> > > > > code.
> > > > >
> > > > > Additionally, you get this kind of information in the about
> > > > box (e.g.
> > > > > compiler or linker) too.
> > > > >
> > > > > Regards,
> > > > > Erich
> > > > >
> > > >
> > > >
> > > > --------------------To
> > > > learn more about Motorola Microcontrollers, please visit
> > > http://www.motorola.com/mcu o learn more about Motorola
> > Microcontrollers,
> > > please visit http://www.motorola.com/mcu
> > >
> > >
> > >
> >
> >
> > --------------------To
> > learn more about Motorola Microcontrollers, please visit
> > http://www.motorola.com/mcu
> > o learn more about Motorola Microcontrollers, please visit
> > http://www.motorola.com/mcu
> >
> >
> > ------------------------ 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
> > --------------------------
> > -------~->
> >
> >
> >
> >





Will contact you off-list, so we sort this out. The SE limitation shall be
12K even in the linker, maybe a wrong license file is used.

Erich

> -----Original Message-----
> From: dee_17324 [mailto:]
> Sent: Samstag, 31. Januar 2004 15:36
> To:
> Subject: [68HC12] Re: Codewarrior size limit > Hi Erich,
>
> It seems that the license for my version of CW SE is different
> from yours; it doesn't explicitly state that the C or C++
> code size is.
>
> # Without having additional license keys, the software will
> run in a # limited demo mode only (code size restricted).
>
> I think my problem is with the linker - it only allows
> linking of 1024 bytes of code:
>
> Linker Error: L4025: This limited version allows only 1024
> bytes of code
>
> So apparently the code size restriction is 1024 bytes and NOT
> 12k bytes! This is not a very useful limit! (my initializations
> barely fit in 1024 bytes)
>
> To test this, I made a new project using the Project
> Stationary -> HCS12 T-Board and I just replicated
> 'playsound' 5 times -> 'playsound[12345]' and called each of them.
>
> With the addition of playsound5, it got large enough to stop linking.
>
> From looking at the .map file, the files seem to be ANSI-C:
>
> **************************************************************
> *******************************
> FILE SECTION
> --------------------------
> -------------------------------
> start12.c.o Model: BANKED,
> Lang: ANSI-C
> main.c.o Model: BANKED,
> Lang: ANSI-C
> rtshc12.c.o (ansib.lib) Model: BANKED,
> Lang: ANSI-C
> isr_vectors.c.o Model: BANKED,
> Lang: ANSI-C
> 6812dp256b.c.o Model: BANKED,
> Lang: ANSI-C
>
> I'm not sure what else I can try. (other than the 30-day
> license) I'm a hobbyist, so 'renewing' every month seems to
> be quite a pain.
>
> Regards,
> Dee.
>
> --- In , "Erich Styger" <estyger@m...> wrote:
> > Hi Dee,
> > The compiler is either compiling in C or in C++ mode (depending on
> > file extension or compiler switches). If you have HLI (high level
> > inline) assembly in your C/C++ source files: this counts
> either to C
> > or C++. The assembler (means: macro assembler) anyway is unlimited.
> > Same for the linker: it checks the module linked (in which language
> they are
> > compiled): C compiler, C++ compiler or Assembler.
> >
> > The project settings while creating the project ('C and Assembly')
> just sets
> > up the framework so you can work seamlessly with C/Assembly (Macro
> > Assembler). E.g. if you would add 'C++' on project creation, this
> would care
> > about the slightly different startup code (e.g. global
> > constructor/destructor calls).
> >
> > Regards,
> > Erich
> >
> >
> > > -----Original Message-----
> > > From: dee_17324 [mailto:thezedd@h...]
> > > Sent: Freitag, 30. Januar 2004 22:18
> > > To:
> > > Subject: [68HC12] Re: Codewarrior size limit
> > >
> > >
> > > Erich,
> > >
> > > How do you limit yourself to only C code? My source
> files are all
> > > C, and yet, CW is using the C++ compiler?
> > >
> > > Also, when I created the CW project, I selected 'C and Assembly'
> > > from the HCS12 Stationary.
> > >
> > > Regards,
> > > Dee
> > >
> > > --- In , "Erich Styger"
> <estyger@m...> wrote:
> > > > Darren,
> > > > The compiler stops as soon the limit is reached (on a function
> > > base). You
> > > > may split up your source file into two parts (e.g. with
> #if 0 ...
> > > #else ...
> > > > #endif).
> > > >
> > > > But the best thing would be if you ask for an full evaluation
> > > license.
> > > > I agree that the current way is not an ideal situation,
> so let me
> > > check what
> > > > can be done/changed.
> > > > So thanks for the feedback.
> > > >
> > > > If you just want to check if the source compiles, you
> may use the
> > > compiler
> > > > option -Cx as well.
> > > >
> > > > Erich
> > > >
> > > > > -----Original Message-----
> > > > > From: Darren [mailto:djmoore@t...]
> > > > > Sent: Donnerstag, 29. Januar 2004 10:38
> > > > > To:
> > > > > Subject: RE: [68HC12] Codewarrior size limit
> > > > >
> > > > >
> > > > >
> > > > > Hi Erich,
> > > > >
> > > > > How can you tell what the current C code size is ?
> > > > >
> > > > > Darren
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Erich Styger [mailto:estyger@m...]
> > > > > >
> > > > > > Hello Darren,
> > > > > > The limitation is documented in the license file.
> E.g. if you
> > > > > > have FEATURE HI100350 .... VENDOR_STRING="12288 bytes of C
> > > code, 1024
> > > > > > bytes of
> > > > > > C++ code, HC12 Linker" ....
> > > > > >
> > > > > > Then you see that the limit is 12K of C code and
> 1024 bytes of
> > > C++
> > > > > > code.
> > > > > >
> > > > > > Additionally, you get this kind of information in the about
> > > > > box (e.g.
> > > > > > compiler or linker) too.
> > > > > >
> > > > > > Regards,
> > > > > > Erich
> > > > > >
> > > > >
> > > > >
> > > > > --------------------To
> > > > > learn more about Motorola Microcontrollers, please visit
> > > > http://www.motorola.com/mcu o learn more about Motorola
> > > Microcontrollers,
> > > > please visit http://www.motorola.com/mcu
> > > >
> > > >
> > > >
> > >
> > >
> > > --------------------To
> > > learn more about Motorola Microcontrollers, please visit
> > > http://www.motorola.com/mcu o learn more about Motorola
> > > Microcontrollers, please visit http://www.motorola.com/mcu
> > >
> > >
> > > ------------------------ 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
> > > --------------------------
> > > -------~->
> > >
> > >
> > >
> > > --------------------To
> learn more about Motorola Microcontrollers, please visit
http://www.motorola.com/mcu o learn more about Motorola Microcontrollers,
please visit http://www.motorola.com/mcu




The 2024 Embedded Online Conference