Jump to content
jbleaux

HELP INSTALLING mspgcc-20120406-p201209311.zip

Recommended Posts

Hi, I have never used GCC before and am having trouble getting mspgcc-20120406-p201209311.zip installed on Win 7.  I have unzipped it and cannot find any 'setup or install' file.

 

I want to use this complier for the TI MSP430F5529 launchpad.

 

Also, I had tried using TI's Energia but that is almost like cheating and doesn't really let me learn as it does so many things for you, such as hiding the real commands.

 

Can anyone please help me with this?

Oh, what is the best de facto standard for the MSP430 family that really goes into detail on about everything?

 

Thank you.

 

Share this post


Link to post
Share on other sites

I notice over a dozen viewers of my request.  Is what I am asking so difficult or is it that those who have viewed just don't know how?

 

Thank you.

 

:-(

Share this post


Link to post
Share on other sites

Sometimes we wait for each other.  :smile:

 

My installation is done more than a year ago.

 

After unzip, you will find a directory tree what is your installation, there is no setup.exe or such.

 

In my case, I install (unzip) it right at c:\

 

chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502 > l
total 8
drwx------+ 1 Administrators Domain Users 0 May 11  2012 bin
drwx------+ 1 Administrators Domain Users 0 Jul  4 16:18 include
drwx------+ 1 Administrators Domain Users 0 May 11  2012 lib
drwx------+ 1 Administrators Domain Users 0 May 11  2012 libexec
drwx------+ 1 Administrators Domain Users 0 May 11  2012 msp430
drwx------+ 1 Administrators Domain Users 0 May 11  2012 share

You see in the above listing it's under /cygdrive/c instead of "c:\", this is because I am using cygwin.

 

The command line compiler and other tools are under the bin directory.

 

chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502/bin > ls
msp430-addr2line.exe  msp430-cpp.exe        msp430-gcov.exe    msp430-nm.exe       msp430-run.exe
msp430-ar.exe         msp430-elfedit.exe    msp430-gdb.exe     msp430-objcopy.exe  msp430-size.exe
msp430-as.exe         msp430-g++.exe        msp430-gprof.exe   msp430-objdump.exe  msp430-strings.exe
msp430-c++.exe        msp430-gcc-4.6.3.exe  msp430-ld.bfd.exe  msp430-ranlib.exe   msp430-strip.exe
msp430-c++filt.exe    msp430-gcc.exe        msp430-ld.exe      msp430-readelf.exe  msp430mcu-config
chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502/bin >

 

To compile a problem, you can use msp430-gcc.exe, like so.

 

gcc version 4.6.3 20120301 (mspgcc LTS 20120406 patched to 20120502) (GCC)
/cygdrive/c/mspgcc-20120406-p20120502/bin/msp430-gcc -Os -Wall -ffunction-sections -fdata-sections -fno-inline-small-functions -Wl,-Map=blink.map,--cref -Wl,--relax -Wl,--gc-sections -I/cygdrive/c/mspgcc-20120406-p20120502/bin/../msp430/include -mmcu=msp430g2452 -lm -o blink.elf blink.c
blink.c:28:6: warning: return type of 'main' is not 'int' [-Wmain]
blink.c: In function 'main':
blink.c:39:3: warning: implicit declaration of function 'floor' [-Wimplicit-function-declaration]
blink.c:39:11: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]
   text    data     bss     dec     hex filename
    166       0       2     168      a8 blink.elf
    166       0       2     168      a8 (TOTALS)
convert to TI Hex

or if you do not use cygwin, you can compile your firmware under windows "dos box" or whatever it's called (command.exe, cmd.exe, etc)

c:\cygwin\home\chrisc\ez430\play>c:\mspgcc-20120406-p20120502\bin\msp430-gcc -Os -I c:\mspgcc-20120406-p20120502\msp430\include -mmcu=msp430g2452 -o blink.elf blink.c
blink.c: In function 'main':
blink.c:39:11: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]


c:\cygwin\home\chrisc\ez430\play>

I won't explain the details of gcc options, you should be able to find documentations.

 

 

 

Share this post


Link to post
Share on other sites

 

Sometimes we wait for each other.  :smile:

 

My installation is done more than a year ago.

 

After unzip, you will find a directory tree what is your installation, there is no setup.exe or such.

 

In my case, I install (unzip) it right at c:\

 

chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502 > l
total 8
drwx------+ 1 Administrators Domain Users 0 May 11  2012 bin
drwx------+ 1 Administrators Domain Users 0 Jul  4 16:18 include
drwx------+ 1 Administrators Domain Users 0 May 11  2012 lib
drwx------+ 1 Administrators Domain Users 0 May 11  2012 libexec
drwx------+ 1 Administrators Domain Users 0 May 11  2012 msp430
drwx------+ 1 Administrators Domain Users 0 May 11  2012 share

