My recommendation is to use "#include <msp430.h>" which is MCU-independent
(it will reference a preprocessor definition that results from using -mmcu,
and will include the appropriate header). Others disagree and say you
should include the header specific to the code you're writing (assuming the
code you're writing is specific to a particular MCU).
Either way, using -mmcu isn't an option. The compiler and linker need
information about the target MCU that can't be inferred from an include
file.
Peter
On Wed, Nov 28, 2012 at 2:41 PM, Yama Ploskonka <yamap...@gmail.com> wrote:
> :-) got there on my own :-)
>
> just joking. Even if I have to do all the hard work :-)^lots, I do mean it
> that I appreciate y'all help.
> In looking for fixes, I saw your name a lot, Peter, that you have been
> helping many.
>
> Thank you, really. and the rest of this clan.
>
> I know my skills are very low, yet you guys do give up so much of your
> time, that it's amazing
>
> BTW, is using ·includes· for the file something deprecated and -mmcu the
> Right Way?
>
> thanks again!
>
> Yama
>
>
> On 11/28/2012 02:02 PM, Peter Bigot wrote:
>
>> The mcu identifier is now the standard name of the MCU; the genericized
>> ones are no longer supported.
>>
>> E.g., if you are building for a Launchpad with an MSP430G2553 on it, use:
>>
>> msp430-gcc -mmcu=msp430g2553 ...
>>
>> Peter
>>
>>
>> On Wed, Nov 28, 2012 at 1:57 PM, Yama Ploskonka <yamap...@gmail.com<mailto:
>> yamap...@gmail.com>> wrote:
>>
>> please help!
>>
>> when trying to compile, I get
>>
>> /usr/lib/gcc/msp430/4.6.3/../.**./../../msp430/bin/ld: cannot open
>> linker script file memory.x: No such file or directory
>> collect2: ld returned 1 exit status
>>
>> - This says to re-emerge msp430mcu....
>>
>> https://github.com/radhermit/**msp430-overlay<https://github.com/radhermit/msp430-overlay>
>> no idea how to do that :-(
>>
>> - There was some advice in 2011 by Peter to the effect of "passing
>> the -mmcu flag"
>> http://comments.gmane.org/**gmane.comp.hardware.texas-**
>> instruments.msp430.gcc.user/**10095<http://comments.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/10095>
>> I tried msp430.gcc -mmcu=msp430x16x myfile.c
>> no luck.
>> msp430x16x exists indeed in /etc/msp430/include - I even tried
>> full path in the code
>> #include </etc/msp430/include/**msp430x16x.h>
>>
>> I'm stuck...
>> might be something obviously simple, I hope...
>>
>> Fedora 17, OLPC OS.
>> I reinstalled the OS, ran all the install process again (this time
>> with /yum --nogpgcheck install /in hopes that would "connect"
>> things better), and by now have (apparently) all up to date gcc,
>> binutils, libc and mcu.
>>
>>
>> ------------------------------**------------------------------**
>> ------------------
>> Keep yourself connected to Go Parallel:
>> INSIGHTS What's next for parallel hardware, programming and
>> related areas?
>> Interviews and blogs by thought leaders keep you ahead of the curve.
>> http://goparallel.sourceforge.**net<http://goparallel.sourceforge.net>
>> ______________________________**_________________
>> Mspgcc-users mailing list
>> Mspgcc-users@lists.**sourceforge.net<Mspgcc-users@lists.sourceforge.net>
>>
>> <mailto:Mspgcc-users@lists.**sourceforge.net<Mspgcc-users@lists.sourceforge.net>
>> >
>>
>> https://lists.sourceforge.net/**lists/listinfo/mspgcc-users<https://lists.sourceforge.net/lists/listinfo/mspgcc-users>
>>
>>
>>
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> INSIGHTS What's next for parallel hardware, programming and related areas?
> Interviews and blogs by thought leaders keep you ahead of the curve.
> http://goparallel.sourceforge.net
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users