Hi Arthi Venkatasubramanian
First I need to know the problem is due to software or hardware side. Could you please create a new project with wizard, can you download and run the new project code on the board?
If the problem only happened on your own project(no problem with new project), There is no document on the list of illegal BP, but I will try to explain it in detail to you.
There can be many reasons for “ILLEGAL_BP” error message.
- 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.
- 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.
- bad SW approach to RAM, e.g. some buffer overflows, STACK overflow…
- code optimization by CW may cause the JMP to non-defined program memory address and PC lost way.
Please check your code if it belongs to one of the reasons above.
Hope it helps!
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------