On Tue, 29 Apr 2003 12:02:14 -0400, you wrote: > Incidently, your best bet for partitions is to create a swap partition >that's 1 to 2 times the amount of RAM you have in your laptop, but is at >least 256MB. Make the rest of the disk a single partition, and select >'ext3' as your file system for it. This is the same as ext2, but has >journalling. ext3 is readable under ext2, if you have to take the drive >out, or boot from a floppy, or such. reiserfs works well also, but doesn't >have that luxury. > > For drives less than 30 or 40GB, I really don't see the point in >splitting them into multiple paritions. I always make a separate /home partition. It makes the transition to a new distribution/clean upgrade alot easier. I agree with everything else though :> BTW, thanks for posting the msp430 gcc setup script. I'll give it a try soon. I've got an Olimex board I want to start playing with under Linux. Brian (http://www.brianlane.com) ----------------- Brian C. Lane (W7BCL) Programmer www.shinemicro.com RF, DSP & Microcontroller Design
IAR V2.10
Started by ●April 28, 2003
Reply by ●April 29, 20032003-04-29
Reply by ●May 1, 20032003-05-01
John, brian, Richard, Thanks to all of you, i've got it running now, (RedHat 8.0) I've run the script and all are installed and tested. I still need to install the phy ting but I'll do that tomorrow. My problem was that I was afraid of losing my windows data. But both systems run fine. Now. B.t.w is there a possibility that I can get access to my winXp partition (and then copy projects) while running linux? I've still got some projects for GNU that I'd like to try now?? thanks, Martijn -----Oorspronkelijk bericht----- Van: brian@bria... [mailto:brian@bria...] Verzonden: dinsdag 29 april 2003 18:12 Aan: msp430@msp4... Onderwerp: Re: [msp430] Transitioning from IAR V2.10 to GCC On Tue, 29 Apr 2003 12:02:14 -0400, you wrote: > Incidently, your best bet for partitions is to create a swap partition >that's 1 to 2 times the amount of RAM you have in your laptop, but is at >least 256MB. Make the rest of the disk a single partition, and select >'ext3' as your file system for it. This is the same as ext2, but has >journalling. ext3 is readable under ext2, if you have to take the drive >out, or boot from a floppy, or such. reiserfs works well also, but doesn't >have that luxury. > > For drives less than 30 or 40GB, I really don't see the point in >splitting them into multiple paritions. I always make a separate /home partition. It makes the transition to a new distribution/clean upgrade alot easier. I agree with everything else though :> BTW, thanks for posting the msp430 gcc setup script. I'll give it a try soon. I've got an Olimex board I want to start playing with under Linux. Brian (http://www.brianlane.com) ----------------- Brian C. Lane (W7BCL) Programmer www.shinemicro.com RF, DSP & Microcontroller Design Yahoo! Groups Sponsor <http://rd.yahoo.com/M#2617.3212172.4524785.2595810/D=egroupweb/S05 005378:HM/A55962/R=0/*http:/shop.store.yahoo.com/cgi-bin/clink?1800fl owers2+shopping:dmad/M#2617.3212172.4524785.2595810/D=egroupweb/S05 005378:HM/A55962/R=1/1051632782+http://ww" target="_blank" rel="nofollow">http://us.rmi.yahoo.com/rmi/http://ww w.1800flowers.com/rmi-framed-url/http://www.1800flowers.com/cgi-bin/flow ers/product.pl/MD01e84aF3GROUPSHMYH/1202> <http://us.adserver.yahoo.com/l?M#2617.3212172.4524785.2595810/D=egrou pmail/S=:HM/A55962/rand7319720> . ">http://docs.yahoo.com/info/terms/> .
Reply by ●September 15, 20032003-09-15
Dear John, Sorry to bother you again with my gcc questions, but could you help me out again? I've done as you mentioned and have been testing some code on a duff pc running linux red hat 8.0. but I now would like to do the same while using Gygwin. Do you have any tips here? Could I still run/use youre script and compile my files like I would under RH?? thanks, Martijn -----Oorspronkelijk bericht----- Van: J.C.Wren [mailto:jcwren@jcwr...] Verzonden: maandag 28 april 2003 21:35 Aan: msp430@msp4... Onderwerp: [msp430] Transitioning from IAR V2.10 to GCC Martijn, Create a directory on your Linux box, something like /home/msp430. Save this script to a file, and then run it with ``sh buildmsp`` (or whatever you named it). This will get all the current sources from GNU and Sourceforge, and build the toolchain and MSP430 libraries. If you browse Sourceforges CVS tree, you'll see some examples in the examples directory. They should be sufficient to get you started. Remember that when you use the tools, you need to modify your path to include ``/usr/local/msp430/bin`` (if you're using the ``bash`` shell, you can type ``export PATH=/usr/local/msp430/bin:$PATH``. To prove that you compile something, you can just create a program that doesn't do anything, such as the following: #include <msp430x14x.h> #include <string.h> int main (void) { const char *s = "This is a string"; char buffer [32]; while (1) strcpy (buffer, s); } Compile this with: msp430-gcc -W -Wall -mmcu=msp430x147 -O2 -g -c testfile.c -o testfile.o msp430-gcc -W -Wall -mmcu=msp430x147 -O2 -g -o testfile testfile.o msp430-objcopy -O ihex testfile testfile.hex msp430-objdump -dSt testfile > testfile.lst You can then use ``more`` or ``vi`` to browse ``testfile.lst`` and see some produced code. You can then create some code tailored to your hardware to blink a LED or something to get started. --John ---------------------------- Cut Here --- #!/bin/sh -e # # Written by J.C. Wren, jcwren@jcwr...,http://tinymicros.com # No rights reserved, use as you see fit. I am not responsible for # any damage incurred for any reason as a direct or indirect result # of this script. However, if you make millions as a result, you # could always PayPal me a few bucks :) 2003/04/28 JCW # # # This is the directory where the tools will wind up # export PREFIXROOT=/usr/local/msp430 export PATH=$PREFIXROOT/bin:$PATH # # Gotta be root for installs # if [ ! $UID == 0 ] ; then echo "Must be root to do this (installs require it)" exit fi # # Make sure we've got wget, so we can fetch the binutils and gcc sources # command -V wget >/dev/null 2>&1 ; retval=$? ; if [ $retval -ne 0 ] ; then echo "Can't find wget! (I need this to get the GCC and binutils sources)" exit 1 fi # # Blow away the old version, if it exists. Safest thing to do, according to Dmitry # \rm -rf $PREFIXROOT # # In theory, you can do an update to make the CVS pull more efficient. Safer this way, tho # \rm -rf gcc \rm -rf binutils \rm -rf msp430-libc # # If these already exist, don't fetch again # if [ ! -s gcc-core-3.2.2.tar.bz2 ] ; then wget http://mirrors.rcn.net/pub/sourceware/gcc/releases/gcc-3.2.2/gcc-core-3. 2.2. tar.bz2 fi if [ ! -s binutils-2.11.tar.bz2 ] ; then wget ftp://sources.redhat.com/pub/binutils/releases/binutils-2.11.tar.bz2 fi # # Login to CVS, pull the patches down # echo "Hit <return> when prompted for password" cvs -d:pserver:anonymous@anon...:/cvsroot/mspgcc login cvs -z3 -d:pserver:anonymous@anon...:/cvsroot/mspgcc co gcc cvs -z3 -d:pserver:anonymous@anon...:/cvsroot/mspgcc co binutils cvs -z3 -d:pserver:anonymous@anon...:/cvsroot/mspgcc co msp430-libc # # Build the binutils and install # if [ ! -s binutils-2.11.tar.bz2 ] ; then echo "Eeek! Where did the binutils-2.11.tar.bz2 file go?!?" exit fi \rm -rf binutils-2.11 tar --bzip2 -xf binutils-2.11.tar.bz2 || exit \cp -a binutils/binutils-2.11/* binutils-2.11 cd binutils-2.11 ./configure --target=msp430 --prefix=$PREFIXROOT (make && make install) || exit cd .. # # Build the compiler and install # if [ ! -s gcc-core-3.2.2.tar.bz2 ] ; then echo "Eeek! Where did the gcc-core-3.2.2.tar.bz2 go?!?" exit fi \rm -rf gcc-3.2.2 tar --bzip2 -xf gcc-core-3.2.2.tar.bz2 || exit \cp -a gcc/gcc-3.3/gcc/* gcc-3.2.2/gcc cd gcc-3.2.2 ./configure --target=msp430 --prefix=$PREFIXROOT (make && make install) || exit cd .. # # Build the libraries and install # cd msp430-libc/src sed -e "s#^prefix[ ]*=.*#prefix=$PREFIXROOT#" Makefile >Makefile.tmp \mv Makefile.tmp Makefile (make && make install) || exit cd ../.. # # We should be OK to go # echo "" echo "" echo "It appears we completed with no errors. MSP430 version of GCC is" echo "installed in $PREFIXROOT. Create a simple test program," echo "then compile with:" echo "" echo " $PREFIXROOT/bin/msp430-gcc mytest.c -o mytest" echo " $PREFIXROOT/bin/msp430-objdump mytest" echo "" --------------------------------- Cut Here --- -----Original Message----- From: Martijn Broens [mailto:martijn@mart...] Sent: Monday, April 28, 2003 10:48 To: msp430@msp4... Subject: RE: [msp430] IAR V2.10 Hi Stephen, Thanks (John to) the problems I'm having is that for some reason I can set breakpoint practically anywhere, but in one file, and, yep you guest it, that's the file that I don't trust. Further if I let It run freely then after receiving data over one comport the whole thing resets. Pretty annoying. Futher John, I've just setup a linux system but I'm new here, I found some code sample form the SOS which look nice to try, but I don't know where to start using gnu, have you got any suggestions?? thanks, Martijn -----Oorspronkelijk bericht----- Van: Stephen Bashford [mailto:sbashford@sbas...] Verzonden: maandag 28 april 2003 16:29 Aan: msp430@msp4... Onderwerp: Re: [msp430] IAR V2.10 > > Any one else using V2.10 of IAR?? What are you're findings?? My code > used to run but now it doesn't anymore does anyone have any > suggestions??? > I've been using v2.10a for about 4 weeks now. The porting from v1.26b to v2.10a was quite a problem. I found several bugs in the io430x14x.h header file. Some serious, some not such a problem. For example the register definitions for ME2 register were wrong so the UART was never being enabled. The jmpbuf definition is wrong and can lead to variable being overwritten. However, I now have my code ported to v2.10a and it's running fine. What sort of problems are you having? Have you downloaded the latest header files from the support website? There is an update available. Failing that v2.20a is due to be released on 9th May. Stephen Yahoo! Groups Sponsor <http://rd.yahoo.com/M"9633.3212141.4526654.2595810/D=egroupweb/S05 005378:HM/A56779/R=0/*http:/shop.store.yahoo.com/cgi-bin/clink?ftd2+s hopping:dmad/M"9633.3212141.4526654.2595810/D=egroupweb/S05005378:H M/A56779/R=1/1051540124+http://www.ftd.co" target="_blank" rel="nofollow">http://us.rmi.yahoo.com/rmi/http://www.ftd.co <http://us.rmi.yahoo.com/rmi/http:/www.ftd.co> m/rmi-framed-url/http://www.ftd.com/yahoo36> <http://us.adserver.yahoo.com/l?M"9633.3212141.4526654.2595810/D=egrou pmail/S=:HM/A56779/randb1084411> . ">http://docs.yahoo.com/info/terms/> . Yahoo! Groups Sponsor . ">http://docs.yahoo.com/info/terms/> .