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
  • I guess it has something to do with the question mark in the label. You cannot have a question mark in any names in C code. There is a hint somewhere in the Keil application notes that you could use underscore in C code to reference a name containing a question mark, but trying to use _C_USRSTKBOT to access ?C_USRSTKBOT does not work. I am sure that Keil people could explain this if they wanted.

    Sauli

Reply
  • I guess it has something to do with the question mark in the label. You cannot have a question mark in any names in C code. There is a hint somewhere in the Keil application notes that you could use underscore in C code to reference a name containing a question mark, but trying to use _C_USRSTKBOT to access ?C_USRSTKBOT does not work. I am sure that Keil people could explain this if they wanted.

    Sauli

Children
No data