How to prevent embedded coder to use global variables in a c2000 CLA task?

3 views (last 30 days)
I made changes to the LED blinking example. I added a data store that is located in the cla to cpu memory so that there is a cla header created. All blocks are inline and so is the model. I tried to remove all the optimizations. That didn't help.
This is the error: u0 = SimpleCLA_ConstB.eCAP1;
What I'm trying to do:
The capture interrupt starts the CLA capture task.
The capture task reads the captured counter value. For testing it just sends it to the DAC.
This works fine with an ISR because the ISR has access to the global variables. I could not find anything in the code mapping to assign eCAP1 to the CLA memory.
How can I solve this probem?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!