gnupic: SDCC PIC14 port: libsdcc.lib: No such file or directory


Previous by date: 9 Nov 2005 11:53:13 +0000 Re: [gnupic] Pickit 2 under Linux, Chen Xiao Fan
Next by date: 9 Nov 2005 11:53:13 +0000 Re: [gnupic] Pickit 2 under Linux, Jeff
Previous in thread:
Next in thread:

Subject: SDCC PIC14 port: libsdcc.lib: No such file or directory
From: Vaclav ####@####.####
Date: 9 Nov 2005 11:53:13 +0000
Message-Id: <610.807-17463-2031420501-1131537161@seznam.cz>

Hello,

today I got new snapshot (before I used SDCC 2.4.0). I want to compile one small project but get error:

===============
c:\V\programovani\Pic\STA3005-JTAG-enable>sdcc -V -mpic14 -pp16f627 jtagenb.c
sdcc -V -mpic14 -pp16f627 jtagenb.c
libsdcc.lib: No such file or directory
+ C:\PROGRA~1\SDCC\bin\sdcpp.exe -nostdinc -Wall -std=c99 -DSDCC=1 -DSDCC_MODEL_SMALL -DSDCC_pic14 -D__pic14 -I"C:\Program Files\SDCC\bin\..\include\pic14" -I"C:\Program Files\SDCC\bin\..\include"  "jtagenb.c" 
+ C:\PROGRA~1\gputils\bin\gpasm.exe -c "jtagenb.asm"
+ C:\PROGRA~1\gputils\bin\gplink.exe -I"C:\Program Files\SDCC\bin\..\lib"  -I"C:\Program Files\SDCC\bin\..\lib\pic"   -o jtagenb jtagenb.o   libsdcc.lib 
Processor: p16f627
===============

If I try to run gplink without libsdcc.lib, I get following:

===============
c:\V\programovani\Pic\STA3005-JTAG-enable>gplink.exe -I"C:\Program Files\SDCC\bin\..\lib"  -I"C:\Program Files\SDCC\bin\..\lib\pic"   -o jtagenb.hex jtagenb.o 
gplink.exe -I"C:\Program Files\SDCC\bin\..\lib"  -I"C:\Program Files\SDCC\bin\..\lib\pic"   -o jtagenb.hex jtagenb.o 
message: using default linker script "C:\Program Files\gputils\lkr\16f627.lkr"
error: missing definition for symbol "__gptrput4"
===============

I use SDCC 2.5.4 #1150 (Nov  9 2005) (MINGW32) and gputils 0.12.0

Can somebody help me, what to do ? Thanks in advance,
Vaclav

BTW: In SDCC version 2.4.0 following part of code did not work. PIC always sent 0x80000000. Is there something that I can't use ?

void spi_senddata( void)
{
  char i;
 unsigned long int tmpdat = 0xffff00ff;

  for (i = 0; i<32; i++) {
    if((tmpdat & 0x80000000) != 0) {
      PORTB |= SPI_TDI;
    } else {
      PORTB &= (~SPI_TDI);
    }
    // rising edge of SPI_CLK
    PORTB &= (~SPI_CLK);
    PORTB |= SPI_CLK;

    tmpdat <<= 1;
  }
}



Previous by date: 9 Nov 2005 11:53:13 +0000 Re: [gnupic] Pickit 2 under Linux, Chen Xiao Fan
Next by date: 9 Nov 2005 11:53:13 +0000 Re: [gnupic] Pickit 2 under Linux, Jeff
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.