求救!程序一运行就没法调试了

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

求救!程序一运行就没法调试了

467 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by register on Sat Dec 08 01:47:07 CST 2012
我一不小心把调试脚SWCLK的功能给改了,结果没法单步调试了,甚至连使用J-Link或ULINK都没法连接了,急啊,有什么办法可以救吗?
Labels (1)
0 Kudos
2 Replies

460 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by register on Thu Dec 13 19:16:09 CST 2012
多谢楼上!已经解决了。我用ISP把程序擦除后就可以再调试了。
后来,我想到一个土办法:在调试时,把一个必需的小函数放到RAM中(通过.sct文件),并且使用调试.ini文件加载它(直接写到RAM),但是烧写到flash中的映像却不包含这个必需小函数,导致程序只有调试时才能运行。这样哪怕程序有错也不怕啦!
0 Kudos

460 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Irving on Sun Dec 09 21:38:00 CST 2012
你好,可以试试用Flash magic软件,使用ISP功能把程序Flash清掉,下次做这些调试的时候最好加个判断(按键之类)恢复SWCLK功能
0 Kudos