On 2007-11-15, Chris Liechti <[email protected]> wrote:
> Grant Edwards schrieb:
>> That's what I think we need: A way to tell the compiler to
>> generate code for a "generic" MSP430,
>
> available for f1xx and f2xx devices, see below
>
> > and a linker-script template or two.
>
> we probably have too many linker scipts so someone new does not know
> which of the four per cpu type is the one to begin with ;-)
At the top of the .x file it says it's for "normal"
executables, so that's the one I picked. You don't want to run
the risk of ending up with an abnormal executable...
> i used modified *.x files successfully. e.g. the code to be run in RAM
> in from the MSP430mspgcc library is used with a custom linker script.
>
>> I couldn't find the mmcu switch value for generic parts...
>
> -mmcu1 and mcu2 one is with the other without HW multiplier
> (NOT F1xx F2xx!!)
Ah! msp1 and msp2?
That's what I was trying to find a few days ago. Since those
generic CPU types are already there, that's 80% of what I
wanted. The rest is just a bit of documentation on how to
modify a linker script. For the parts I've used all that
involves is changing the size/location of the flash and RAM
sections at the top of the file -- there are probably other
changes I haven't tripped over for some parts.
> of course there needs to be an additional type for MSP430X
> arch
Yup.
> you need then to use the #include like <msp430x12x.h> instead
> of <io.h>
That's fine.
--
Grant Edwards grante Yow! I have a TINY BOWL in
at my HEAD
visi.com