2023-12-11 06:31 AM
Hi, currently I have an issue during debug. I'm writing a bare metal code to blink a LED, when I compile the code there aren't any error occur. But when check the Expression I got this errors, I have search everywhere but I can't find the solution yet. Can somebody point out what I did wrong and what I should do to overcome this Issue please.
Best regard
2023-12-11 09:45 AM
Welcome @trietmt9, to the community!
How can the Expressions window display something that is probably not there?
Where did you define the variable GPIO_PinCFG?
Regards
/Peter
2023-12-11 05:50 PM
Read the error.
No symbol "GPIO_PinCFG" in current context.
Can't show the value of something that doesn't exist.
2023-12-11 06:52 PM
And that is a weird thing because I had created a struct for it in the header file which I've already included
2023-12-11 06:52 PM
I define It as a struct in another header file which I've already included
2023-12-11 11:36 PM
Well, you didn't mention that at the beginning.
Anyway - as the name suggests, a struct only specifies the structure that is then instantiated. Instead of just one member of such a struct, however, you have to specify the instance - how is the GUI supposed to know which of the (possibly) many instances you are referring to?