This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Checking User Stack during runtime

Hello,

i'd like to know how much space I need in the Userstack Area.
I'd cleard the UserStack-Section in start_v2.a66.
In my 'main.c' I'd like to have a function which shows me the Userstack. Therefore I have to know where the UserStack is located.

So how could I get access to ?C_USRSTKBOT & ?C_USRSTKTOP in 'main.c'? (I could look in the Memory Map & type in the numbers by hand, okay. But automaticaly it would be nice)

/Koarl

Parents
  • Hello Mike,
    thanks for your reply.
    With this method it didn't work for me.
    In this app note they define (extern) variables which are evaluated by the linker. (Thats the way I see it)

    But I need the adress of a Data Section, which is defined in the startup-File.

    Is there a explanation (I didn't find one), how to access Labels(Section), which are defined in a .a66-File, in a .c-File?

    Regards, Koarl

Reply
  • Hello Mike,
    thanks for your reply.
    With this method it didn't work for me.
    In this app note they define (extern) variables which are evaluated by the linker. (Thats the way I see it)

    But I need the adress of a Data Section, which is defined in the startup-File.

    Is there a explanation (I didn't find one), how to access Labels(Section), which are defined in a .a66-File, in a .c-File?

    Regards, Koarl

Children