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/MSP432P401R: Modify and re-compile the default library files of malloc for MSP432

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I want to add a small code to the default implementation of malloc() and free() functions in MSP432. I found their source file which is memory.c, but I need to re-compile this file to get my changes affected.

Is there any way to tell the CCS to also compile and build the modified files in its library path?

  • Farzad Samie said:
    Is there any way to tell the CCS to also compile and build the modified files in its library path?

    The TI linker uses the mklib program to build the run time library.

    If you have modified the memory.c file in the lib/src sub-directory of the compiler installation, then to re-build the run time library your options are either:

    a) Delete the *.lib library files in the lib sub-directory of the compiler installation. The linker should then re-build the required library automatically on the next build.

    b) Run mklib manually, as described in Invoking mklib manually

  • Thanks Chester,

    I tried the first suggestion. That worked!

**Attention** This is a public forum