1/1

|
openmsp430
by jt_eaton on Aug 3, 2010 |
jt_eaton
Posts: 88 Joined: Aug 18, 2008 Last seen: Feb 9, 2012 |
||
|
I am trying to run the sims on a ubuntu system and I get:
johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ ./run Cleanup... ======================================================= | Start simulation: mpy_basic ======================================================= ../bin/msp430sim: 103: Bad substitution johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ I can hack around this but it then wants to compile stuff. Does the msp430 toolchain run on linux or are they windows only? John Eaton |
|||
|
RE: openmsp430
by olivier.girard on Aug 3, 2010 |
olivier.girard
Posts: 8 Joined: Jan 9, 2009 Last seen: Feb 9, 2012 |
||
|
Hi John,
MSPGCC can be installed on Linux. I did built it from source with the help of the following wiki: http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Linux_installation Can you tell me more about the "bad substitution" problem ? It works properly on my machine but I would be interested to know what caused the problem on your side. Regards, Olivier PS: don't forget to make sure that the compiler executables are in your path |
|||
|
RE: openmsp430
by jt_eaton on Aug 3, 2010 |
jt_eaton
Posts: 88 Joined: Aug 18, 2008 Last seen: Feb 9, 2012 |
||
|
Can you tell me more about the "bad substitution" problem ? It works properly on my machine but I would be interested to know what caused the problem on your side.
------------------------------- Oliver, It is a shell issue. It doesn't work with /bin/sh but does with bash. I am using ubuntu 10.4. What is that line supposed to accomplish? -------------------------- johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ sh $ pmemsize=`grep PMEM_SIZE_ pmem.inc | grep -v ifdef | grep -v "//" | cut -d'_' -f3` $ echo $pmemsize 2 $ pmemsize=${pmemsize/p/.} sh: Bad substitution $ bash johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ pmemsize=`grep PMEM_SIZE_ pmem.inc | grep -v ifdef | grep -v "//" | cut -d'_' -f3` johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ echo $pmemsize 2 johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ pmemsize=${pmemsize/p/.} johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ echo $pmemsize 2 johne@hallway2:~/ocsvn/openmsp430/core/sim/rtl_sim/run$ John Eaton |
|||
|
RE: openmsp430
by olivier.girard on Aug 3, 2010 |
olivier.girard
Posts: 8 Joined: Jan 9, 2009 Last seen: Feb 9, 2012 |
||
|
Hi John,
This is a substitution command which will replace the character "p" with "." This operation is required when a memory size of 2.5kB is selected through the verilog define: DMEM_SIZE_2p5_KB Until today, I always thought that sh and bash were the same thing... however, a bit of googling taught me that "/bin/sh" is typically linked to the default shell of your system. On my openSuse system, it is linked to "/bin/bash" and on Ubuntu/Debian it seems to be "/bin/dash". In any case, thanks a lot for your good feedback :-) I'll update all the bash scripts headers with "#!/bin/bash" instead of "#!/bin/sh" Regards, Olivier |
|||
|
RE: openmsp430
by jt_eaton on Aug 5, 2010 |
jt_eaton
Posts: 88 Joined: Aug 18, 2008 Last seen: Feb 9, 2012 |
||
|
I did built it from source with the help of the following wiki:
http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Linux_installation ------------------ That was to old for my ubuntu 10.4 This worked: http://mylightswitch.com/2010/06/21 John Eaton |
|||
1/1

