EmbeddedRelated.com
Forums

Code Composer C++

Started by Brandon Richins March 24, 2005
Hi,

I am trying to compile a project using Code Composer.  I would like to use
C++.  When I try to compile any project for the MSP430F169 that has an
interrupt service routine, it fails in C++ but works fine for C.  Even the
TI and Softbaugh demo files fail to compile.  All I have to do is rename the
file to main.cpp or main.c to get the compiler to throw a bug saying "badly
formed pragma".  It's always indicating the interrupt service routine.
 Any
ideas or direction would be great.

Thanks,

Brandon






Beginning Microcontrollers with the MSP430

"Brandon Richins" <brichins@bric...> writes:

> I am trying to compile a project using Code
Composer.  I would like to use
> C++.  When I try to compile any project for the MSP430F169 that has an
> interrupt service routine, it fails in C++ but works fine for C.  Even
the
> TI and Softbaugh demo files fail to compile.  All I have to do is rename
the
> file to main.cpp or main.c to get the compiler to throw a bug saying
"badly
> formed pragma".  It's always indicating the interrupt service
routine.  Any
> ideas or direction would be great.

One guess would be to include the function in an 'extern
"C"' block.

If that fails you can always use our tools, they have supported C++
(in the form of Embedded C++ with extensions) for many years now.

    -- Anders Lindgren, IAR Systems
-- 
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

A little off topic, but has anyone who's played with the MSP430 Code 
Composer also used the DSP version for the C2000 family? I find the 
C2000 CC IDE, at best, clunky (a polite way of putting it!)

Just wondered whether the MSP430 one was as poor...

(Both of which are probably a zillion times better than Codewarrior!)

I don't think silicon manufacturers should be allowed by law to produce 
IDEs! ;-)

I couldn't get along with CC at all. I hated it to the point where my 
C32, LF240x and C5400 dev kits sit idly by, I was also really ticked 
that before shipping my CC it was replaced by a much revamped version, 
yet, having paid AUS$6000 for the tools I was expected to pay to upgrade 
it. I used it for one project. A collision avoidance system, then it sat 
in my cupboard. Same goes for Code warrior. I've shied away from the 
56F803 simply because of the crappy tools. On the other hand when 
fairchild first brought out their 8 pin micros I bought the tools for 
them. several instrcutions didn't assemble as described in the book, I 
contacted fairchild and never got a response, so that got shitcanned 
too. Visually It was the most pathetic IDE yet, it looked like a 10 year 
old boy had created it.

I don't think silicon manufacturers should be allowed to produce code of 
any kind. It isn't just compilers and assemblers. I have heaps of 
evaluation kits laying around, some almost free, some very expensive. 
Most have some kind of demo software with them. In all but a few cases 
this software is absolutely pathetic, probably written by some uni 
student on work experience

Al

Robert Wood wrote:

>A little off topic, but has anyone who's
played with the MSP430 Code 
>Composer also used the DSP version for the C2000 family? I find the 
>C2000 CC IDE, at best, clunky (a polite way of putting it!)
>
>Just wondered whether the MSP430 one was as poor...
>
>(Both of which are probably a zillion times better than Codewarrior!)
>
>I don't think silicon manufacturers should be allowed by law to produce

>IDEs! ;-)
>
>
>.
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


Actually the thing I most hated about CC was the fact that for $6000 
they couldn't even give me hard copy manuals. I hate *.pdfs with a 
vengeance I have a lot of trouble reading documents from the screen, it 
either sends me to sleep or gives me chronic migraine. the odd page here 
and there to confirm a register function is nothing, its when you are 
trying to learn a new family that really gets me. printing them out 
isn't really an option, unless you can bind them. I don't have a
binder, 
and, anyway My recent collection of ARM documentation ran to thousands 
of pages, 1600 in one document alone. printing the manuals cost me more 
than the eval kit did. Iloved my books, and still do, things you could 
spread over your desk, scribble notes in, and read in bed, or on the 
throne. PDF's suck.

Al

Robert Wood wrote:

>A little off topic, but has anyone who's
played with the MSP430 Code 
>Composer also used the DSP version for the C2000 family? I find the 
>C2000 CC IDE, at best, clunky (a polite way of putting it!)
>
>Just wondered whether the MSP430 one was as poor...
>
>(Both of which are probably a zillion times better than Codewarrior!)
>
>I don't think silicon manufacturers should be allowed by law to produce

>IDEs! ;-)
>
>
>.
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


i have learned to tie them like real books
i think if IT industries go low i can make a living from restoring books :)
 
avram

Onestone <onestone@ones...> wrote:
Actually the thing I most hated about CC was the fact that for $6000 
they couldn't even give me hard copy manuals. I hate *.pdfs with a 
vengeance I have a lot of trouble reading documents from the screen, it 
either sends me to sleep or gives me chronic migraine. the odd page here 
and there to confirm a register function is nothing, its when you are 
trying to learn a new family that really gets me. printing them out 
isn't really an option, unless you can bind them. I don't have a
binder, 
and, anyway My recent collection of ARM documentation ran to thousands 
of pages, 1600 in one document alone. printing the manuals cost me more 
than the eval kit did. Iloved my books, and still do, things you could 
spread over your desk, scribble notes in, and read in bed, or on the 
throne. PDF's suck.

