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

eTPU_C

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.