cancel
Showing results for 
Search instead for 
Did you mean: 

User Define Sections of Code,RAM in .lkf STM8

shashikanth1
Associate
Posted on November 19, 2011 at 13:52

Hello ,

We have a Cosmic compiler for STM8A:

I would like to define the sections for .text in .lkf

BB_SEG from 0x8080 to 0xAFFF

CB_SEG from 0xD000 to 0x1f000

and

BB_RAM from 0x100 to 0x200

CB_RAM from 0x250 to 0x500

I could not see any example for defining the text section in Manuals.

I would like to use them in;

#prgma section(BB_RAM)

uint8 x;

#pragma section(BB_SEG)

void Hello1()

{

}

Thanks and Regards,

Shashikanth
1 REPLY 1
luca239955_stm1_st
Senior II
Posted on November 20, 2011 at 18:25

Hello,

an example for a code section is available here: http://www.cosmicsoftware.com/faq/faq4.php

Regards,

Luca (Cosmic)