On Wed, 15 Oct 2014 12:25:19 +0000 (UTC)
Electropepper PIC <electropep...@yahoo.com> wrote:

> ricardo@builder:~/projects/rf_tag_warning$ sdcc -v                            
>                                                           
> SDCC : 
> mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8
>  3.4.0 #8981 (Apr  5 2014) (Linux)
> published under GNU General Public License (GPL)                              
>                                                           
> ricardo@builder:~/projects/rf_tag_warning$ gpasm -v                           
>                                                           
> gpasm-0.13.7 beta 
> 

Well I see?
"gpasm-0.13.7 beta"  ?????? This terrible old, an ancient fossil. Forget
forever. Needed much newer. This there is now: gpasm-1.4.0 #1106 (Oct 12 2014)

Károly

>      On Wednesday, October 15, 2014 12:19 PM, Molnár Károly 
> <prot...@freemail.hu> wrote:
>    
> 
>  On Wed, 15 Oct 2014 11:38:32 +0000 (UTC)
> Electropepper PIC <electropep...@yahoo.com> wrote:
> 
> >  I cannot compile a simple led on :
> > rm -rf main.o main.asm main.map main.lst main.cod
> > sdcc  -mpic14 -p12f1822 --use-non-free -L 
> > /usr/local/share/sdcc/lib/src/pic14 -L /usr/share/gputils/lkr main.c
> > main.asm:9:Error [132] Unknown processor.
> > /usr/share/gputils/header/p12f1822.inc:33:Message [301] Processor-header 
> > file mismatch.  Verify selected processor.
> > /usr/share/gputils/header/p12f1822.inc:878:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:879:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:880:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:883:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:884:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:885:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:948:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:949:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:950:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:951:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:952:Error [131] Processor type is 
> > undefined.
> > /usr/share/gputils/header/p12f1822.inc:953:Error [131] Processor type is 
> > undefined.
> > main.asm:15:Error [131] Processor type is undefined.
> > main.asm:223:Error [131] Processor type is undefined.
> > main.asm:224:Error [131] Processor type is undefined.
> > main.asm:225:Error [131] Processor type is undefined.
> > main.asm:226:Error [131] Processor type is undefined.
> > main.asm:227:Error [131] Processor type is undefined.
> > main.asm:228:Error [131] Processor type is undefined.main.asm:290:Error 
> > [131] Processor type is undefined.main.asm:291:Error [131] Processor type 
> > is undefined.
> > 
> > 
> > 
> > The code is :#define __12f1822                                              
> >                                                                     
> 
> The above line is unnecessary.
> 
> > #include <pic12f1822.h>                                                     
> >                                                
> >                                                                             
> >                                                       
> > /* Setup chip configuration */                                              
> >                                                  
> > __code int __at(_CONFIG1) __CONFIG = _FOSC_INTOSC & _WDTE_OFF & _PWRTE_OFF 
> > & _MCLRE_ON & _CP_OFF & _CPD_OFF & _BOREN_OFF & _CLKOUTEN_OFF
> >  & _IESO_OFF & _FCMEN_OFF;                                                  
> >                                            
> > 
> > void main(void) {                                                           
> >                                                           
> >                                                                             
> >                                                            
> >     LATA = 0;                                                               
> >                                                           
> >     TRISA = 0xFF;                                                           
> >                                                           
> >     PORTA = 0x00;                                                           
> >                                                           
> >                                                                             
> >                                                         
> >     while(1) {                                                              
> >                                                           
> >         PORTA |= (1<<2);                                                    
> >                                                          
> >     }                                                                       
> >                                                          
> >                                                                             
> >                                                          
> > } 
> > 
> >  
> To me without error run the compilation:
> sdcc -mpic14 -p12f1822 --use-non-free -L /usr/local/share/sdcc/lib/src/pic14
> -L /usr/share/gputils/lkr main.c main.asm:261:Message[312] Page or Bank 
> selection not needed for
> this device. No code generated. message: Using default linker script
> "/usr/share/gputils/lkr/12f1822_g.lkr".
> 
> Should the results of these two commands:
> sdcc -v
> gpasm -v
> 
> Károly
> 
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
> 
>     

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to