This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28027F: sci send and receive function logic verification

Part Number: TMS320F28027F

Tool/software: Code Composer Studio

 I am using c2000 piccolo launchpad for sci communication with bq76pl455 BMS ic. But i am  unable run the code becoz it is giving errors .  Could you please  tell me whether the following logic is correct or not.And also suggest me if any errors in syntax.


void sciSend(uint32 length, uint8 * data)
{
while((length--)>0U)
{
while(SciaRegs.SCICTL2.bit.TXRDY==0)
{}
SciaRegs.SCITXBUF=*data;
*data++;

}
}

void sciReceive(uint32 length, uint8 *data)
{
while(length!=0)
{
while(SciaRegs.SCIRXST.bit.RXRDY!=1)
{}
*data=(uint8)(SciaRegs.SCIRXBUF.all);
*data++;
}

  • Hi Indrajit,

    What are the errors? Can you paste the screenshot of the error window?

    Regards,
    Gautam
  • 1.errors encountered during linking; "Example_F2802xScia_FFDLB.out" not errors encountered during linking; "Example_F2802xScia_FFDLB.out" not    redesigned             C/C++ Problem

    2.gmake: *** [Example_F2802xScia_FFDLB.out] Error 1    redesigned             C/C++ Problem

    3.gmake: Target 'all' not remade because of errors.    redesigned             C/C++ Problem

    For the remaining three errors its showing null there but when we click the error its directing at memory section  such as

      ramfuncs         : >> RAMM0 | RAML0,      PAGE = 0

       .text            : >> RAMM0 | RAML0,      PAGE = 0

      .cinit           : >  RAMM0 | RAML0,      PAGE = 0

    these're the errors i got.I am trying to fix these errors but once ,could please verify the logic  and tell me if any mistakes are the code.