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.

EM1402EVM: MIBSPI communication for Active cell balancing

Part Number: EM1402EVM
Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Hi,

i am doing active cell balancing in TMS570LS3137. the example code available is working on the evaluation board with SPI communication. now, i want to implement it through MIBSPI not with SPI. 

while debugging, the code getting struck in the following:

g_ui32EMB1428Status = spiTransferByte(mibspiREG1, (EMB_COMMAND<<4));


 if((g_ui32EMB1428Status &(0xF0)) != 0xA0)//done =high, enable=low
   {
   while (1);
   }

and  g_ui32EMB1428Status value is 0xD8. 

i am attaching my halcogen file with code. kindly review it and please let me know if any configuration setting, i am doing wrong.

18-6-mibspi.zip

Thanks in advance,

Regards,

Gargi Pancholi

  • Hi Gargi,

    We are in the process of NRND this solution, so we are not able to provide further support on deviations from the example code - especially in a format (MIBSPI) that we are unfamiliar with currently for this interface. I apologize for the inconvenience, but perhaps the TMS570 team forum may be able to provide further insight on this.

    Best Regards,

    Taylor