Cho Sau Ngai

MC13213 - illegal BP - Huffman compression

Discussion created by Cho Sau Ngai on Apr 13, 2007
Latest reply on May 1, 2007 by Nina Friedman
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

Outcomes