Illegal BP MC9S12XDP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,106件の閲覧回数
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


ラベル(1)
タグ(1)
0 件の賞賛
1 解決策
819件の閲覧回数
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 件の賞賛
4 返答(返信)
819件の閲覧回数
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 件の賞賛
819件の閲覧回数
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 件の賞賛
819件の閲覧回数
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 件の賞賛
820件の閲覧回数
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 件の賞賛