S32K144
S32 Design for Arm 2.2
Optimization Level (-O1)
After the Hall signal A is detected by the input capture function, it waits for about 6us before going to collect Hall signal B. I used a FOR loop to produce this 6us, so how do I prevent the compiler from optimizing away this FOR loop?
for(i=0; i<65535;i++)
{...}
Solved! Go to Solution.
Yes, I have found it in certain presentation used following way:
This method works well in S32K144 S32DS, is it theoretically applicable?