You see in the above listing it's under /cygdrive/c instead of "c:\", this is because I am using cygwin.

 

The command line compiler and other tools are under the bin directory.

 

chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502/bin > ls
msp430-addr2line.exe  msp430-cpp.exe        msp430-gcov.exe    msp430-nm.exe       msp430-run.exe
msp430-ar.exe         msp430-elfedit.exe    msp430-gdb.exe     msp430-objcopy.exe  msp430-size.exe
msp430-as.exe         msp430-g++.exe        msp430-gprof.exe   msp430-objdump.exe  msp430-strings.exe
msp430-c++.exe        msp430-gcc-4.6.3.exe  msp430-ld.bfd.exe  msp430-ranlib.exe   msp430-strip.exe
msp430-c++filt.exe    msp430-gcc.exe        msp430-ld.exe      msp430-readelf.exe  msp430mcu-config
chrisc@XXX:/cygdrive/c/mspgcc-20120406-p20120502/bin >

 

To compile a problem, you can use msp430-gcc.exe, like so.

 

gcc version 4.6.3 20120301 (mspgcc LTS 20120406 patched to 20120502) (GCC)
/cygdrive/c/mspgcc-20120406-p20120502/bin/msp430-gcc -Os -Wall -ffunction-sections -fdata-sections -fno-inline-small-functions -Wl,-Map=blink.map,--cref -Wl,--relax -Wl,--gc-sections -I/cygdrive/c/mspgcc-20120406-p20120502/bin/../msp430/include -mmcu=msp430g2452 -lm -o blink.elf blink.c
blink.c:28:6: warning: return type of 'main' is not 'int' [-Wmain]
blink.c: In function 'main':
blink.c:39:3: warning: implicit declaration of function 'floor' [-Wimplicit-function-declaration]
blink.c:39:11: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]
   text    data     bss     dec     hex filename
    166       0       2     168      a8 blink.elf
    166       0       2     168      a8 (TOTALS)
convert to TI Hex

or if you do not use cygwin, you can compile your firmware under windows "dos box" or whatever it's called (command.exe, cmd.exe, etc)

c:\cygwin\home\chrisc\ez430\play>c:\mspgcc-20120406-p20120502\bin\msp430-gcc -Os -I c:\mspgcc-20120406-p20120502\msp430\include -mmcu=msp430g2452 -o blink.elf blink.c
blink.c: In function 'main':
blink.c:39:11: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]


c:\cygwin\home\chrisc\ez430\play>

I won't explain the details of gcc options, you should be able to find documentations.

 

 

 

Hi, Chris.

 

Thank you very much for the reply.  I have to laugh at myself as AFTER I sent the message about 'no one knowing',  I realized that I had just posted the origial request message.  Sorry.

 

 Doggone, it looks like using gccmsp is going to be complicated.  I just wanted a good compiler in the public domaing to easily work with W7.  Am I going to have to learn Linux or some interim interface to do that?

 

Also, in your opinion, what is the best book to get to learn down to the nitty-gritty level of the MSP family.  I am ASSuming that if I know about the MSP4302553, that will be sufficient to easily work with the MSP430F5529, is that correct.

 

Again, thank you for the help.

 

Joe

Share this post


Link to post
Share on other sites

Hi Joe,

 

It must be my bad explanation that made mspgcc looks complicated. In fact I consider it the most simple way (or most direct?) to work w/ my projects.

 

You don't need to have cygwin to use mspgcc. But mspgcc is command line based and you will need to be comfortable working on character based command line environment, w/ a few batch files, scripts to automate the compiling and linking, and mspdebug to download the firmware, that's all you need. I believe windows powershell is also good for scripting, otherwise command.exe cmd.exe would do.

 

You can try exploring energia if you find command-line gcc complicated. I have little knowledge on it but it hides the complexity in building projects. It's gcc based and has a graphic interface and is an IDE. It has very good support from the community.

 

I think the choice of tools / tool chains is different depending on your projects. Command line gcc works for me as my projects are hobby / toy grade usually consist of just one c file (plus a few headers). I don't even usually play w/ larger chips like the F5529. I would imagine if you are into bigger projects an IDE would be more appropriate.

 

I can't really recommend a good book on msp430 as I haven't read any. I am sure if you dig around this forum there are a few good recommendations and reviews on some of them. I learn mostly from on-line tutorials. The following blog is, in my opinion, very well paced for learning the msp430. There are many tutorials and you can jump around on various topics.

 

http://mspsci.blogspot.ca/

Share this post


Link to post
Share on other sites

Hi, Chris.

 

Eons ago, I used only DOS.  Now, I prefer ease and comfort but those two cost money, usually.  At first glance, your reply was not formatted and it scared me.  Hah.  Still does however, as I would prefer and i.d.e. - see above.  Anyway, I just dloaded CCS ver. 6.0 beta and it has no limits except for 16k code.  I will see how that does.

 

Again, thanks.

 

Joe

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...