S32K delay function problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K delay function problem

1,197 次查看
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 项奖励
回复
2 回复数

1,076 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

take a look at this thread:

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

Regards,

Lukas

1,076 次查看
zhengjianfei1
Contributor III

Hi Lukas,

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

0 项奖励
回复