cancel
Showing results for 
Search instead for 
Did you mean: 

help: define var. with aboslute addr. and init. value

wolver
Associate II
Posted on April 24, 2009 at 13:14

help: define var. with aboslute addr. and init. value

5 REPLIES 5
wolver
Associate II
Posted on May 17, 2011 at 15:02

Hello

I use Cosmic, When I define var. with aboslute addr. and init. value, Compiler error...

Att. is my source code, Compiler report:

#error cpstm8 stm8_interrupt_vector.c:79(69) missing expression

How can I fix it?

Regards

wolver

luca239955_st
Associate III
Posted on May 17, 2011 at 15:02

http://www.cosmicsoftware.com/faq/faq3.php

wolver
Associate II
Posted on May 17, 2011 at 15:02

Hi: _luca

# LINK COMMAND FILE AUTOMATICALLY GENERATED BY STVD7

# SHOULD NOT BE MANUALLY MODIFIED

#

How can I place ''+seg .iconst -b 0xe0000'' ...?

Regards

wolver

jatin
Associate II
Posted on May 17, 2011 at 15:02

Hi Wolver,

You can define the segment e.g. 'const and section 'iconst' in the linker settings of the ST Visual develop.

Go to Project/settings/linker => select catergory 'input''. Here by right click on Segment/section name, you can create a new segment 'const' and then create a section 'iconst' under this segment. Then allocate the address to this segment/section.

Regards,

Jatin

wolver
Associate II
Posted on May 17, 2011 at 15:02

Hi Jatin

Thank you! Trouble runs away...

Regards

wolver