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

PSoC™ 6 Forum Discussions

yangyong
Level 4
100 sign-ins 5 likes given 5 solutions authored
Level 4

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 10 likes received 50 sign-ins 50 replies posted
Moderator

Hi:

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

0 Likes