MC13213 - illegal BP - Huffman compression

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

MC13213 - illegal BP - Huffman compression

1,528 次查看
kelvinNgai
Contributor I
Hi all,
I am used Huffman compression of Basic compression library for my MC13213. When I run my program
unsigned char in[100], out[500];
int outsize, insize;
for(i=0;i<99;i++){      
    //delay(100);
    if((ATD1SC & 0x80) == 0x80){         
        ATDDataBuffer = ATD1RH;
        in[i]=(char)ATDDataBuffer;
       (void)int2string8Bit(ATDDataBuffer, App_String);
       SCITransmitStr(App_String);   
       ATD1SC = ATD1SC;
    }
   }
        in[99]=0;
      SCITransmitStr(" | ");
       SCITransmitStr(in);
       SCITransmitStr(" | ");   
   
    insize = sizeof(in);     
    outsize = Huffman_Compress(in,out,insize);
    (void) int2string(outsize,App_String);
    SCITransmitStr("< ");
    SCITransmitStr(App_String);
    SCITransmitStr(" >");
   }
I got "illegal BP" in BDM, what does it mean?  not enough RAM to run the Huffman Algorithm??
what will happen if the RAM is not enough?

thank you

Kelvin

Alban  Edit: Message subject MUST mean something. Part Number to be included

Message Edited by Alban on 2007-04-13 05:56 PM

标签 (1)
0 项奖励
回复
1 回复

621 次查看
NLFSJ
Contributor III

Hi Kelvin,

Due to the MC13213 has the Watch Dog Timer (COP) enabled by default and the loop described is so long, the COP could be restart the application before the loops ends. When it happens the debugger shows an "illegal BP". If your application really disables the COP when it comes out the reset condition and you still have the same problem.

You may want to send support@freescale.com the whole application to find out the issue.

 

Regards,

Nina

0 项奖励
回复