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.

MSPM0G3107: Can we modify the SDK codebase and build it as a new SDK?

Part Number: MSPM0G3107


Tool/software:

Currently, we use MSPM0 SDK v2.1.0.03 to build our FreeRTOS codebase. We would like to modify the SDK. How can we configure it step-by-step in CCS IDE?

  • Are you going to use the drivelib?

    If so, there is an example code 'empty_driverlib_src' that you can modify the original code easily.

      

  • We'd like to modify C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers\i2c.c , and we use FreeRTOS as our OS. How can we modify the file and build it in CCS IDE?

  • The fast way is to modify this file directly, but this will take effect on all project using this SDK. Then please backup in advance.

    Or you can copy all these source files to your project and modify the include path one by one. You also need to modify the include path in properties of project.

  • We'd tried to modify the file directly, but we don't know how to build SDK. Could you please tell us how to build it?

  • What is your meaning to build SDK? You can modify the file and build the project directly.

  • We tried directly modifying “C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers\i2c.c” by making random changes to this file (as shown in the attached image) to force a build error for testing purposes. Then, we used CCS to build the project to see if it would build the SDK. However, according to the CCS build log, it did not build anything from the “C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers” directory. Therefore, we would like to ask how to build the SDK.

    看你名字應該懂中文,

    因為我們有試過在直接改"C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers\i2c.c" 把這個檔隨便亂改(如附圖),試著讓他build error來測試,然後用CCS來build project,看有沒有build到sdk

    **** Clean-only build of configuration Debug for project LZ001 ****
    
    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
     
    DEL /F  "LZ001.bin"  "LZ001.out" 
    DEL /F "adc.o" "battery.o" "charger.o" "input.o" "key.o" "led_lamp.o" "main_freertos.o" "pir.o" "system_control.o" "ti_drivers_config.o" "ti_msp_dl_config.o" "uart.o" "user_scenario.o" "watchdog.o" "freertos\ticlang\startup_mspm0g3507_ticlang.o" 
    DEL /F "adc.d" "battery.d" "charger.d" "input.d" "key.d" "led_lamp.d" "main_freertos.d" "pir.d" "system_control.d" "ti_drivers_config.d" "ti_msp_dl_config.d" "uart.d" "user_scenario.d" "watchdog.d" "freertos\ticlang\startup_mspm0g3507_ticlang.d" 
    找不到 V:\project\ti_mspm0g3107\Debug\LZ001.bin
    找不到 V:\project\ti_mspm0g3107\Debug\adc.o
    找不到 V:\project\ti_mspm0g3107\Debug\freertos\ticlang\startup_mspm0g3507_ticlang.o
    找不到 V:\project\ti_mspm0g3107\Debug\adc.d
    找不到 V:\project\ti_mspm0g3107\Debug\freertos\ticlang\startup_mspm0g3507_ticlang.d
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project LZ001 ****
    
    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../adc.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"adc.d_raw" -MT"adc.o"   -o"adc.o" "../adc.c"
    Finished building: "../adc.c"
     
    Building file: "../battery.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"battery.d_raw" -MT"battery.o"   -o"battery.o" "../battery.c"
    Finished building: "../battery.c"
     
    Building file: "../charger.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"charger.d_raw" -MT"charger.o"   -o"charger.o" "../charger.c"
    Finished building: "../charger.c"
     
    Building file: "../input.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"input.d_raw" -MT"input.o"   -o"input.o" "../input.c"
    Finished building: "../input.c"
     
    Building file: "../key.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"key.d_raw" -MT"key.o"   -o"key.o" "../key.c"
    Finished building: "../key.c"
     
    Building file: "../led_lamp.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"led_lamp.d_raw" -MT"led_lamp.o"   -o"led_lamp.o" "../led_lamp.c"
    Finished building: "../led_lamp.c"
     
    Building file: "../main_freertos.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o"   -o"main_freertos.o" "../main_freertos.c"
    Finished building: "../main_freertos.c"
     
    Building file: "../pir.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"pir.d_raw" -MT"pir.o"   -o"pir.o" "../pir.c"
    Finished building: "../pir.c"
     
    Building file: "../system_control.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"system_control.d_raw" -MT"system_control.o"   -o"system_control.o" "../system_control.c"
    Finished building: "../system_control.c"
     
    Building file: "../ti_drivers_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"ti_drivers_config.d_raw" -MT"ti_drivers_config.o"   -o"ti_drivers_config.o" "../ti_drivers_config.c"
    Finished building: "../ti_drivers_config.c"
     
    Building file: "../ti_msp_dl_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"ti_msp_dl_config.d_raw" -MT"ti_msp_dl_config.o"   -o"ti_msp_dl_config.o" "../ti_msp_dl_config.c"
    Finished building: "../ti_msp_dl_config.c"
     
    Building file: "../user_scenario.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"user_scenario.d_raw" -MT"user_scenario.o"   -o"user_scenario.o" "../user_scenario.c"
    Finished building: "../user_scenario.c"
     
    Building file: "../uart.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"uart.d_raw" -MT"uart.o"   -o"uart.o" "../uart.c"
    Finished building: "../uart.c"
     
    Building file: "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"freertos/ticlang/startup_mspm0g3507_ticlang.d_raw" -MT"freertos/ticlang/startup_mspm0g3507_ticlang.o"   -o"freertos/ticlang/startup_mspm0g3507_ticlang.o" "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
    Finished building: "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
     
    Building file: "../watchdog.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"watchdog.d_raw" -MT"watchdog.o"   -o"watchdog.o" "../watchdog.c"
    Finished building: "../watchdog.c"
     
    Building target: "LZ001.out"
    Invoking: Arm Linker
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -D__MSPM0G3507__ -gdwarf-3 -Wl,-m"LZ001.map" -Wl,--heap_size=1024 -Wl,-i"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang/Debug" -Wl,-i"C:/ti/mspm0_sdk_2_02_00_05/source" -Wl,-i"V:/project/ti_mspm0g3107" -Wl,-i"C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="LZ001_linkInfo.xml" -Wl,--rom_model -o "LZ001.out" "./adc.o" "./battery.o" "./charger.o" "./input.o" "./key.o" "./led_lamp.o" "./main_freertos.o" "./pir.o" "./system_control.o" "./ti_drivers_config.o" "./ti_msp_dl_config.o" "./uart.o" "./user_scenario.o" "./watchdog.o" "./freertos/ticlang/startup_mspm0g3507_ticlang.o" "../mspm0g3507.cmd"  -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/drivers/lib/ticlang/m0p/drivers_mspm0g1x0x_g3x0x.a" -Wl,-lfreertos_builds_LP_MSPM0G3507_release_ticlang.lib -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/lib/ticlang/m0p/mspm0g1x0x_g3x0x/driverlib.a" -Wl,-llibc.a 
    Finished building target: "LZ001.out"
     
    Building secondary target: "LZ001.bin"
    Invoking: Arm Hex Utility
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmhex.exe" --diag_wrap=off --binary -o "LZ001.bin"  "LZ001.out" 
    Translating to Binary format...
       "LZ001.out" .intvecs ==> .intvecs
       "LZ001.out" .text ==> .text
       "LZ001.out" .rodata ==> .rodata
       "LZ001.out" .TI.ramfunc ==> .TI.ramfunc
       "LZ001.out" .cinit ==> .cinit
       "LZ001.out" .binit ==> .binit
    Finished building secondary target: "LZ001.bin"
     
    
    **** Build Finished ****
    
    但根據CCS build的log來看完全沒有build到C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers\這個目錄,所以想請教你們如何buid SDK?
    **** Clean-only build of configuration Debug for project LZ001 ****
    
    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
     
    DEL /F  "LZ001.bin"  "LZ001.out" 
    DEL /F "adc.o" "battery.o" "charger.o" "input.o" "key.o" "led_lamp.o" "main_freertos.o" "pir.o" "system_control.o" "ti_drivers_config.o" "ti_msp_dl_config.o" "uart.o" "user_scenario.o" "watchdog.o" "freertos\ticlang\startup_mspm0g3507_ticlang.o" 
    DEL /F "adc.d" "battery.d" "charger.d" "input.d" "key.d" "led_lamp.d" "main_freertos.d" "pir.d" "system_control.d" "ti_drivers_config.d" "ti_msp_dl_config.d" "uart.d" "user_scenario.d" "watchdog.d" "freertos\ticlang\startup_mspm0g3507_ticlang.d" 
    找不到 V:\project\ti_mspm0g3107\Debug\LZ001.bin
    找不到 V:\project\ti_mspm0g3107\Debug\adc.o
    找不到 V:\project\ti_mspm0g3107\Debug\freertos\ticlang\startup_mspm0g3507_ticlang.o
    找不到 V:\project\ti_mspm0g3107\Debug\adc.d
    找不到 V:\project\ti_mspm0g3107\Debug\freertos\ticlang\startup_mspm0g3507_ticlang.d
    Finished clean
     
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project LZ001 ****
    
    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../adc.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"adc.d_raw" -MT"adc.o"   -o"adc.o" "../adc.c"
    Finished building: "../adc.c"
     
    Building file: "../battery.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"battery.d_raw" -MT"battery.o"   -o"battery.o" "../battery.c"
    Finished building: "../battery.c"
     
    Building file: "../charger.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"charger.d_raw" -MT"charger.o"   -o"charger.o" "../charger.c"
    Finished building: "../charger.c"
     
    Building file: "../input.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"input.d_raw" -MT"input.o"   -o"input.o" "../input.c"
    Finished building: "../input.c"
     
    Building file: "../key.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"key.d_raw" -MT"key.o"   -o"key.o" "../key.c"
    Finished building: "../key.c"
     
    Building file: "../led_lamp.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"led_lamp.d_raw" -MT"led_lamp.o"   -o"led_lamp.o" "../led_lamp.c"
    Finished building: "../led_lamp.c"
     
    Building file: "../main_freertos.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o"   -o"main_freertos.o" "../main_freertos.c"
    Finished building: "../main_freertos.c"
     
    Building file: "../pir.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"pir.d_raw" -MT"pir.o"   -o"pir.o" "../pir.c"
    Finished building: "../pir.c"
     
    Building file: "../system_control.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"system_control.d_raw" -MT"system_control.o"   -o"system_control.o" "../system_control.c"
    Finished building: "../system_control.c"
     
    Building file: "../ti_drivers_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"ti_drivers_config.d_raw" -MT"ti_drivers_config.o"   -o"ti_drivers_config.o" "../ti_drivers_config.c"
    Finished building: "../ti_drivers_config.c"
     
    Building file: "../ti_msp_dl_config.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"ti_msp_dl_config.d_raw" -MT"ti_msp_dl_config.o"   -o"ti_msp_dl_config.o" "../ti_msp_dl_config.c"
    Finished building: "../ti_msp_dl_config.c"
     
    Building file: "../user_scenario.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"user_scenario.d_raw" -MT"user_scenario.o"   -o"user_scenario.o" "../user_scenario.c"
    Finished building: "../user_scenario.c"
     
    Building file: "../uart.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"uart.d_raw" -MT"uart.o"   -o"uart.o" "../uart.c"
    Finished building: "../uart.c"
     
    Building file: "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"freertos/ticlang/startup_mspm0g3507_ticlang.d_raw" -MT"freertos/ticlang/startup_mspm0g3507_ticlang.o"   -o"freertos/ticlang/startup_mspm0g3507_ticlang.o" "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
    Finished building: "../freertos/ticlang/startup_mspm0g3507_ticlang.c"
     
    Building file: "../watchdog.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"watchdog.d_raw" -MT"watchdog.o"   -o"watchdog.o" "../watchdog.c"
    Finished building: "../watchdog.c"
     
    Building target: "LZ001.out"
    Invoking: Arm Linker
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -D__MSPM0G3507__ -gdwarf-3 -Wl,-m"LZ001.map" -Wl,--heap_size=1024 -Wl,-i"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang/Debug" -Wl,-i"C:/ti/mspm0_sdk_2_02_00_05/source" -Wl,-i"V:/project/ti_mspm0g3107" -Wl,-i"C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="LZ001_linkInfo.xml" -Wl,--rom_model -o "LZ001.out" "./adc.o" "./battery.o" "./charger.o" "./input.o" "./key.o" "./led_lamp.o" "./main_freertos.o" "./pir.o" "./system_control.o" "./ti_drivers_config.o" "./ti_msp_dl_config.o" "./uart.o" "./user_scenario.o" "./watchdog.o" "./freertos/ticlang/startup_mspm0g3507_ticlang.o" "../mspm0g3507.cmd"  -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/drivers/lib/ticlang/m0p/drivers_mspm0g1x0x_g3x0x.a" -Wl,-lfreertos_builds_LP_MSPM0G3507_release_ticlang.lib -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/lib/ticlang/m0p/mspm0g1x0x_g3x0x/driverlib.a" -Wl,-llibc.a 
    Finished building target: "LZ001.out"
     
    Building secondary target: "LZ001.bin"
    Invoking: Arm Hex Utility
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmhex.exe" --diag_wrap=off --binary -o "LZ001.bin"  "LZ001.out" 
    Translating to Binary format...
       "LZ001.out" .intvecs ==> .intvecs
       "LZ001.out" .text ==> .text
       "LZ001.out" .rodata ==> .rodata
       "LZ001.out" .TI.ramfunc ==> .TI.ramfunc
       "LZ001.out" .cinit ==> .cinit
       "LZ001.out" .binit ==> .binit
    Finished building secondary target: "LZ001.bin"
     
    
    **** Build Finished ****
    

  • Have you used the function from "C:\ti\mspm0_sdk_2_00_00_03\source\ti\drivers\i2c.c"?

    I think you can add a new function in i2c.c and call it in main.c to see if there is build error.

  • We added a new function I2C_temp in i2c.c and declared extern void I2C_temp(void) in i2c.h. We then called it in main_freertos.c as shown in the figure below and built it. However, it has build errors.

    **** Build of configuration Debug for project LZ001 ****
    
    "C:\\ti\\ccs1280\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
     
    Building file: "../pir.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"pir.d_raw" -MT"pir.o"   -o"pir.o" "../pir.c"
    Finished building: "../pir.c"
     
    Building file: "../input.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -I"V:/project/ti_mspm0g3107" -I"C:/ti/mspm0_sdk_2_02_00_05/source/third_party/CMSIS/Core/Include" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/include" -I"C:/ti/mspm0_sdk_2_02_00_05/source" -I"C:/ti/mspm0_sdk_2_02_00_05/kernel/freertos/Source/portable/TI_ARM_CLANG/ARM_CM0" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/posix/ticlang" -I"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang" -I"C:/ti/mspm0_sdk_2_02_00_05/source/ti/display" -D__MSPM0G3507__ -gdwarf-3 -MMD -MP -MF"input.d_raw" -MT"input.o"   -o"input.o" "../input.c"
    Finished building: "../input.c"
     
    Building target: "LZ001.out"
    Invoking: Arm Linker
    "C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -O2 -D__MSPM0G3507__ -gdwarf-3 -Wl,-m"LZ001.map" -Wl,--heap_size=1024 -Wl,-i"C:/Users/robin.chiang/workspace_v12-2/freertos_builds_LP_MSPM0G3507_release_ticlang/Debug" -Wl,-i"C:/ti/mspm0_sdk_2_02_00_05/source" -Wl,-i"V:/project/ti_mspm0g3107" -Wl,-i"C:/ti/ccs1280/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="LZ001_linkInfo.xml" -Wl,--rom_model -o "LZ001.out" "./adc.o" "./battery.o" "./charger.o" "./i2cservertask.o" "./input.o" "./key.o" "./led_lamp.o" "./main_freertos.o" "./pir.o" "./system_control.o" "./ti_drivers_config.o" "./ti_msp_dl_config.o" "./uart.o" "./user_scenario.o" "./watchdog.o" "./freertos/ticlang/startup_mspm0g3507_ticlang.o" "../mspm0g3507.cmd"  -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/drivers/lib/ticlang/m0p/drivers_mspm0g1x0x_g3x0x.a" -Wl,-lfreertos_builds_LP_MSPM0G3507_release_ticlang.lib -Wl,-l"C:/ti/mspm0_sdk_2_02_00_05/source/ti/driverlib/lib/ticlang/m0p/mspm0g1x0x_g3x0x/driverlib.a" -Wl,-llibc.a 
    makefile:164: recipe for target 'LZ001.out' failed
     
     undefined first referenced 
      symbol       in file      
     --------- ---------------- 
     I2C_temp  ./main_freertos.o
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "LZ001.out" not built
    tiarmclang: error: tiarmlnk command failed with exit code 1 (use -v to see invocation)
    gmake[1]: *** [LZ001.out] Error 1
    gmake[1]: Target 'secondary-outputs' not remade because of errors.
    makefile:157: recipe for target 'all' failed
    gmake: *** [all] Error 2
    
    **** Build Finished ****
    


  • Sorry for late reply. What is the status now?

  • We'd tried your suggestion, however, it has build errors.

    Please refer my reply on Nov, 5.