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.

Query related optimization level in FOC.



Dear,

When I am using optimization level = 4( as shown in below figure) , and I write down for() loop for small delay purpose, than compiler can not make this code's assembly code. So this delay can not come in picture.

When I am using optimization level = off, than delay is ok.

And I want to use level 4.

any idea?

Uint32 j;

for(j=0;j<5000000;j++);

{}