Topic : Program goes to CSTART Segment

Forum : ST7/STM8

Original Post
Post Information Post
June 22, 2011 - 4:51pm
Guest

Hi,

I am using STM8S207C8 processor in my project and while I am communicating with my PC using UART3 port, I sometimes see that the program goes to CSTART segment and then it resets itself. What do these CSTART and CST7_START_V_Z segments mean?

Thanks&Regards

Replies
Post Information Post
+1
0
-1
June 23, 2011 - 8:49am
Raisonance Support Team

Hi Volkan,

You can find some inforamtion about this in the startup_STM8.asm file, which is in the Ride7 installation directory, subdir "\inc\Sources\ST7-STM8\startup\".

Here are the 4 possible startup entry points

    PUBLIC  CST7_START                  ; Minimal startup
    PUBLIC  CST7_START_V                ; Startup with global variables initialization
    PUBLIC  CST7_START_Z                ; Startup with a segment initialized to 0
    PUBLIC  CST7_START_V_Z              ; Startup with globals + initialization to 0

For optimization sake, the startup may be reduced if there are no global variables to initialize.

Check out the assembly file I pointed above for details.

Best Regards,