Skip to main content
Visitor II
July 28, 2009
Question

Why the cosmic compiler produce this error

  • July 28, 2009
  • 7 replies
  • 1496 views
Posted on July 28, 2009 at 06:35

Why the cosmic compiler produce this error

    This topic has been closed for replies.

    7 replies

    cgha21Author
    Visitor II
    July 20, 2009
    Posted on July 20, 2009 at 13:18

    #error clnk Debug\mp.lkf:1 segments .const (0x8080-0x8084) and .const (0x8000-0x80b0) overlap

    #error clnk Debug\mp.lkf:1 segments .const (0x8000-0x80b0) and .init (0x8084-0x8091) overlap

    cgha21Author
    Visitor II
    July 21, 2009
    Posted on July 21, 2009 at 02:34

    Error again.

    symbol c_lgadd not defined (Debug\stm8_interrupt_vector.o )

    I am using the cosmic for stm8 16K version,I've changed every memory mode

    and it does not help, can some one here help me. OK ?

    cgha21Author
    Visitor II
    July 21, 2009
    Posted on July 21, 2009 at 04:17

    I am using the stm8s105,but not familiar with cosmic

    Visitor II
    July 28, 2009
    Posted on July 28, 2009 at 06:35

    Did you solve this problem?

    Regards,

    Luca (Cosmic)

    Visitor II
    October 25, 2018

    Has anyone solved this problem?

    Visitor II
    October 25, 2018

    I have the same problem and have not found the solution yet.

    Visitor II
    June 15, 2020

    Hi everyone

    Just stumbled on this error. It came from an error in stm8_interrupt_vector.c.

    I had mistakenly added an extra line in the _vectab structure when adding my own definition of irq2 :

    ...

       {0x82, (interrupt_handler_t)_stext}, /* reset */

       {0x82, NonHandledInterrupt}, /* trap */

       {0x82, NonHandledInterrupt}, /* irq0 */

       {0x82, NonHandledInterrupt}, /* irq1 */

       {0x82, DMA_I2C_RX_handler}, /* irq2 */

       {0x82, NonHandledInterrupt}, /* irq2 */ // ERROR ! Causes .const overlap error

       {0x82, NonHandledInterrupt}, /* irq3 */

    ...

    Hope it helps