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.

LP-MSP430FR2476: How do you add FRAM Utilities to a project?

Part Number: LP-MSP430FR2476
Other Parts Discussed in Thread: MSP430FR50431, MSP430FR5043, MSP430WARE, MSP430FR5994

The user guide only mentions how to add FRAM Utilities for a new project or through the template system, but that doesn't seem to be working for me.

If I wanted to add CTPL just by adding it to my build path and use #include <ctpl.h> to get it to work, what steps would I have to do to get that done?

I also noticed there's a requirement to call ctpl_init() in __int_low_level_init() (I am going off the example project file ctpl_pre_init.c dev.ti.com/.../node. In addition to adding the ctpl files to the build path, what actions must I perform in the project itself to properly get CTPL setup and ready to use?

Thanks!

  • Hi Sourabh,

    Sourabh Marathe said:

    The user guide only mentions how to add FRAM Utilities for a new project or through the template system, but that doesn't seem to be working for me.

    Are you referring to section 2.2.3.2, "Add CTPL to an Existing Application" of the Users' Guide (http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/FRAM_Utilities/latest/exports/FRAM-Utilities-UsersGuide.pdf)? What actually happens when you attempt that? What error do you get?

    Sourabh Marathe said:
    If I wanted to add CTPL just by adding it to my build path and use #include <ctpl.h> to get it to work, what steps would I have to do to get that done?

    You can see section 6.1.2.2 "Adding or Linking Source Files to Project" of the CCS documentation (https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_project-management.html) for the steps and options.

    Sourabh Marathe said:
    In addition to adding the ctpl files to the build path, what actions must I perform in the project itself to properly get CTPL setup and ready to use?

    As in the example project, you need to initialize CTPL library using ctpl_init() inside the application's _system_pre_init(void).

    Srinivas

  • Hi Srinivas,

    Thank you for your response. To clarify, here is the state of my project:

    1. I have created a project for a MSP430FR50431 chip on CCS, and have code in it that initializes various peripherals and makes use of interrupts.

    2. I am in the process of integrated ctpl.h into my project, but MSP430Ware does not have a CTPL file for the chip I am using. As such, I am working on recreating a ctpl_msp430fr5043.c file for the chip I am planning on using. These files can be found in ti/msp/MSP430Ware_3_80_10_09/fram_utilities_src_ctpl_devices

    3. From there, I plan on copying that ctpl_msp430fr5043.c file into my workspace, along with all the ctpl files stored in C:/ti/msp/MSP430Ware_3_80_10_09/fram_utilities/src/ctpl. (Previously, I had planned on linking the directory to the project, but copying over the files seems simpler).

    4. At this stage, I will add ctpl_int to the _system_pre_init() method, and configure the ctpl file to store the peripherals relevant to my project.

    In terms of integrating fram_utilities/ctpl into a project, do you recommend this method? 

  • Hi Sourabh,

    Sourabh Marathe said:
    These files can be found in ti/msp/MSP430Ware_3_80_10_09/fram_utilities_src_ctpl_devices

    There is a later release of MSP430Ware (version 3_80_13_03 released in December 2020) that you can download from https://www.ti.com/tool/MSPWARE -> https://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430Ware/latest/index_FDS.html 

    Based on the release notes, it is possible that they are no changes to the FRAM utilities portion of the release, but it is best to work with the latest version.

    In general, I do not see an issue with the approach you are following, as long as you maintain all the files within a sub-directory like fram_utilities/ctpl. You are already planning on doing that.

    Also, looking at the example projects available as part of FRAM_utilities at https://dev.ti.com/tirex/explore/node?node=AHeQOxdckMOkTaYdNRcBSw__IOGqZri__LATEST, the MSP430FR5994 might be the closest to MSP430FR50431 in terms of the peripheral feature set. 

    Hope that helps.

    Srinivas

**Attention** This is a public forum