Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

how to set BSL password for msp430g2553 in CCS-V4.1

$
0
0

I have to do the following steps.

Step 1:- I have call this function in our source code.

unsigned char ROM_RX_DataBlock(DataBlock data)
{
  unsigned int i;
  unsigned char retValue;
  TXBuffer.data[0] = RX_DATA_BLOCK;
  TXBuffer.data[1] = (data.numberOfBytes+4) & 0xFF;
  TXBuffer.data[2] = (data.numberOfBytes+4) & 0xFF;
  TXBuffer.data[3] = (unsigned char)(data.startAddr & 0xFF);
  TXBuffer.data[4] = (unsigned char)((data.startAddr>>8) & 0xFF);
  TXBuffer.data[5] = (data.numberOfBytes) & 0xFF;
  TXBuffer.data[6] = 0;
  for( i = 0; i < data.numberOfBytes; i++ )
  {
    TXBuffer.data[i+7] = data.data[i];
  }
  TXBuffer.size = data.numberOfBytes+7;
  retValue = BSL_TX_Packet( TXBuffer );
  if( retValue == ROM_ACK )
  {
    retValue = BSL_ACK;
  }
  return retValue;
 
}

Step 2:- I have pass same value for  datablock.

Step 3:- That function i have call in the main function or at the end of source code ?

Step 4:- where to include ?  this command ( HDR, CMD , L1, L2 ,AL, AH, LL,LH, D1,D2,....DN, CKL , CKH, ACK)

Regards

pramod


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>