全都不对,正确的做法是
1.原理图上找个能点的灯(gpio或者localbus啥的非高速串行总线都行)
2.写个死循环点灯,有些时候需要汇编写
3.从头开始一点一点往下找哪里点不亮的
4.找到具体语句分析解决
5.解决不了或者看不懂就封掉
上述才是正确的做法
【 在 anit 的大作中提到: 】
: An embedded system programmed in ansi c becomes unresponsive shortly after startup.
: Which of the fllowing are valid strategies for diagnosing the problem ?
: A. Implement service routines for available illegal-instruction or address error exception vectors to catch errant program or data memory access
: ...................
--
FROM 113.132.217.*