I looked through the threads about this but could not find one that pertained tomy 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 volatileg_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. Icannot change the value of g_query_user_flag in other files that want to updateit. While in some other file that wantsto update the g_query_user_flag andcannot, I can force the update by hovering over it until the pop-up windowshows 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?
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.
Please click the Verify Answer button on this post if it answers your question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.