|
发表于 2014-1-2 18:08:07
|
显示全部楼层
如果你新建个工程不出错但只有在某个工程出错. 通常是软件的原因
建议检查:
1. unmapped interrupt vectors or non-serviced irq is enabled or incorrect ISR vector number is used. The illegal breakpoint error often happens when the MCU is getting lost and executes dummy code. If this happens whenever you enable your interrupt, check that the interrupt vector has been correctly initialized with the address of the interrupt service routine. If the interrupt vector is left blank (0xFFFF) this could be the cause of the problem.
2. watchdogs: this might be a COP reset, check that the watchog, if enabled, is being fed correctly. Also please check that the stack is not overflowing.
3. bad SW approach to RAM, e.g. some buffer overflows, STACK overflow…
4. code optimization by CW may cause the JMP to non-defined program memory address and PC lost way.
5. Uncorrect debugger settings :
In the debugger window, please click on "File" -- "Configuration" --"Load" Verify that the check boxes Automatically erase and program into Flash is checked Verify memory image is unchecked Run after successful load is checked stop at function is checked and textbox indicates the name of your main function.
6. Few customer met this error due to no function called main or wrong device selected.
|
|