The compiler has optimized a local variable into a register. I'd prefer it take a memory location. How can I change this?


The compiler has correctly optimized the variable into a register because it could do so. Declare the variable as a static variable, and eTPU_C will be forced to allocate a location.