Skip to main content
Visitor II
December 21, 2012
Question

Define segment option -ck for interrupt vector using STVD (COSMIC)

  • December 21, 2012
  • 2 replies
  • 660 views
Posted on December 21, 2012 at 04:11

I am using COSMIC compiler in STVD.  I try to define segment option -ck for all program and constant.  I can use Project Settings->Linker->Input->Segment/Section to add option for all .const and .text.  But the interrupt vector is not included for this option -ck.  

I check the .lkf file generated by STVD, interrupt vector is generated like

# Interrupt vectors file - section reserved for STVD

#<BEGIN VECTOR_FILE>

+seg .const -b 0x8000 -k

Release\stm8_interrupt_vector.o

#<END VECTOR_FILE>

Is there a way to add more option to the generate script for interrupt vector?  I don't see anywhere to add options.

Thanks

Michael Tien

    This topic has been closed for replies.

    2 replies

    Visitor II
    April 24, 2013
    Posted on April 24, 2013 at 17:50

    Hi Michael,

    In your project settings in linker tab in category ''input'', there is a drop down list right of the ''Lkf Script file''. Set this list to ''Custom'' and add the ''-ck'' option in the lkf file manually.

    Best regards,

    Stefan

    mtien888Author
    Visitor II
    June 3, 2013
    Posted on June 03, 2013 at 19:54

    That should work.  Thanks.