Al

Robert Wood wrote:

>A little off topic, but has anyone who's
played with the MSP430 Code 
>Composer also used the DSP version for the C2000 family? I find the 
>C2000 CC IDE, at best, clunky (a polite way of putting it!)
>
>Just wondered whether the MSP430 one was as poor...
>
>(Both of which are probably a zillion times better than Codewarrior!)
>
>I don't think silicon manufacturers should be allowed by law to produce

>IDEs! ;-)
>
>
>.
>
> 
>. 


		
---------------------------------
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 




Dear Aunt Angie,

> (Both of which are probably a zillion times better
than 
>Codewarrior!)

While Codewarrior has been brought up, perhaps I could vent out some 
steam too ;-) Arent the Metrowerks folks predominantly IDE folks? 
most of their cross compilers are result of mergers and aqusition 
(eg: HIWAVE) and yet they cant get the IDE usability factor right? 
When one feedbacks to them its just too easy for them to escape by 
saying they used to target Mac OS. 

Thank god they are not in the MSP arena, IAR seems decent enuf for 
most simple jobs, but there are limitations with the Kickstart which 
gets one to considers a full blown tool. I have been evaluating both 
Paul's and Richards's IDE+tools, at anyday these tools are awsome 
value for money. Perhps being smaller company gives them the reason 
to listen to actual users and implement features required rather than 
big shot tool vendor  trying to please big shot client's upper 
management.

Frustrated User,
Jay
 










--- In msp430@msp4..., Robert Wood <robert.wood@a...> wrote:
> A little off topic, but has anyone who's
played with the MSP430 
Code 
> Composer also used the DSP version for the C2000
family? I find the 
> C2000 CC IDE, at best, clunky (a polite way of putting it!)
> 
> Just wondered whether the MSP430 one was as poor...
> 
> (Both of which are probably a zillion times better than 
Codewarrior!)
> 
> I don't think silicon manufacturers should be allowed by law to 
produce 
> IDEs! ;-)




Hi Robert, 

> A little off topic, but has anyone who's
played with the 
> MSP430 Code Composer also used the DSP version for the C2000 
> family? I find the C2000 CC IDE, at best, clunky (a polite 
> way of putting it!)

Download it (only if you have broadband, IIRC it's about 250MB) and try
it out yourself.

> Just wondered whether the MSP430 one was as
poor...

Ahh, it's different.  I reckon it's terrible, I couldn't get it
to do
anything much.  I think I know how to  potter with IDEs and make them
work, but the CCE is stretching my patience.  Besides, it's a beta...

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, AVR and (soon) MAXQ processors

Hi, 

> > (Both of which are probably a zillion times
better than
> >Codewarrior!)
> 
> While Codewarrior has been brought up, perhaps I could vent 
> out some steam too ;-) Arent the Metrowerks folks 
> predominantly IDE folks? 

Yes and no.  They've won awards for their IDE--it's their
documentation,
"Award-winning Codewarrior IDE"...  Originally they produced Mac
compilers for 68K and PPC (they got the PPC one from a Russian IIRC).
Does anybody remember Metrowerks Pascal and Modula-2 or the fact they
produced Modula-2 compilers for MIPS?  Or am I the only sad git and
remember thee things?

> most of their cross compilers are result of
mergers and aqusition
> (eg: HIWAVE) and yet they cant get the IDE usability factor right? 

They were purchased by Motorola (because somebody needed to provide
compilers for its processors) but they didn't have compilers for the
8-bit and 16-bit MPUs like the CPU08, 11, 12, 16, and so on.  So (as you
say) they went and purchased Hiware to cater for that market, did a
quick s/Hiware/Metrowerks/g on the documentation and program sources,
and shoved that out.  The distinction is still there.  Note that only
Metrowerks produce 56Fxxx tools--and why would that be?

> When one feedbacks to them its just too easy for
them to 
> escape by saying they used to target Mac OS. 

Yeah, and even there it's not the force it once was.  Xcode sees to that
as it ships with every copy of Mac OS.

--
Paul Curtis, Rowley Associates Ltd  http://www.rowley.co.uk
CrossWorks for MSP430, ARM, AVR and (soon) MAXQ processors

Hi Al

you wrote :

" ...My recent collection of ARM documentation ran to thousands
of pages, 1600 in one document alone. printing the manuals cost me more 
than the eval kit did. I loved my books, and still do, things you could
spread over your desk, scribble notes in, and read in bed, or on the 
throne. PDF's suck ..."


I found for me a good solution : I have a Palm Tungsten T3  with a 512
MB SD card and I have all the data sheets  in the repligo format(like
pdf) on my palm. So on the throne, in bed or in the train, I have thousands
of pages always with me. For me it is a good alternative for printing out
thousands of pages. On the palm I can bookmark important sentences and
also I can write my own comments.
If you need more information give me a message.

Eastern is near and so I wish you and all the members of this list a
nice holiday time.
It is really a fantastic list and all the informations and comments
are very interesting, not only the technical informations !!!
I was a long time ill and out of development with the MSP430, but I
will start now again. But I was always a listener of this list and so
always up to date !!! Thanks to all !!!!

Very best regards to everybody

from

Siegmar