Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
September 11, 2012 - 5:29pm
|
Hi, I am trying to use the startup_stm8.asm file for Startup of STM8. When I added the file to my project, I noticed in the memory map file the following: My project is still empty and this data requirement is coming from startup_stm8.asm. May be I do not know how to use the Startup code. Can you please help me understand this. Thank you, |
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
Hi Stéphane,
Thanks for the reply.
I have sent the code to the mentioned email id.
Pradeep
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
Thank you Stéphane.
I just started to get my hands on the tools.
Hope its ok to ask such simple questions. :)