#200 Support of new PIC18Fxxx devices


The attached patch includes the compilation control files.
The header and device files creates the make-new-pic6-devices.sh shell program. This uses the cinc2h.pl program.
The make-new-pic6-devices.sh contains a list of the new units.


  • Borut Ražem

    Borut Ražem - 2012-10-01


    there are some changes in file device/non-free/lib/pic16/libdev/Makefile.am which make me a little bit nervous ;-)

    For example
    Old version:

    lib_LIBRARIES += libdev18f13k50.a
    libdev18f13k50_a_SOURCES = pic18f13k50.c
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrget1_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrget2_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrget3_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrget4_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrput1_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrput2_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrput3_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom16_gptrput4_dispatch.S
    libdev18f13k50_a_CFLAGS = -p18f13k50 $(AM_CFLAGS)

    New version:

    lib_LIBRARIES += libdev18f13k50.a
    libdev18f13k50_a_SOURCES = pic18f13k50.c
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrget1_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrget2_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrget3_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrget4_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrput1_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrput2_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrput3_dispatch.S
    libdev18f13k50_a_SOURCES += gptr/eeprom8_gptrput4_dispatch.S
    libdev18f13k50_a_CFLAGS = -p18f13k50 $(AM_CFLAGS)

    Which one is correct: gptr/eeprom16_gptrget1_dispatch.S or gptr/eeprom8_gptrput4_dispatch.S?


  • Borut Ražem

    Borut Ražem - 2012-10-01
    • assigned_to: nobody --> borutr
  • Molnár Károly

    Molnár Károly - 2012-10-02

    In the "sdcc/device/non-free/lib/pic16/libdev" directory there is a shell script: mkmk.sh
    The Makefile.am file is the shell script created. I did not touch into.

    In the PIC18F13K50 MCU does not exist EEADRH register just EEADR.
    So the Makefile.am so far was bad, and thereafter will be good. (We strongly I hope. :-)

  • Borut Ražem

    Borut Ražem - 2012-10-02

    Patch applied and new pic16 device files generated in svn revision #8130.

    Karoly, can you please verify all other instances in Makefile.am where eeprom16 has changed to eeprom8 or viceversa?


  • Borut Ražem

    Borut Ražem - 2012-10-02
    • status: open --> pending-fixed
  • Borut Ražem

    Borut Ražem - 2013-05-25
    • status: pending-fixed --> closed
    • Group: -->

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks