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

Cast on static variable in watch window

Hello,

in the watch window, I want to display a static variable as a P_TCB 

I enter : "(P_TCB)(\Sources/OS/Applicative/Applicative.c\ApplicativeTaskId)"

Result : the value of ApplicativeTaskId is displayed with the right value but, although a cast to (P_TCB) is added, the "+" for deploying the variable does not work, the cast seems not recognized.

If a split the commands into two lines, the display is OK.

"\Sources/OS/Applicative/Applicative.c\ApplicativeTaskId" => displays the right value (said 0x6c0212345 for example)

"(P_TCB)0x6c0212345" => display the members of the P_TCB variable

Conclusion : it is impossible to use a cast on a static variable fully defined in the watch.