Hi, I am a student in electrical engineering and have to program a DSP. My prof gave me a DSP board and two manuals (TMS320C5x and TMS320C5x-DSP Starter Kit). Unfortunately he hadn't any software so I downloaded some StarterKit (rev102) software from some server (I think it was TI server). It includes some examples written in assmebler and an assembler as well as a debugger. Due to the fact that I am not very experienced in programming a neat assembler code I searched for a C compiler in google. After some hours of searching I found the Code Composer Studio C2000 and downloaded the 90 days trial version. I activated an option so that after compiling the CCS2000 doesn't delete the asm files. Then I took the asm files and used the assembler from the StarterKit software. But it cannot interpret some assembler code. Then I opened the asm file and recognized that there were commands like MOV and some others. But I never saw a MOV command in the asm files from the StarterKit or manuals. Hmm....now I am a bit lost. Is there maybe another C compiler for that specific DSP Starter Kit board? THX for helping Rene |
|
TMS320C5x and C Programming
Started by ●January 6, 2004
Reply by ●January 7, 20042004-01-07
Hello Rene It has been a very long time since I programmed a C2x/C5x, but I think the same compiler shell is being used for all C2x/C2xx/C5x/C54xx/C55xx products. But rather than defaulting to the C2x code set as it was in the olden days, the new default is C54xx or C55xx. I cant even recall the name of the C-shell that is used to launch the tools anymore, but you can gather up a file containing the options rather easily using the following command. (Substitute CL30 for the C-shell that you have) CL30 (no arg) lists the command line arguments to the screen CL30 >OPTIONS.CAP Pipes the arguments to the file "OPTIONS.CAP" From here you should see a list of arguments that start with -vXX where XX is the appropriate chip number. Slip -v50 in here and you might be up and running. Just remember to use the -v50 on everything you build since the linker would later (hopefully loudly) complain that you are mixing divices in the build. But then again, maybe the C2x/C5x compiler has not been mixed in with the C54xx/C55xx Another option (but this will cost $150) might be the VC33 DSK. This DSK is built around a much more capable TMS320VC33-150 Mflop device, stereo 20b 48Khz codec, 3Mb of SRAM (1Mb internal) and external FeRAM flash. It is further 'fleshed out' with the TI-COFF code gen tools, DSK code gen tools, 40-50 examples and demos and more. And... maybe most importantly... Win-anything compatible. If interested, follow the links in my signature file. Best regards, Keith Larson ============================================= At 04:39 PM 1/6/04 -0000, you wrote: Hi, I am a student in electrical engineering and have to program a DSP. My prof gave me a DSP board and two manuals (TMS320C5x and TMS320C5x-DSP Starter Kit). Unfortunately he hadn't any software so I downloaded some StarterKit (rev102) software from some server (I think it was TI server). It includes some examples written in assmebler and an assembler as well as a debugger. Due to the fact that I am not very experienced in programming a neat assembler code I searched for a C compiler in google. After some hours of searching I found the Code Composer Studio C2000 and downloaded the 90 days trial version. I activated an option so that after compiling the CCS2000 doesn't delete the asm files. Then I took the asm files and used the assembler from the StarterKit software. But it cannot interpret some assembler code. Then I opened the asm file and recognized that there were commands like MOV and some others. But I never saw a MOV command in the asm files from the StarterKit or manuals. Hmm....now I am a bit lost. Is there maybe another C compiler for that specific DSP Starter Kit board? THX for helping Rene +--------------------------+ | Keith Larson | | Member Group Technical Staff | | Texas Instruments Incorporated | | | | 281-274-3288 | | | | www.micro.ti.com/~klarson (TI internal web only) | |--------------------------+ | TMS320C3x/C4x/VC33 Applications | | | | TMS320VC33 | | The lowest cost and lowest power 500 w/Mflop | | floating point DSP on the planet! | | | | Web: focus.ti.com/docs/toolsw/folders/print/tmdsdsk33.html | | Code: www-s.ti.com/sc/psheets/sprc147/sprc147.zip | +--------------------------+ |