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.

Compiler/CC2640R2F: CC2640R2F driverlib.lib recompile

Part Number: CC2640R2F

Tool/software: TI C/C++ Compiler

Hi TI Experts,

As the default BLE project is linked to the precompiled “driverlib.lib”.

So, how to we recompile or rebuild the “driverlib.lib” if we intend to modify the source code at path “..\ simplelink_cc2640r2_sdk_1_40_00_45\source\ti\devices\cc26x0r2\driverlib”?

Please advice.

Br,

Teach Me

  • Hello,

    We strongly recommend against changing the driverlib code, is there a specific reason this is required?

    In any case, you can always import the C file you wish to modify into your project/workspace and make the changes and rebuild the project.
    The version of the file within your workspace will be the one linked to before the library version.
  • Hi Sean,

    We would like to customize I2C speed to below 100kHz.
    So, we need to know is there any possibility to change and rebuild the driver library.

    Thanks,
    Br,
    Teach Me
  • Hello,

    The steps I listed above would also apply to rebuilding the driverlib for I2C. Drag the files into your workspace and the linker will choose the versions of the functions in the newly generated .o over those in the library.

    Are the functions you wish to patch in ROM?