Tool/software: Code Composer Studio
Hello Everyone,
i have set a Het interrupt linked to a pwm that is triggered at every end of the period through a pwmNoification every 10 us. So every time i get my interrupt (everythink works properly on the hardware part) the pwm notification is also executed and inside my pwm notification i have initialized a counter (pwmCounter) which is reset at after 500 triggers. Now my pwmNotification function is initialized in my main.c and so is the variable pwmCounter (that should thus be a global variable). It is executed in the ISR which does not permit me to use a conditional if in my main.c to trigger another action let's when the pwmCounter is triggered 10 times for example. In order to check if i could apprecciate the change in the pwmCounter in my main.c i created a small if cycle and run the debug bu it nevers gets inside the conditional if cycle as if it could not read my variable pwmCounter changing in the ISR.
The project builds without errors so i do not believe it is a problem of includes.
Thank for your help