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: main code sys_main.c information

Part Number: BQ76PL455A-Q1

Tool/software: Code Composer Studio

hello sir/Mam,

           I wish to work with bq76pl445. I downloaded all related software to it when I get to see the main code there are many functions like nSent = WriteReg(nGrp_ID, 3, 0x62, 1, FRMWRT_GRP_R); and nRead = ReadReg(nDev_ID, 12, &wTemp, 1, 0); I want to learn this code from scratch to write on my own. What are the values that are being passed in that function?

  • Hi Revathi,

    Thanks for the question! In CCS using the example code, If you right click on any function and click 'open declaration' you will be taken to the c file that declares the function and the variables that are being passed into it. For WriteReg this is located in the pl455.c file and requires 5 values (device ID, register address, data, byte length, and write type).

    Best Regards,

    Taylor
  • Hi Taylor,

     Thank you for your answer. But I have another question where can I learn these functions to write code? Is there any driver libraries as you were given for F2837xD_DriverLib_Users_Guide?Thank you in advance.

  • Hello Taylor,

        I thank you heartfully I got the answer to my question and now I even know those functions. This is my last question regarding this I am getting an error when building the code.

    The error is : 

    Trouble parsing include or instance XML file
    C:\ti\ccsv7\ccs_base\common\targetdb\..\Modules\hercules\CP15_CortexR4F_r1p3.xml (The system cannot find the path specified)

     How can I fix this? I have searched all the folders for that file that doesn't work...

    Hope I get an answer to this question too...

    Thank you.