Illegal BP MC9S12XDP

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

Illegal BP MC9S12XDP

Jump to solution
2,090 Views
interista
Contributor I

Hello,

First of all I am sorry for the possible faults, I am not English-speaking and I hope  you will understand my problem!

 

I have some problems to execute  a project with CodeWarrior. As soon as I execute my project the debugger tells me "ILLegal BP" and ends code (at the red line in the following code)  while it executes Start12.c (fonction Init())

 

Thank you

 

Regards

 

 



 

#ifndef __ONLY_INIT_SP
#if (!defined(FAR_DATA) || defined(__HCS12X__)) && (defined( __BANKED__) || defined(__LARGE__) || defined(__BANKED_COPY_DOWN))
static void __far Init(void)
#else
static void Init(void)
#endif
 {
/* purpose:     1) zero out RAM-areas where data is allocated   */
/*              2) copy initialization data from ROM to RAM     */
/*              3) call global constructors in C++              */
/*   called from: _Startup, LibInits                            */
   __asm {
ZeroOut:
#if defined(__HIWARE_OBJECT_FILE_FORMAT__) && defined(__LARGE__)
             LDX   _startupData.pZeroOut:1  ; in the large memory model in the HIWARE format, pZeroOut is a 24 bit pointer
#else
             LDX   _startupData.pZeroOut    ; *pZeroOut
#endif
             LDY   _startupData.nofZeroOuts ; nofZeroOuts
             BEQ   CopyDown                 ; if nothing to zero out


Labels (1)
Tags (1)
0 Kudos
1 Solution
803 Views
J2MEJediMaster
Specialist I

Let's get some more info here. You say this setup (compiler, system, probe) works on a similar card, but not this one? How similar are these two cards? MIght one have a different derivative of the MCU? Illegal BP messages are usually a signature of a stack problem or a bogus memory access. This can happen when a derivative MCU might have its control registers or physical memory located in different sections of the memory map. If the cards have the same MCU but different vendors made the cards, the card's memory map for their peripherals might be different.

 

---Tom

 

 

View solution in original post

0 Kudos
4 Replies
803 Views
CrasyCat
Specialist III

Hello

 

You have a problem with your project.

 

I would recommend you to submit a service request to get one of your support engineer to look into this one.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.

CrasyCat

0 Kudos
803 Views
interista
Contributor I

Hello

 

I don't thik that is a problem with my project. I got the same message "ILLEGAL_BP" even if i create a new project.

 

Furthermore, the project has already worked with a similar card.

 

Thanks

0 Kudos
803 Views
joernlee
Contributor I

Hello,did you solve this problem?

I have met the same problem...I can't use"start" to debug my project

0 Kudos
804 Views
J2MEJediMaster
Specialist I

Let's get some more info here. You say this setup (compiler, system, probe) works on a similar card, but not this one? How similar are these two cards? MIght one have a different derivative of the MCU? Illegal BP messages are usually a signature of a stack problem or a bogus memory access. This can happen when a derivative MCU might have its control registers or physical memory located in different sections of the memory map. If the cards have the same MCU but different vendors made the cards, the card's memory map for their peripherals might be different.

 

---Tom

 

 

0 Kudos