cancel
Showing results for 
Search instead for 
Did you mean: 

Why the cosmic compiler produce this error

cgha21
Associate II
Posted on July 28, 2009 at 06:35

Why the cosmic compiler produce this error

7 REPLIES 7
cgha21
Associate II
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

cgha21
Associate II
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 ?

cgha21
Associate II
Posted on July 21, 2009 at 04:17

I am using the stm8s105,but not familiar with cosmic

luca239955_st
Associate III
Posted on July 28, 2009 at 06:35

Did you solve this problem?

Regards,

Luca (Cosmic)

TLess
Associate

Has anyone solved this problem?

TLess
Associate

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

Do-be-do
Associate

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