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: Demo code tms570bms problem with LAUNCHXL-TMS57004 Rev.C and EM1402EVM PWR580 Rev.B

Part Number: EM1402EVM
Other Parts Discussed in Thread: LAUNCHXL-TMS57004, , BQ76PL455A, BQ34Z100EVM, BQ76PL455EVM

Hi,

I am having a problem running the demo code tms570bms-1.0 downloaded from here: 

The code hangs in an infinite while(1) loop in file emb1428.c line 339 when I enable balancing by the tool tms570bmsgui-1.0.

	if((g_ui32EMB1428Status &(0xF0)) != 0xA0)
	{
		while (1); // The code hangs here
	}

I am using LAUNCHXL-TMS57004 Rev.C and EM1402EVM PWR580 Rev.B. All symptoms are the same as this post: 

But there is no solution in that post. Can someone help?

  • Hi Armour,

    I strongly recommend thoroughly reading the documentation of the TIDM-TMS570BMS and working through this. There are some nuances that are commonly missed. Please make sure you have the bq76pl455A GUI installed.

    Personally, I do not recommend following this, although some people do like this reference design. I recommend using the regular EM1402 code without a GUI - it is much more straightforward and easier to understand as a reference.
  • Hi David,

    I downloaded EM1402EVM Example Code 0.1 from www.ti.com/.../tidcci7 and www.ti.com/.../snvc188 . In file sys_main.c, it says that below connection of these boards must be made by the user. But 1402EVM didn't have same pins as bq34z100EVM. How could I make those connections? Or Did I download wrong example code?

    * J1 pin 1 (+3V3) -> bq76PL455EVM J3 pin 3 (VIO)
    * J1 pin 3 (SCI1_RX) -> bq76PL455EVM J3 pin 5 (TX) **remove R8 from TMS570LS04x Launchpad
    * J1 pin 4 (SCI1_TX) -> bq76PL455EVM J3 pin 4 (RX)
    * J2 pin 1 (GND) -> bq76PL455EVM J3 pin 1 (DGND)
    * J2 pin 3 (GIOA0) -> bq76PL455EVM J3 pin 6 (nWAKE)
    * J2 pin 4 (GIOA1) -> bq76PL455EVM J3 pin 2 (nFAULT)
    *
    * J2 pin 7 (SPI1SOMI) -> bq34z100EVM J7 pin 3 (SDA)
    * J2 pin 8 (GIOA6) -> bq34z100EVM J7 pin 2 (SCL)
    * J3 pin 2 (GND) -> bq34z100EVM J7 pin 1 (GND)

    Regards,

    Armour Lu
  • Hi Armour,

    It appears that it is a typo or relic from something else, and should be ignored I think. If bit-banging SPI from the pl455 GPIO to the EMB1428, then only the top section of connections would be required.