フィルターのクリア

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

1 回表示 (過去 30 日間)
Rob de Kluijver
Rob de Kluijver 2021 年 5 月 15 日
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?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by