Topic : Startup Code (startup_stm8.asm)

Forum : ST7/STM8

Original Post
Post Information Post
September 11, 2012 - 5:29pm
Guest

Hi,

I am trying to use the startup_stm8.asm file for Startup of STM8.
The usage is mentioned in the Application Note:AN61.

When I added the file to my project, I noticed in the memory map file the following:
Total Data storage requirement: 0204H (516)

My project is still empty and this data requirement is coming from startup_stm8.asm.
Why is it taking up all the RAM??

May be I do not know how to use the Startup code.
What I am atleast sure is I am not left with any place for DATA storage.

Can you please help me understand this.

Thank you,
Pradeep
..
..
..
..
..
..
..

Replies
Post Information Post
+1
0
-1
September 12, 2012 - 10:04am
Raisonance Support Team

Hello,

Creating a project with just startup_STM8.asm requires 16 bytes of code and no data!!

Can you give us more information as send your 'empty' project to Raisonance support (support@raisonance.com) ?

Stéphane

+1
0
-1
September 12, 2012 - 3:25pm
Guest

Hi Stéphane,

Thanks for the reply.
I have sent the code to the mentioned email id.

Pradeep

+1
0
-1
September 13, 2012 - 11:49am
Raisonance Support Team

Hello Pradeep,

When your using "your own" startup, the linker uses it and add a stack to your program (the ?C_STACK?SEG segment).

If you don't use it, the Raisonance "smart" linker will guest that for single while(1) your program doesn't need any start-up
and any stack! That the reason why it is shorter.

Regards,

Stéphane

+1
0
-1
September 14, 2012 - 10:54am
Guest

Thank you Stéphane.
I just started to get my hands on the tools.
Hope its ok to ask such simple questions. :)