ILLEGAL_BP error with BDM

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

ILLEGAL_BP error with BDM

4,027 Views
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 Kudos
Reply
2 Replies

453 Views
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 Kudos
Reply

453 Views
UcTechnoGeek
Contributor II
You should ask P&E.
0 Kudos
Reply