Menu

PIC12F675 not compiling...!

2006-08-16
2013-03-12
  • Richard Latter

    Richard Latter - 2006-08-16

    Hello All,

    I am too having problems getting sdcc to compile for the above chip.  I have tried several times, but I get the following warnings....

    $ sdcc BD.c -mpic14 -p12f675
    WARNING: Ignoring Out of Range register assignment at fixed address 114, WSAVE
    WARNING: Ignoring Out of Range register assignment at fixed address 113, SSAVE
    WARNING: Ignoring Out of Range register assignment at fixed address 112, PSAVE
    WARNING: Ignoring Out of Range register assignment at fixed address 127, STK00
    WARNING: Ignoring Out of Range register assignment at fixed address 126, STK01
    WARNING: Ignoring Out of Range register assignment at fixed address 125, STK02
    WARNING: Ignoring Out of Range register assignment at fixed address 124, STK03
    WARNING: Ignoring Out of Range register assignment at fixed address 123, STK04
    WARNING: Ignoring Out of Range register assignment at fixed address 122, STK05
    WARNING: Ignoring Out of Range register assignment at fixed address 121, STK06
    WARNING: Ignoring Out of Range register assignment at fixed address 120, STK07
    WARNING: Ignoring Out of Range register assignment at fixed address 119, STK08
    WARNING: Ignoring Out of Range register assignment at fixed address 118, STK09
    WARNING: Ignoring Out of Range register assignment at fixed address 117, STK10
    WARNING: Ignoring Out of Range register assignment at fixed address 116, STK11
    WARNING: Ignoring Out of Range register assignment at fixed address 115, STK12
    message: using default linker script "/usr/local/share/gputils/lkr/12f675.lkr"
    error: linker script has no definition that matches the type of section "data_BD"

    Can anyone help me to fix these problems.

    Many thanks in advance,

    Richard Latter

     
    • Richard Latter

      Richard Latter - 2006-08-16

      As a follow up to this post, I have downloaded 2.6.0 and now I only get the error message.

      error: linker script has no definition that matches the type of section "data_BD"

      I've looked at the .asm for this and can see the following lines....

      ;--------------------------------------------------------
      ; udata
      ;--------------------------------------------------------
      data_BD    udata
      ;    .area    DSEG    (DATA)

      I am using both cygwyn and win32 sdcc compilers, but get the same error message with both. 

      Can anyone help...?

      Many thanks in advance,

      Richard

       
      • Raphael Neider

        Raphael Neider - 2006-08-17

        Rumor says, that posting (short but nearly compiling) code often helps others to find the problems...

        However, the problem is likely to reside in gputils' 12f675.lkr linker script: It only contains SHAREBANKs, no (unprotected) DATABANKS.

        If you replace the two lines
          SHAREBANK  NAME=gpr0nobnk START=0x20 END=0x5F
          SHAREBANK  NAME=gpr0nobnk START=0xA0 END=0xDF
        with a single
          DATABANK NAME=gpr0nobnk START=0x20 END=0x5F
        you should be up and running, though the resulting code will probably introduce unneccessary BANKSELs (the line above states that all RAM resides in bank 0, although every cell is addressable via bank 1 as well (shared bank)). I guess the 12f675 only offers 64 bytes of RAM, right?

        HTH,
        Raphael

         

Log in to post a comment.

MongoDB Logo MongoDB