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

Why can't I see all structure members in the C51 debugger?

Hello,

I've written the following code for an 8052 and have a problem with the debugger not showing the members of the stEvents2 array of structs.
I can see that the stEvents2 consists of 10 structs of type EvNode, but I can't see the iEvType inside them.

Anyone knows why???

struct  EvNode 
{
	int iEvType;
};

struct EvQueue
{
	struct EvNode stEvents1;
	struct EvNode stEvents2[10];
};

struct Layer1
{
	struct EvQueue stEvQueue;
};


struct Layer1 stLayer1;

void main()
{

	stLayer1.stEvQueue.stEvents1.iEvType=5;
	stLayer1.stEvQueue.stEvents2[5].iEvType=6;
}

Parents Reply Children
No data