This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

global variable not updating on F28335 in CCS5.1.0.09

hello,

I looked through the threads about this but could not find one that pertained to
my problem.

I am using CCS ver5.1.0.09. I’ve done this in CCS ver 3 without any problems.

I am creating a global variable above main() as int volatile g_query_user_flag.
In the header file: F28335_example.h, I have extern int volatile

g_query_user_flag so it’s visible to other .c files.

In main, I can change the value of g_query_user_flag without any problems. I
cannot change the value of g_query_user_flag in other files that want to update
it.  While in some other file that wants
to update the  g_query_user_flag and
cannot, I can force the update by hovering over it until the pop-up window
shows up and just type the new value in. 
I wonder if there is some sort of permission  issue going on.

Do I need to change something in the Compiler setting as another member mentioned?

Thanks

Monika

  • Monika,

    Does your code behave correctly?  For example, if you pass this variable as an argument to printf, does it print the correct value to the console?  I want to better understand if this is just an emulation issue in CCS 5.1, or if the application is actually failing.