Hi there!
I have a problem with the different sizes of enum on the CPU and CLA on C2000 28377S. It is similar to this post: https://e2e.ti.com/support/tools/ccs/f/81/t/514189
I have an enumeration, which I declare in a shared file. Then I have a state machine running on the CPU, which changes the value of this enumeration. And then I use some If-statement in the control code on the CLA to execute the correct code depending on the value of the enum-variable.
Can someone please give me an example how to equalize the size of enum on CPU and CLA?
< //// Shared file
enum enum_test{
state1 = 0,
state2 = 1,
};
extern volatile enum enum_test state;
//// main.c
state = state1;
/// CLA
if(state == state1)
{}
else if (state == state2)
{}
>
Best regards
MK