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.

BQ76942EVM: programming bq76942 EVM

Part Number: BQ76942EVM
Other Parts Discussed in Thread: BQ76942, , BQSTUDIO, BQ76952

Hi,

I am new to this bq76942 EVM coding. Could you please mention the prerequisites knowledge required to work on this board. 

I have gone through the "Introductory microcontroller programming" for BQ76942EVM on TI's website, but still confused about how to code on CCS and setup the registers.

I would also like to know how can I debug and flash the test code, I mean are there any changes to be made to the code or could it be used as it is?

Thank you

  • Dear Niraj,

    With the EVM, two options are available: coding and BQStudio.The example code provided by TI is functional and should be eligible to be flashed to an MCU if the device is properly configured (i.e. not using I2C commands when the device is configured for SPI).

    The BQ76942EVM has a port to allow I2C communication. If you wish to connect your own microcontroller to talk to the device, you can use this I2C connection to configure the BQ chip. This would require an external mircocontroller to send I2C or SPI signals.

    However, BQStudio is a GUI tools provided by TI for users that makes it easier to write and read registers. This is generally the preferred method for interfacing with the BQ76942EVM and is the most simple to start up. The microcontroller on the EVM is preprogrammed to be the go-between for BQStudio and the BQ76942. I would recommend starting out with this before proceeding to coding if you are trying to learn more about how the BQ76942.

    As far as useful resources or prerequisites, here are a few good resources:

    1. Technical Reference Manual: No need to read it all the way through, it does have lists of all the registers and commands which makes it a great reference.

    2. Software Development Guide: Provides good information on programming with commands, reading/writing registers, and communication protocols.

    3. EVM User Guide: Walks through the setup of the EVM with BQStudio as well as how to use it and connecting external MCUs for hosting.

    I am slightly confused by what you mean by debug and flash the test code. Are you trying to code the EVM microcontroller or the BQ76942?

    Best,

    Asher Nederveld

  • Hi Asher,

    Thanks for the information. For debug and flash I was referring to the test code section 'main' where the user can write their code and I want to code bq76942 on CCS platform. 

    Thank you

  • Dear Niraj,

    When it comes to programming the BQ76942 without BQStudio, you will need to have a device that can communicate via I2C. Most people would use a microcontroller. You will need to set up a microcontroller with CCS like the MSP430 and use that to send instructions to the chip via I2C. TI provides a list of premade functions that can be flashed to an MCU to write and read information to and from the BQ76952. The code can be found here. I would recommend using this code as a jumping off point. I hope this helps!

    Best,
    Asher Nederveld