This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CCSTUDIO-C2000
Tool/software: Code Composer Studio
Hi,
I need to implement Compile and Memory barriers for Delfino TMS320F28379D and Code Composer Studio.
So the question is how to do that in CCS?
There is no standard solution for creating barriers in the compiler. You can get most of what is typically required by taking two steps. Step one: Create a critical section by bounding it with the intrinsics __disable_interrupts and __restore_interrupts. Please read more about those intrinsics in the C2000 compiler manual. Step two: Make all the memory variables used in the critical section volatile.
Thanks and regards,
-George
You can disable optimization for one function with this pragma ...
#pragma FUNCTION_OPTIONS(name_of_function, "--opt_level=off");
Please read more about that pragma in the C28x compiler manual.
Thanks and regards,
-George