Tool/software: Code Composer Studio
Hello,
I defined a variable inside a .c file as follows:
volatile bool g_bMPU6050Done; // stdbool.h was included.
This file was added to my CCS project.
When I try to use it in one of my functions inside main.c I get the following error:
Description Resource Path Location Type
#20 identifier "g_bMPU6050Done" is undefined
When I move the "volatile bool g_bMPU6050Done;" definition to a different .h file that also added to my project - the build completes without errors.
Why does this happen ?