Hi Oz,

I have seen this issue before, I believe it comes about because the path to mspgcc has spaces in it. As far as I know MSPGCC does not search on the windows "path" environment variable for any files.

- Wayne


On 21/08/2012 11:04 AM, Rich Osman wrote:
I'm trying to get things up and running using mspgcc.  I've verified
that I can compile and run code using IAR and run on a Launchpad board.

Ii suspect I'm missing a path somewhere, but haven't found the
appropriate documentation that identifies it. I've looked at the GCC and
LD INFO files, and I don't see where or what I should specify.

I don't seem to be making the linker happy.

I've installed from mspgcc-20120406-p20120502.zip off SF. I'm running
Windows 7 (and I have little choice in the matter in this case.)

I'm specifying "#include <msp430g2452.h>" in the source.  When try to
compile and link, I get:

     C:\Users\Rich\Documents\_K-O\MSP\Launchpad\GCC_stuff>msp430-gcc -o
     oztest_gcc.elf oztest_gcc.c
     c:/program files
     (x86)/gcc430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe:
     cannot open linker script file memory.x: No such file or directory
     collect2: ld returned 1 exit status

so I tried;

     C:\Users\Rich\Documents\_K-O\MSP\Launchpad\GCC_stuff>msp430-gcc
     -mmcu=msp430g2452 -o oztest_gcc.elf oztest_gcc.c
     c:/program files
     (x86)/gcc430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe:
     cannot open linker script file memory.x: No such file or directory
     collect2: ld returned 1 exit status

I've verified he ".x" files are in:

C:\Program Files (x86)\GCC430\msp430\lib\ldscripts

I have "C:\Program Files (x86)\GCC430\bin" in my path.

I'll RTFM, but I don't know which FM to R.  I'd actually prefer a
pointer to the doc I should use, that way I'll learn more and faster.

Thanks in advance for any help you can provide,

Oz



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to