EmbeddedRelated.com
Forums

Illegal Breakpoint

Started by Ming Jiang July 31, 2002
Hello all, I am having a problem with my MC9S12DP256 eval board. Hopefully somebody can help me out. I set my target in ICD-12 debugger mode. Most times I ran my code by hitting F5 (Start/Continue), suddenly it would stop on its own. and I saw the bottom message changed from RUNNING to ILLEGAL_BP.
I

Ming Jiang
software engineer
Life Fitness
(847) 288-5966
*************************************************************************
IMPORTANT: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message. Please
advise immediately if you or your employer do not consent to Internet
email for messages of this kind. Opinions, conclusions and other
information contained in this e-mail message that do not relate to the
official business of Life Fitness shall be understood as neither given
nor endorsed by it.
************************************************************************* ----------

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Jiang, Ming
TEL;WORK:(847) 288-5966
EMAIL;WORK;PREF;NGW:
N:Jiang;Ming
END:VCARD



At 08:19 AM 7/31/02 -0500, Ming Jiang wrote:
>[...] suddenly it would stop on its own. and I saw the bottom message
>changed from RUNNING to ILLEGAL_BP.

Check the program counter. There's a good chance your code went off into
bogus territory and eventually encountered a 00 byte (BGND instruction).

If your program has compiled-in BGND instructions, it might have hit one.
Sometimes BGNDs are used to catch "can't happen" cases.

A very few times, I've had this sort of thing happen when I've had a bad
connection between the BDM pod and MCU.

Stephen

--
Stephen Trier
Technical Development Lab
Cleveland FES Center / CWRU
/ KG8IH