Menu

#12 Adding new MCU: PIC18F2[56]K83

v1.0_(example)
open
None
5
2023-01-25
2018-05-02
No

Hi,

following the description https://sourceforge.net/p/gputils/support-requests/7/#d425 I tried to add the new K83 MCUs to trunk 1312. I've patched gputils with:

M       gputils/header/Makefile.am
M       gputils/header/Makefile.in
M       gputils/header/p18cxxx.inc
A       gputils/header/p18f25k83.inc
A       gputils/header/p18f26k83.inc
M       gputils/libgputils/gpcfg-table.c
M       gputils/libgputils/gpcfg.h
M       gputils/libgputils/gpprocessor.c
M       gputils/libgputils/gpreg-table.c
M       gputils/libgputils/gpregister.h
A       gputils/lkr/18f25k83_g.lkr
A       gputils/lkr/18f26k83_g.lkr
M       gputils/lkr/Makefile.am
M       gputils/lkr/Makefile.in

I'm facing two problems
1. The RAM location error:

[AS] gpasm -a inhx32 -e on -I ../include/ gbox2k83-system-led.asm -o gbox2k83-system-led.hex
/usr/share/gputils/header/p18f25k83.inc:12277:Warning[219] Invalid RAM location specified. Bad end: 0x0036FF > MAXRAM: 0x001FFF
/usr/share/gputils/header/p18f25k83.inc:12278:Warning[219] Invalid RAM location specified. Bad start: 0x003800 > MAXRAM: 0x001FFF
/usr/share/gputils/header/p18f25k83.inc:12279:Warning[219] Invalid RAM location specified. Bad start: 0x003891 > MAXRAM: 0x001FFF

but it's defined correctly:

;==========================================================================
;
;       RAM Definitions
;
;==========================================================================
       __MAXRAM  H'3FFF'
       __BADRAM  H'0800'-H'36FF'
       __BADRAM  H'3800'-H'387F'
       __BADRAM  H'3891'-H'389C'
       __BADRAM  H'38A0'-H'395A'
  1. BANKSEL fault:
000372 0107           00190                 BANKSEL CIOCON
# should be
000372 0137           00190                 BANKSEL CIOCON
# where the definition is correct in the include file:
CIOCON           EQU  H'3700'

Any hint would be welcome to get gpasm working with the new k83 MCUs.

Regards

Gerd

1 Attachments

Discussion

  • Molnár Károly

    Molnár Károly - 2018-05-14
    • assigned_to: Molnár Károly
     
  • Molnár Károly

    Molnár Károly - 2018-05-14

    Very rarely I have a little time to deal with this project.
    The source code of gputils can not handle the PROC_CLASS_PIC16EV class at this time. The patch submitted by you is not enough for a successful compilation. I'm already dealing with the solution, but it takes more time.

    Regards
    Molnár Károly

     
  • Anobium

    Anobium - 2023-01-25

    was the 18F27Q43 class of chips ever added?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.