SDCC för PIC på Linux
Postat: 21 januari 2009, 22:27:05
SDCC för PIC på Linux
Varför använd SDCC ?
Finns bättre,men som helt fri och ej begränsad
Är SDCC nästa ??? enda alternativet.
PÅ Opensuse 11.1 64bit
SDCC Compiler 2.8.0
SDCC Compiler User Guide SDCC 2.8.0
SDCC Compiler använder gputils-0.13.6
Är senaste stabila utgåva när detta skrives 2009-01-19
Minsta och-men är källkod från huvudkällan.
http://sdcc.sourceforge.net/
http://gputils.sourceforge.net/
Enligt sdccman 2.8.0
4.5 The PIC14 port
This port is not yet mature and still lacks many features.
However, it can work for simple code.
Därför skapar jag endast PIC16 port.
Observera PIC16 = 16 bits programkod är PIC18xxxx familjen IC.
Och PIC port = PIC14 port
.
Allmänt skapas körbara program från GNU källkod med
./configure
make
su -c 'make install'
Allt startat i källkodens start biblotek
Namnen standrd men vad de utför vararier.
Prova med ./configure -h,make -h
Skapa endast PIC16 port
Förutsägs start från /sdcc bibloteket
./configure --disable-mcs51-port --disable-gbz80-port --disable-z80-port --disable-avr-port -disable-ds390-port --disable-ds400-port --disable-pic-port --disable-xa51-port --disable-hc08-port
make
su -c 'make install'# you need the root password
Ur SDCC Compiler User Guide 4.6.8 Libraries
Building the libraries
*****************************************************************************
Observera fungera för mig utan felmedlande
Men inte helt efter SDCC Compiler User Guide 4.6.8 Libraries
Om det skapar användbar .hex kod till PIC18xx programering är nästa fråga ???
*****************************************************************************
cd device/lib/pic16
./configure
make
cd ..
make model-pic16
su -c "make install" # install the libraries, you need the root password
cd sdcc/device/include
su -c "make install" # install the headers, you need the root password
cd sdcc/device/lib/pic16
make all
su -c "make install" # install the I/O library you need the root password
Varför använd SDCC ?
Finns bättre,men som helt fri och ej begränsad
Är SDCC nästa ??? enda alternativet.
PÅ Opensuse 11.1 64bit
SDCC Compiler 2.8.0
SDCC Compiler User Guide SDCC 2.8.0
SDCC Compiler använder gputils-0.13.6
Är senaste stabila utgåva när detta skrives 2009-01-19
Minsta och-men är källkod från huvudkällan.
http://sdcc.sourceforge.net/
http://gputils.sourceforge.net/
Enligt sdccman 2.8.0
4.5 The PIC14 port
This port is not yet mature and still lacks many features.
However, it can work for simple code.
Därför skapar jag endast PIC16 port.
Observera PIC16 = 16 bits programkod är PIC18xxxx familjen IC.
Och PIC port = PIC14 port
.
Allmänt skapas körbara program från GNU källkod med
./configure
make
su -c 'make install'
Allt startat i källkodens start biblotek
Namnen standrd men vad de utför vararier.
Prova med ./configure -h,make -h
Skapa endast PIC16 port
Förutsägs start från /sdcc bibloteket
./configure --disable-mcs51-port --disable-gbz80-port --disable-z80-port --disable-avr-port -disable-ds390-port --disable-ds400-port --disable-pic-port --disable-xa51-port --disable-hc08-port
make
su -c 'make install'# you need the root password
Ur SDCC Compiler User Guide 4.6.8 Libraries
Building the libraries
*****************************************************************************
Observera fungera för mig utan felmedlande
Men inte helt efter SDCC Compiler User Guide 4.6.8 Libraries
Om det skapar användbar .hex kod till PIC18xx programering är nästa fråga ???
*****************************************************************************
cd device/lib/pic16
./configure
make
cd ..
make model-pic16
su -c "make install" # install the libraries, you need the root password
cd sdcc/device/include
su -c "make install" # install the headers, you need the root password
cd sdcc/device/lib/pic16
make all
su -c "make install" # install the I/O library you need the root password