AnsweredAssumed Answered

User Define Sections of Code,RAM in .lkf STM8

Question asked by balgar.shashikanth on Nov 19, 2011
Latest reply on Nov 20, 2011 by luca

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
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,