ILLEGAL_BP error with BDM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ILLEGAL_BP error with BDM

4,397 次查看
SSK
Contributor I
Hello forum members,
 
I am using Codewarrior 4.6 build 6350 for MC9S12A128CPVE controller. I am using PE micro BDM for debugging the code. I am getting ILLEGAL_BP error if I try to debug the code. I am attaching two snaps of the Real Time debugger window for your reference. The assembly window in debugger displays **** Illegal OpCode string. What this means? Is there any configuration missing for debugger? Please clarify. Your earliest help in this regard will be highly appreciated.
 
Thanks in advance.
 
Message Edited by t.dowe on 2009-10-26 01:56 PM
0 项奖励
回复
2 回复数

823 次查看
CompilerGuru
NXP Employee
NXP Employee
Well, illegal opcode means that it is not a legal opcode :smileyhappy:.
Eventually (if debugging in RAM) the code got changed (corrupted), or more probably (especially when debugging in flash) the core jumped to non code (constants, data, variables, non memory areas...). There are many reasons how this could happen (stack too small, array overflow, uninitialized variables,... so its a bit hard to guess remotely why the core ends up there.
I guess the illegal breakpoint message means pretty much the same thing, that the code is executing non code.
What is at those addresses (check the map file).
Also make sure the initial loading/flashing did succeed properly.


0 项奖励
回复

823 次查看
UcTechnoGeek
Contributor II
You should ask P&E.
0 项奖励
回复