gnupic: Re: [gnupic] RE: GPSIM / dsPIC


Previous by date: 29 Jan 2006 15:35:51 +0000 Re: [gnupic] pic16 wrong bank selection in sdcc 2.5 ? (Solved), Rick Bronson
Next by date: 29 Jan 2006 15:35:51 +0000 Serial programmer for USB parts?, Robert Wohleb
Previous in thread: 29 Jan 2006 15:35:51 +0000 Re: [gnupic] RE: GPSIM / dsPIC, Xiaofan Chen
Next in thread:

Subject: Re: [gnupic] RE: GPSIM / dsPIC
From: Xiaofan Chen ####@####.####
Date: 29 Jan 2006 15:35:51 +0000
Message-Id: <a276da400601290735g6ca8daj4fd27a81c3a796f1@mail.gmail.com>

On 1/27/06, Xiaofan Chen ####@####.#### wrote:
>
> For other Linux users, I think it is not necessary to build the RPM or
> Debian packages, just grab the patches and follow the Debian build
> rules or the FC4 RPM spec file and run the tradional (patch, configure,
> make and make install) will be okay as well. In fact, I've tested this
> under Windows using Cygwin with Thomas Sailer's source RPM packages.
> The RPM build script failed but the traditional approach still works.
>

I also find that actually there are two possible target configurations
(pic30-elf and pic30-coff). The following are the two build scripts
extracted from John's debian build rules. To build pic30-elf format
binutils/gcc, just change "--target=pic30-coff" to "--target=pic30-elf".
I think this should be enough and I've tested the helloWorld example.
Interestingly pic30-coff-gcc creates smaller object file than pic30-elf-gcc
but both create the same size final hex file.

1) to build pic30-coff target binutils
tar zxvf mplabalc30v2_00.tgz
cd acme/
find . -type f -exec dos2unix '{}' ';'
patch -p1 < libiberty-testsuite.diff
CC=gcc-3.3 ./configure -v --prefix=/usr --target=pic30-coff
make
sudo make install

2) to build pic30-coff target gcc
tar zxvf mplabc30v2_00.tgz
cd gcc-3.3/
cd gcc-3.3/
find . -type f -exec dos2unix '{}' ';'
cd ..
patch -p1 <libiberty-testsuite.diff
patch -p1 <t-pic30.diff
patch -p1 <version.diff
patch -p1 <default-include-path.diff
patch -p1 <pic30-standard-prefix.diff
cd gcc-3.3/
CC="gcc-3.3 -DMCHP_VERSION=2.00" ./configure -v --prefix=/usr
--target=pic30-coff --enable-languages=c
make
sudo make install

Regards,
Xiaofan

Previous by date: 29 Jan 2006 15:35:51 +0000 Re: [gnupic] pic16 wrong bank selection in sdcc 2.5 ? (Solved), Rick Bronson
Next by date: 29 Jan 2006 15:35:51 +0000 Serial programmer for USB parts?, Robert Wohleb
Previous in thread: 29 Jan 2006 15:35:51 +0000 Re: [gnupic] RE: GPSIM / dsPIC, Xiaofan Chen
Next in thread:


Powered by ezmlm-browse 0.20.