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.

TPS65987D: Application Customization Tool automatization

Part Number: TPS65987D
Other Parts Discussed in Thread: TPS65981, TPS65987

Hello,

wanted to ask about Application Customization Tool build automatization, that is , if i have made a project and saved it , how to automatically generate a .bin file?

Is that possible without using GUI? And if so , how would one go about it ?

Best regards,

Eriks Austrums

  • Hi Eriks,

    The best way to generate the binary would be using the GUI tool. If you have your project opened and loaded in the GUI, you can navigate to Binary --> "Save Binary" to save the full flash .bin image.

    Thank you,

    Hari

  • Hello Hari , thanks for your answer , but the question still stands , is there an alternative way to generate this binary without GUI?

    In the Application Customization Tool install directory there is an "make_buildscript_single_binary_from_pjt.exe" could this be used to generate a binary from a .pjt file for example?

    Or is there another way , for example to generate a binary file from a .pjt file using command line ?

    Best regards,

    Eriks Austrums

  • Hi Eriks,

    I will work with my team and we will give you some feedback shortly. 

    Thank you,

    Hari

  • Eriks,

    The file you found is part of the underlying tech that the GUI uses generate the binary. There is a way to tap into this tech from the command line using the following process.

    NOTE: Please note that this is not an officially supported process and is not in widespread use. As such this process is untested, however you may use it to generate the binary from the command line.

    Procedure:

    This process is broken up into two sections. A First-Time Setup to generate a GUI script that can be updated and reused, and a second Binary Generation section where you actually run the script from the command line.

    First-Time Setup

    1. Open a Windows command window
    2. Navigate to the GUI Installation directory. In the default Windows installation, this is the following path:
      1. C:\Program Files\Texas Instruments\TPS65981_2_6_7_8 Application Customization 6.1.1\tps6598x-application-customization
    3. Create a 'projects' folder in this directory and save your App Customized pjt file into this directory
      1. This should be the same directory where 'make_buildscript_single_binary_from_pjt.exe' resides
    4. Run make_buildscript_single_binary_from_pjt.ext <pjt file name> <FW Base Image file name>
      1. <pjt file name> is the file name of the configured pjt file name in the project directory
      2. <FW Base Image file name> is the file name of the FW base image that is being configured. This resides in the GUI installation directory
      3. A sample call for a TPS65988DH project would look like this
        1. make_buildscript_single_binary_from_pjt.exe TPS65988DH_611.pjt TPS65987_88_F707_10_08.bin
    5. Executing this call will generate a build_images_single_binary_from_pjt.ags file in the GUI installation directory
      1. This is a GUI script which you can modify to generate binaries from the command line

    Binary Generation

    1. Open the build_images_single_binary_from_pjt.ags in your favorite text editor
    2. Modify the "save template" version name from _SYS_VAL to the GUI version number (6.1.1)
      1. It should look like this post-edit: 
        {"name": "save template", "argsList" : ["templates\\_SYS_VAL_TPS65988DH_611.tpl","same","TPS65987_88_F707_10_08.bin","6.1.1"]}
    3. Update the "save binary" path to be whatever path and binary file name you want
      1. By default it looks like this: 
        {"name": "save binary", "argsList" : ["binaries\\_SYS_VAL_TPS65988DH_611.bin"]}
    4. Open a Windows command window and navigate to the GUI installation directory
    5. Run acConfigurationGui.exe build_images_single_binary_from_pjt.ags
      1. This generates the App Customized Low Region, Full Flash, and "App Config" only binaries

    Regards,

    Robert

  • Followed the instructions and it worked as expected , thanks a lot.