S32K delay function problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K delay function problem

858 Views
zhengjianfei1
Contributor III

Hi ,

      I found an interesting problem while i debug the example HELLO WORLD. The software delay function sometimes causes 1.8S delay and  sometimes causes 1.5S delay. Just shown as pictures bleow. The only different is the address where while(i--) placed. Can someone tell me why?  Thanks!

pastedImage_1.png

pastedImage_2.png

pastedImage_5.png

0 Kudos
2 Replies

737 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

take a look at this thread:

https://community.nxp.com/thread/498476 

Regards,

Lukas

737 Views
zhengjianfei1
Contributor III

Hi Lukas,

  Thanks so much for your advice! I solved the problem through enabling instruction cache.

0 Kudos