Unable to read the global variables from vxWorks Shell

1 post / 0 new
Offline
Last seen: 5 years 10 months ago
Joined: 06/14/2018
Posts: 1
Unable to read the global variables from vxWorks Shell

Hi,

I have a PPC T2080 target operating on vxWorks 5.4.2 RTOS. As vxWorks has a flat memory access environment, when I am trying to read a global variable from the shell, it end up with the message 'Undefined symbol'. The global variable is initialized with 0.

unsigned int rdyQCnt = 0;

 

But later when I initialized the variable with 1 (other than 0), I am able to read the value of this global variable from vxWorks shell.

unsigned int rdyQCnt = 1;

What I didn't understand is:

1. Global variable initialized with 0 resides in .bss section. But still not accessible from shell. why?

2. Global variable initialized with non-zero value,  resides in .data section. But still accessible from shell.