Hello,
This question has already been asked, but I didn't see any reply. Is it possible to develop software for UCD3138 in Code Composer Studio 5.1? If so, where can I find header and all other necessery files?
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.
Hi Sasa,
I've never tested with ccsv5.1 before. The UCD3138 example code are developed with CCSv3.3. But you can try the following to see if it works:
1. Open up a new project in your ccs, add all the .c files and .h files to the project. I
2. Edit the project build options. Here is the original .prj file in UCD3138 example code. I marked the important lines in red. These should be set in the build options in your new project.
; Code Composer Project File, Version 2.0 (do not modify or remove this line)
[Project Settings]
ProjectDir="Y:\dp_firmware\Cyclone 2\Training PMBus\Lab 01 hello world\"
ProjectType=Executable
CPUFamily=TMS470R1X
Tool="Compiler"
Tool="CustomBuilder"
Tool="Linker"
Config="Debug"
Config="Release"
[Source Files]
Source="C:\CCStudio_v3.3\tms470\cgtools\lib\rts32tiabi.lib" - change to CCSv5.1 directory
Source="clear_program_flash.c"
Source="cyclone_global_variables_defs.c"
Source="init_pmbus.c"
Source="interrupts.c"
Source="load.asm"
Source="main.c"
Source="pmbus.c"
Source="pmbus_handler.c"
Source="pmbus_manuf_info_commands.c"
Source="pmbus_manuf_specific_commands.c"
Source="standard_interrupt.c"
Source="..\Linker Files\cyclone_headers.cmd"
Source="cyclone.cmd"
["Debug" Settings]
FinalBuildCmd=hex470 -x -memwidth 8 .\debug\UCD3138_Lab_01.out;Run=Always
["Compiler" Settings: "Debug"]
Options=-g -k -ppa -ppc -al -as -o2 -ea.asm -fr"$(Proj_dir)\Debug" -fs"$(Proj_dir)\Debug" -i"../header files" -d"_DEBUG" -mt -mv4 --abi=tiabi --endian=big
["Compiler" Settings: "Release"]
Options=-o3 -fr"$(Proj_dir)\Release" -mv4 --abi=tiabi
["Linker" Settings: "Debug"]
Options=-c -heap10 -m".\UCD3138_Lab_01.map" -o".\Debug\UCD3138_Lab_01.out" -stack200 -w -x
["Linker" Settings: "Release"]
Options=-c -m".\Release\volume1.map" -o".\Release\volume1.out" -w -x
["clear_program_flash.c" Settings: "Debug"]
Options="Compiler" +{--code_state=32} -{-mt}
["interrupts.c" Settings: "Debug"]
Options="Compiler" +{--code_state=32} -{-mt}
["standard_interrupt.c" Settings: "Debug"]
Options="Compiler" +{--code_state=32} -{-mt}
["..\Linker Files\cyclone_headers.cmd" Settings: "Debug"]
LinkOrder=1
["..\Linker Files\cyclone_headers.cmd" Settings: "Release"]
LinkOrder=1
["cyclone.cmd" Settings: "Debug"]
LinkOrder=1
["cyclone.cmd" Settings: "Release"]
LinkOrder=1
Thanks,
Fan