Wayne Uroda wrote:
I don't mind if somebody wants to try out this procedure and put it on the
wiki, that would be great.
You can do it yourself now.
Any idea what the 'pwd -W' does?
No. Google shows the only -L and -P possible pwd options.
I see why the MPY sfrs are broken, thanks. I have added them to my linker
script, like
PROVIDE(__MPY=0x0130); // I am guessing the address here because I am at home
but you get the point.
Would this not be simpler than doing all that assembler magic?
There is already a link script for each type of CPU so they can go in there for
5 family as well.
No it wouldn't. Because in case of linker script:
1) We have "Magical numbers" in two places (header file and linker file). It's
very simple to make them inconsistent.
2) Predefined symbols like __MSP430X__ and __MSP430_HAS_HWMUL__ are not
available at ld scripts generation stage, so we should specify every sfr in
every script or script template manualy.
In case of "assembler magic" everything automatically derived from header file.
Actually problem arises with -nostartfiles option only. We can provide template
for such file in one of the examples.
--
Regards,
Sergey A. Borshch mailto: [email protected]
SB ELDI ltd. Riga, Latvia