Hard fault

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
yangyong
Level 5
Level 5
Distributor - Jingchuan(GC)
5 comments on blog First comment on blog 50 questions asked

i debug the program, the program  enters the Cy_Syslib_ProcessingFault function.   

when the program  runs to the

yoya_4785701_0-1653016659341.png

, The program will sure enter cy_ Syslib_ Processingfault function.

 

When I use a certain value instead of uitemp0, the program will not enter the fault function.

yoya_4785701_1-1653016927732.png

 

what's the reason? Thanks!

0 Likes
1 Reply
YuZh
Moderator
Moderator
Moderator
100 replies posted 10 likes received 50 sign-ins

Hi:

建议你看下汇编代码,或者看下这个变量的地址,尤其是uitemp0,看上去是个函数内部的变量,估计是存在栈里面,你看下,是不是栈覆盖了这个变量的值。你这样截图,我很难定位问题的。建议给个完整的代码。

0 Likes