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/BQ76PL455A-Q1: Programming BQ76PL455-Q1 along with TMS570LS0432 from start

Part Number: BQ76PL455A-Q1
Other Parts Discussed in Thread: BQ76PL455-Q1, TMS570LS0432, HALCOGEN,

Tool/software: Code Composer Studio

Hi,

I am using BQ76PL455-Q1 along with  TMS570LS0432 and want to understand how am I suppose to program it with the help of Halcogen and CodeComposerStudio from start, the main issue being, that example code for BQ76PL455-Q1 is already available on its product page and I am unable to modify that code or build upon it, as suited for my application. I tried looking online (TI website, youtube etc) for any information that would help me to program BQ76PL455-Q1 from start and not to modify the existing example code but unfortunately, there is none which explains the whole process, the datasheet and design reference guide for BQ76PL455-Q1 also does not mention it.

Learning how to program TMS570LS0432 andBQ76PL455-Q1 is important for me because in future I want to use some other microcontroller.

  • Hi Menan,

    For a "bare minimum" you really just need to configure the UART peripheral with HalCogen to communicate with the pl455 (such as setting the UART interrupt). From there, you can built on it to include timeouts, TMS570 diagnostics (not needed if you plan on switching), and other peripherals. HalCoGen is really a tool for the TMS570 and enabling its peripherals.

    With respect to he pl455, the API is already in place with everything "under the hood" in place. There are several examples in the code, which are described in the software design reference document found under the "Technical Documents:" page. This document bridges the commands sent in the example code to the hex values actually transmitted. To develop your own program from here is essentially just re-using the "WriteReg" and "ReadReg" functions to transmit data to/from the pl455.
  • Is it possible for you to provide me a sample HalCogen file with UART enable so that I can build my code over it. Really appreciate your help in resolving the issue.
  • Hi Manan,

    I would suggest migrating to the TMS570 forum, and they can actually help you understand how to set it up. I will admit there is a bit of a learning curve, but as the saying goes: "give a man a fish and he will eat for a day; teach a man how to fish and he will never be hungry."

    They will be better equipped to walk you through the nuances. If you have any questions over bq devices, feel free to come back and i will help you out!
  • Hi David,
    So I was successfully able to build the code using Halcogen with UART enable and then I copied the pl455.h, pl455.c and other related files from bq76pl455 CCS example code, and I am able to flash the code on to the TMS570LS0432.
    In the code, I am trying to read Fault Summary which is under article 7.6.3.30 in BQ76PL455A-Q1 datasheet so when I try to read the value of fault summary during run time it returns a hexadecimal value which when converted to binary form is 000100000000000 so according to the datasheet there is Auxilary over-voltage error but the thing is there is nothing connected to the auxiliary port of my bq76pl455a-q1 evm so I don't understand why am I getting the above-mentioned error and none of the other errors exist in the code like, undervoltage, overvoltage etc...etc....
    I also tried running bq76pl455a-q1 evm through its GUI available on TI.com and surprising it works without any faults
    What I am hoping is, that you can help me understand and resolve this peculiar problem