-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to resolve msp430 problem? #2280
Comments
msp430-gcc 4.6 upgrade to 4.7, but this issue still occur. |
@iamxg if you check carefully the line highlight the error mention that the code you trying to compile it's too big for the Sky mote (overflowed by 26KB of ROM). If you strictly need the Sky mote, I sugest you take a moment and reanalyze all specification needed in your project. By the way, this is the motes memory: Note: check if the makefile is configured correctly to use the memory needed. Best regards! |
Thanks a lot.
Happy weekend,
Xian G
…-----Original Message-----
From: fabricio-godoi <notifications@github.com>
To: contiki-os/contiki <contiki@noreply.github.com>
Cc: Xian Guo <iamxguo@aol.com>; Mention <mention@noreply.github.com>
Sent: Fri, Aug 4, 2017 2:41 pm
Subject: Re: [contiki-os/contiki] How to resolve msp430 problem? (#2280)
@iamxg if you check carefully the line highlight the error mention that the code you trying to compile it's too big for the Sky mote (overflowed by 26KB of ROM).
I've seen a lot of people with this same issue. I recommend you to start with the Wismote, which has a lot more memory to run codes.
If you strictly need the Sky mote, I sugest you take a moment and reanalyze all specification needed in your project.
By the way, this is the motes memory:
Sky 48 KB ROM
Z1 up to 96 KB ROM
Wismote up to 256 KB ROM
Note: check if the makefile is configured correctly to use the memory needed.
Best regards!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
4.7.2 version works well, you can refer to past thread about this issue. |
Ok, Thank you very much! I will try it. |
It can't work. |
it's much better if you use Z1 instead of Sky. |
I'm having a similar issue. In my case I can compile a skymote as a border router using the file contiki/examples/ipv6/rpl-border-router/border-router.c (just as shown in here ). Is this a compiling issue? |
Hi everyone, Thanks a lot. I will try these methods. |
One last hint I can give you guys is to check if the Makefiles are correct. Also, check the "application".map file, there will be some section like this below, so check the actual length of the ROM to see how much is needed to run the code. Note that it's value is absolutely after compiling the code: Memory-Configuration Name-------------Origin-------------Length-------------Attributes (I replaced the space with '-' to make easier to read here) For more information see the options of the msp430-gcc: /platform/Wismote/Makefile.wismote By the way, I'm using msp430-gcc 4.7.0. Good luck! |
@fabricio-godoi program code is also stored in Rumor has it that 4.7.2 and 4.7.3 has fixed some bugs related to the extended memory support. |
I solved the problem by updating the compiler following the instructions in here.
Now it is possible to compile the rpl-border-router.c using the wismote platform with 20-bit support. Thanks, everyone. |
Hello, I followed the same steps as per mentioned here but when I compiled with any mote like sky, z1 or wisemote it gives me the following error. make: msp430-gcc-4.7.3: Command not found Please help me. |
1 similar comment
Hello, I followed the same steps as per mentioned here but when I compiled with any mote like sky, z1 or wisemote it gives me the following error. make: msp430-gcc-4.7.3: Command not found Please help me. |
Sorry, I don't know how to resolve. My problem also is not resolved until now.
Regards,
Xian G
…-----Original Message-----
From: Vishal Rathod <notifications@github.com>
To: contiki-os/contiki <contiki@noreply.github.com>
Cc: Xian Guo <iamxguo@aol.com>; Mention <mention@noreply.github.com>
Sent: Wed, Nov 8, 2017 10:00 am
Subject: Re: [contiki-os/contiki] How to resolve msp430 problem? (#2280)
Hello,
I followed the same steps as per mentioned here but when I compiled with any mote like sky, z1 or wisemote it gives me the following error.
make: msp430-gcc-4.7.3: Command not found
fatal: Not a valid object name HEAD
Please help me.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hello everyone, I reach a similar problem today, even with the CPU_HAS_MSP430X=1, I had to change the mcode-region flag from 'any' to 'far' at Makefile.msp430 line 156, Before: @atiselsts Regards |
@vishal623, you must point your |
Thanks, sir. I will try and let you know its working for me or not.
…On Tue, Nov 21, 2017 at 11:21 PM, greg-king5 ***@***.***> wrote:
@vishal623 <https://github.com/vishal623>, you must point your PATH
environment variable to the 4.7.3 version's "bin" directory (step #2).
But, don't do it in "~/.bashrc"! Do it in "~/.bash_profile".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu-0ShpZ6DsA8AKR_zuvOABXxCKPJks5s4w2kgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Computer Science and Engineering Department,
National Institute of Technology, Karnataka.
|
was this problem solved ?? And by the way @vishal623 I had the same problem, |
Yes. It is working for me. When I have checked the version of msp430, it
shows me the new version, but Contiki-3.0 doesn't accept it for me.
…On Tue, Apr 10, 2018 at 4:30 PM, Siddarth1511 ***@***.***> wrote:
was this problem solved ??
And by the way @vishal623 <https://github.com/vishal623> I had the same
problem,
am still having troubles in upgrading my msp gcc compilers did you solve
it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuuzzff80RjSbjMKsif8My509tB4gjks5tnJC6gaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Computer Science and Engineering Department,
National Institute of Technology, Karnataka.
|
what did you do to solve it @vishal623 ? |
I just switched back to Contiki-2.7 and all is well.
…On Tue, Apr 10, 2018 at 6:43 PM, Siddarth1511 ***@***.***> wrote:
what did you do to solve it @vishal623 <https://github.com/vishal623> ?
I changed path in .profile it shows me this
[image: screenshot from 2018-04-10 15 00 18]
<https://user-images.githubusercontent.com/34597029/38558814-a33679be-3cd1-11e8-97b8-8bc2768a8a7f.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuuzQxG8RkYaefsnkMZQYb9SfQtHiCks5tnK_vgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Computer Science and Engineering Department,
National Institute of Technology, Karnataka.
|
oh alright |
Yes.
…On Tue, Apr 10, 2018 at 6:49 PM, Siddarth1511 ***@***.***> wrote:
oh alright
i will try doing that
did you follow the 2 steps given in the readme file
and also did you change CC = msp430-gcc line in makefile
@vishal623 <https://github.com/vishal623>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuuzxOIe6O2UBLYxvSv5A5vfL2pd7Xks5tnLFXgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Computer Science and Engineering Department,
National Institute of Technology, Karnataka.
|
Try changing the PATH line to: PATH=/opt/compilers/mspgcc-4.7.3/bin:$PATH |
In which file .bashrc or .profile?? @greg-king5 |
|
It worked!!! |
Hello @Siddarth1511 I have followed the steps that were given by https://github.com/pksec/msp430-gcc-4.7.3.
When I checked the version of msp430 it shows me 4.7.3 but when I run the border router on sky mote it shows ms msp430-gcc-4.7.3 command not found. |
hi , how i can install a contiki on ubuntu please ?? |
Hello @vishal623 |
@vishal623 |
Thank you so much for replay @Siddarth1511 |
Even I have the same error since last 8 months.
…On Thu, Mar 21, 2019 at 3:05 AM Sara-94 ***@***.***> wrote:
Thank you so much for replay @Siddarth1511
<https://github.com/Siddarth1511>
This is the echo of the PATH
[image: echo]
<https://user-images.githubusercontent.com/30484241/54720696-754fec00-4b36-11e9-8a84-e1b5333908c2.png>
it point to 4.7.3 version
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu9tM3nYRTyvL-bda4oIOOuR_LCBhks5vYqmegaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
Thanks for your replay @vishal623 |
Hello @vishal623 |
Let me try this and let you know about the same.
…Sent from my iPhone
On 25-Mar-2019, at 7:05 PM, Sara-94 ***@***.***> wrote:
Hello @vishal623
I can force Cooja to use msp430-gcc-4.7.3 by using "sudo update-alternatives --install /usr/bin/msp430-gcc gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3 50"
also use "sudo update-alternatives --install /usr/bin/msp430-gcc gcc /usr/bin/msp430-gcc-4.6.3 40" so you can choose any version you want by using "sudo update-alternatives --config gcc"
but another error appear as this picture
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
This is what i did (it works for me): |
When I tried following command
sudo update-alternatives --install /usr/bin/msp430-gcc gcc
/opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3 50
it shows me following error in cooja:
msp430-gcc: error: unrecognized command line option ‘-mmcu=msp430f2617’
…On Tue, Mar 26, 2019 at 8:09 AM tejaeluri ***@***.***> wrote:
This is what i did (it works for me):
1- install ubuntu 14-04 (32bit)
2- download latest contiki 3.0 from sourceforge.net
2.1- extract contiki 3.0 files in "/home/"
3- Download the msp430-47 binary files from sourceforge.net
(*msp430-47 is an experimental tool chain which gives extra 20bit memory
for motes)
3.1- Extract the files in "/home/msp430-47"
3.2- In Home directory click (Ctrl+H) to open hidden files and find
".bashrc" and ".profile" files
3.3 open those files and add “export PATH=/home/user/msp430-47/bin:$PATH”
in end of the codes.
(*this Path will helps the Contiki to use the tool chain)
4- To increase Z1 motes memory
4.1 go to path "Home/contiki/platform/z1"
4.2 open file "contiki-conf.h"
4.3 increase buffer size to 240
" #define UIP_CONF_BUFFER_SIZE 240" and save it
4.4 restart pc
4.5 its done
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu5kpsiXj2-0_85ufl_Qmg4Ixyt99ks5vaYhagaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
Don't put that "export PATH ..." line in |
I already added the path in ~/.profile file.
When I typed gcc --version it shows me 4.7.3 but when I typed msp430-gcc
--version it shows me 5.5.0. See below output.
vishal@vishal-OptiPlex-9020:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This happened after executing the "sudo update-alternatives --install
/usr/bin/msp430-gcc gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3 50"
this command.
Why?
…On Wed, Mar 27, 2019 at 2:07 PM greg-king5 ***@***.***> wrote:
3.2- In Home directory, click (Ctrl+H) to open hidden files, and find
".bashrc" and ".profile" files.
3.3 Open those files, and add “export PATH=/home/user/msp430-47/bin:$PATH”
in end of the codes.
(*that Path will help the Contiki to use the tool chain.)
Don't put that "export PATH ..." line in "~/.bashrc". Put it in only
"~/.profile".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu3hMXXnjWSR1WgMwLjjFzOIWx71-ks5vay3VgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
The sudo update-alternatives --remove gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3 The Is there a line in your "~/.profile" that points to the old compiler's "bin/"? If so, then comment it. |
Now, I am able to get the 4.7.3 for both.
vishal@vishal-OptiPlex-9020:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ msp430-gcc --version
msp430-gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am able to compile my code in Z1 mote Contiki. There is no any ROM error
but I can't compile my code to sky mote.
…On Wed, Mar 27, 2019 at 10:22 PM greg-king5 ***@***.***> wrote:
***@***.***:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
***@***.***:~$ msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
That happened after executing the "sudo update-alternatives --install
/usr/bin/msp430-gcc gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3 50"
command. Why?
The gcc behavior looks as though you already have a "gcc" group in your
alternatives. That update-alternatives command added another alternative
link that has a higher priority than the one that gcc should use. You
must remove the new link:
sudo update-alternatives --remove gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3
The msp430-gcc behavior looks as though your PATH points to the old
compiler's "bin/" before it points to "/usr/bin/". The "alternatives"
method cannot work for you.
Is there a line in your "~/.profile" that points to the old compiler's
"bin/"? If so, then comment it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu3IAEfEOd3tI05OTztUF14uQlk-2ks5va6HagaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
The
|
I have removed the link. Now the output is different.
vishal@vishal-OptiPlex-9020:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
In my ~/.profile, only one path is there. Below is the line in my profile.
My ~/.profile file.
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin
My /etc/environment file
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/compilers/mspgcc-4.7.3/msp430/bin"
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
…On Fri, Mar 29, 2019 at 12:43 AM greg-king5 ***@***.***> wrote:
Now, I am able to get the 4.7.3 for both.
***@***.***:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
***@***.***:~$ msp430-gcc --version
msp430-gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
The gcc command must not run the same program that msp430-gcc runs! gcc
must run the Ubuntu system compilers. Did you do the following advice?
The update-alternatives command added another alternative link that has a
higher priority than the one that gcc should use. You must remove the new
link:
sudo update-alternatives --remove gcc /opt/compiler/mspgcc-4.7.3/bin/msp430-gcc-4.7.3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu8I9mND9B4tHmcgnVadsVssPpiw9ks5vbRRMgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
OK, those arguments are backwards. Swap them: export PATH=/opt/compilers/mspgcc-4.7.3/bin:$PATH By the way, have you tried using that "5.5.0" version of the msp430 compiler to build your mote programs?
Apparently, that |
No. It doesn't work for me.
I tried with msp430-5.5.0 it shows me the same error. The error is
"msp430-gcc: error: unrecognized command line option ‘-mmcu=msp430f1611’".
When I tried to follow your instructions. it shows me the same.
vishal@vishal-OptiPlex-9020:~$ export
PATH=$PATH:/opt/compilers/mspgcc-4.7.3/binvishal@vishal-OptiPlex-9020:~$
msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ sudo update-alternatives --config gcc
There is only one alternative in link group gcc (providing
/usr/bin/msp430-gcc): /usr/bin/gcc-5
Nothing to configure.
…On Sat, Mar 30, 2019 at 8:54 AM greg-king5 ***@***.***> wrote:
I have removed the link. Now the output is different.
***@***.***:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
***@***.***:~$ msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
In my "~/.profile", only one path is there. Below is the line in my
profile:
export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin
OK, those arguments are backwards. Swap them:
export PATH=/opt/compilers/mspgcc-4.7.3/bin:$PATH
By the way, have you tried using that "5.5.0" version of the msp430
compiler to build your mote programs?
My "/etc/environment" file:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/compilers/mspgcc-4.7.3/msp430/bin"
Apparently, that gcc command comes from the last path in that "PATH="
line. That "bin/" directory is for old, old scripts that don't know about
the "msp430-" prefix. But, Contiki does know; it does use the prefix.
Therefore, that path shouldn't be in "/etc/environment".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIAuu4ldLuq4ZoezJa48oWpqRTUqokdEks5vbtkKgaJpZM4OtQUb>
.
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
I have reinstalled Ubuntu again.
I have two versions of msp430. (4.6.3 and 4.7.3). I have followed the
tutorial and set the path but it still shows me the version 4.6.3.
Following are the output of the given command:
vishal@vishal-OptiPlex-9020:~$ msp430-gcc --version
msp430-gcc (GCC) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
vishal@vishal-OptiPlex-9020:~$ cd /opt/compilers/mspgcc-4.7.3/
vishal@vishal-OptiPlex-9020:/opt/compilers/mspgcc-4.7.3$ ls
bin include lib libexec msp430 share
vishal@vishal-OptiPlex-9020:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/compilers/mspgcc-4.7.3/msp430/bin"
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
vishal@vishal-OptiPlex-9020:~$ cat ~/.profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin
vishal@vishal-OptiPlex-9020:~$ gcc --version
gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If possible then anyone please guide me.
Regards,
Vishal
On Sat, Mar 30, 2019 at 6:08 PM Vishal Rathod <rathodvishal78@gmail.com>
wrote:
… No. It doesn't work for me.
I tried with msp430-5.5.0 it shows me the same error. The error is
"msp430-gcc: error: unrecognized command line option ‘-mmcu=msp430f1611’".
When I tried to follow your instructions. it shows me the same.
***@***.***:~$ export
***@***.***:~$
msp430-gcc --version
msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
***@***.***:~$ gcc --version
gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
***@***.***:~$ sudo update-alternatives --config gcc
There is only one alternative in link group gcc (providing
/usr/bin/msp430-gcc): /usr/bin/gcc-5
Nothing to configure.
On Sat, Mar 30, 2019 at 8:54 AM greg-king5 ***@***.***>
wrote:
> I have removed the link. Now the output is different.
>
> ***@***.***:~$ gcc --version
> gcc (GCC) 4.7.3 20130411 (mspgcc dev 20120911)
> Copyright (C) 2012 Free Software Foundation, Inc.
>
> ***@***.***:~$ msp430-gcc --version
> msp430-gcc (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
> Copyright (C) 2015 Free Software Foundation, Inc.
>
> In my "~/.profile", only one path is there. Below is the line in my
> profile:
>
> export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin
>
> OK, those arguments are backwards. Swap them:
>
> export PATH=/opt/compilers/mspgcc-4.7.3/bin:$PATH
>
> By the way, have you tried using that "5.5.0" version of the msp430
> compiler to build your mote programs?
>
> My "/etc/environment" file:
>
>
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/compilers/mspgcc-4.7.3/msp430/bin"
>
> Apparently, that gcc command comes from the last path in that "PATH="
> line. That "bin/" directory is for old, old scripts that don't know about
> the "msp430-" prefix. But, Contiki does know; it does use the prefix.
> Therefore, that path shouldn't be in "/etc/environment".
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#2280 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AIAuu4ldLuq4ZoezJa48oWpqRTUqokdEks5vbtkKgaJpZM4OtQUb>
> .
>
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: ***@***.*** and ***@***.***
--
Vishal Rathod
Research Scholar,
Department of Computer Science and Engineering,
National Institute of Technology, Karnataka.
Email ID: vishalrathod.cs15f11@nitk.edu.in and vishalrathod@ieee.org
|
That should be export PATH=/opt/compilers/mspgcc-4.7.3/bin:$PATH |
how can change RPL in multi path in contiki os |
Thanks for this solution............since my ubuntu is 32 bit, and I attempted to install MSP430-gcc-4.7.3 but doesn't work because it only works for a 64-bit environment. I recommend every one who has 32-bit ubuntu to use these steps literally |
hello everyone
4.add export PATH=$PATH:/opt/compilers/mspgcc-4.7.3/bin to /home/.profile 5.remove msp430 4.6 using this command: sudo apt-get remove gcc-msp430 6.restart virtual machine 7.now the $PATH is: but when type msp430-gcc --version I get this error: The program 'msp430-gcc' is currently not installed. You can install it by typing: |
when i try to compile it will show the following error what to do?
|
I am a beginner to cooja I have installed Contiki 3.0 and tried to run examples hello-world. c...but it is showing a compilation error...please help me
|
You have to install gcc-msp430 with the following command: sudo apt-get install gcc-msp430 |
@hknaydin..... Thank you |
The build system was changed, so pick some other embedded target that is not Cooja. Fixes contiki-os#2280.
The text was updated successfully, but these errors were encountered: