Best way to debug the default ISR

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

Best way to debug the default ISR

1,114 次查看
alanbelyea
Contributor I

I have a frdm k64f. I am running kinetis 3.0 with ksdk 1.3. I have modified the rtos Ethernet echo server example to continuously send the value of a timer that increments once per millisecond to a server on a laptop. I can run it and print the values the server gets on screen. Until it randomly stops because the MCU got dropped into the default ISR. This happens at random times 10+ minutes into continuous operation. What is the best way to debug what sent the CPU to the default ISR? 

标记 (2)
0 项奖励
回复
1 回复

905 次查看
egoodii
Senior Contributor III

I don't know why a 'decent' fault-handler isn't just 'part' of all basic projects --- these come up ALL the time, and without some tools can be 'very difficult' to find.  The information you need is 'on the stack', but have fun looking THERE!  I suggest the handler pointed to here:

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

0 项奖励
回复