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-EM-CC2340R5: SDK Files Implementation and Libraries

Part Number: LP-EM-CC2340R5

Hi,

I am using CC2340 SDK  version 7.20.00.29

I have found that even if I delete source files in the SDK that are not used inside the project directly will not have any impact on building flashing a project.

For example, I deleted display.c file in path SDK_INSTALL_LOC/source/ti/display. During debugging I step into Display_printf function. The system shows no files. I did the same experiment without deleting display.c file. This time during debug step into Display_printf function, the system shows function implementation in display.c file. I did the same experiment with other source files that were not directly used inside the project. Outcomes are same. 

My conclusion is that TI provided these source files only to understand the implementation. When building a project there is no error even if we edit source files is only because we are adding the library files (.a files) to the project. That means we can't change or add any modifications to driver source files (e.g., display.c) or BLE stack implementations (e.g., gapbondmgr.c).

Is my understandings right? 

Thanks!
Nithin

 

  • Hello Nithin,

    CCS builds the project against a set of precompiled files if it does not find the library files inside the project.

    If you want to modify these files and tell CCS to compile from source code (new version), then I would suggest including them inside the project explorer.

    Let me know if this helps.

    David.

  • Hi David,

    I deleted display_cc23x0r5.a from path simplelink_lowpower_f3_sdk_7_20_00_29\source\ti\display\lib\ticlang\m0p and tried to build Basic_BLE project. CCS studio shows an error that it cannot find file display_cc23x0r5.a.

    I am wondering then how can I change source files and make a new library. 

    If you want to modify these files and tell CCS to compile from source code (new version), then I would suggest including them inside the project explorer.

    Is it mean directly copying source file from SDK path to project path. Even if I did like this, what is the behaviour in this situations? For a function one definition  will be in library and another from source file. How CCS will handle this?

    Thanks!
    Nithin

  • Hello Nithin,

    Could you please share the error logs?

    If it is display you are working on I will try to see the issue as well on my side and be back with an answer.

    BR,

    David.