cancel
Showing results for 
Search instead for 
Did you mean: 

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

mtien888
Associate II
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

2 REPLIES 2
StefanHogg
Associate II
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

mtien888
Associate II
Posted on June 03, 2013 at 19:54

That should work.  Thanks.