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.

LAUNCHXL-TMS57004: Generating Driver code in halcogen for TMS57004

Part Number: LAUNCHXL-TMS57004
Other Parts Discussed in Thread: BQ76PL455A, HALCOGEN

I followed the exact same steps stated in the post http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/695466/2564227?tisearch=e2e-sitesearch&keymatch=gunit#2564227 to generate Driver code but when I'm facing the problem with Master(TMS57004) and Slave(BQ76PL455A) communication. While executing the code it stuck at nSent = WaitRespFrame(bFrame, 37, 0);

Master didn't receive any response from the slave. 

In Halcogen I have enabled GIO, SCI and RTI drivers.

In SCI the Baud rate set to 250k, Data length 8, 1 Stop Bit and No Parity.

In Pinmux I have enabled GIO.

In VIM Channel 0 - 31 I have enabled Channel 3 and 13.

And added files named as pl455.h, pl455.c, datatype.h and swi_util.h from example code.

5415.bq76PL455A_HalcoCode.zip

I'm attaching the complete project 

please help in resolving the issue. 

  • Hello,

    1. Have you make the modifications on Launchpad (removing R8, R9; and adding 2 bluewires)?
    2. Please download the the example code used in TI BMS design as the reference

    www.ti.com/.../TIDM-TMS570BMS
    Software (1)
    TIDM-TMS570BMS Software
    (ZIP, 33083KB) 373 views, 28 Mar 2016
  • Hi Wang,

    We have removed the resistor R8 in TMS57004 and uploaded the example code and we are able to read voltage.

    We have used the same sys_main in both the case i.e in example code and our generated halcogen code.

    But when we are trying to generate our own code with halcogen we are not getting any response from the slave.

    Also, please elaborate your point 1. Why we remove R9 since in example code it is given only to remove R8. Secondly, what are the 2 blue wires you mentioned in the last post?

    Regards,
    Jitendra
  • Hi Wang,

    Example code is working alright with register R8 removed, R9 still intact with the launchpad, and without connecting

    J4 - 1 to FTDI pin 39

    J4 - 2 to FTDI pin 38

    I'm using printf() function to print the voltage value in CCS Console.

    Below I attached the console output of Example code.

    But when I'm executing my Halcogen generated code, program stuck at 

    nSent = WaitRespFrame(bFrame, 39, 0);

    waiting for slave response..

    Below I'm attaching complete CCS project. Which i generated from Halcogen.

    0880.bq76PL455A_HalcoCode.zip

    Regards,

    Jitendra

  • Hi Jitendra,

    1. you need to remove R9 too.
    2. Please connect MCU SCI_TX and RX to BQ76 EVM UART RX/TX: J1-3 (SCI RX) and J1-4 (SCI TX)