Menu

AVR Flashforth ATmega 168p only, error: Overlap in .cseg: addr=0x1c01 conflicts with 0x1000:0x1c24

2014-09-03
2014-09-18
  • Randall Young

    Randall Young - 2014-09-03

    Hi All,

    I'm attempting to build flash forth 5.0, daily for the ATmega 168 p. Get's a fury of errors.

    AVRASM: AVR macro assembler 2.1.42 (build 1796 Sep 15 2009 10:48:36)
    Copyright (C) 1995-2009 ATMEL Corporation

    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(34): Including file 'C:\CodeTest\AVR\ff_5.0_AVR\src\config.inc'
    C:\CodeTest\AVR\ff_5.0_AVR\src\config.inc(7): Including file 'C:\Program Files (x86)\Atmel\AVR Tools\AvrAssembler2\Appnotes\m168pdef.inc'
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(72): warning: Register r26 already defined by the .DEF directive
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(73): warning: Register r27 already defined by the .DEF directive
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(74): warning: Register r30 already defined by the .DEF directive
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(75): warning: Register r31 already defined by the .DEF directive
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(238): warning: Use of undefined or forward referenced symbol 'TX0_' in .equ/.set
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(239): warning: Use of undefined or forward referenced symbol 'RX0_' in .equ/.set
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(240): warning: Use of undefined or forward referenced symbol 'RX0Q' in .equ/.set
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4364): error: Overlap in .cseg: addr=0x1c01 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4366): error: Overlap in .cseg: addr=0x1c02 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4368): error: Overlap in .cseg: addr=0x1c04 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4370): error: Overlap in .cseg: addr=0x1c06 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4372): error: Overlap in .cseg: addr=0x1c08 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4374): error: Overlap in .cseg: addr=0x1c0a conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4376): error: Overlap in .cseg: addr=0x1c0c conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4378): error: Overlap in .cseg: addr=0x1c0e conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4380): error: Overlap in .cseg: addr=0x1c10 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4382): error: Overlap in .cseg: addr=0x1c12 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4384): error: Overlap in .cseg: addr=0x1c14 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4386): error: Overlap in .cseg: addr=0x1c16 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4388): error: Overlap in .cseg: addr=0x1c18 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4390): error: Overlap in .cseg: addr=0x1c1a conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4392): error: Overlap in .cseg: addr=0x1c1c conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4394): error: Overlap in .cseg: addr=0x1c1e conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4396): error: Overlap in .cseg: addr=0x1c20 conflicts with 0x1000:0x1c24
    C:\CodeTest\AVR\ff_5.0_AVR\src\ff-atmega.asm(4398): error: Overlap in .cseg: addr=0x1c22 conflicts with 0x1000:0x1c24

    Assembly failed, 18 errors, 7 warnings

    The other chips seem to build Ok. Ideas?

    Thanks,

    R.

     
  • Mikael Nordman

    Mikael Nordman - 2014-09-03

    Try changing KERNEL_SIZE from 0x0c00 to 0x0c80
    on line 356 in ff-atmega.asm

    I forgot to check that for 16 Kbyte chips the last time I reorganized the kernel.

    Mike

     
  • Randall Young

    Randall Young - 2014-09-18

    That's the ticket! Compiled perfectly.

     

Log in to post a comment.