Hi, In C6748 Starterware, you will find "#ifdef _TMS320C6X" everywhere, but Where is it(_TMS320C6X) defined? May be in CCS, but I can't find where it is defined. Can you give me some help? Thanks! My Email:568470192@qq.com
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, In C6748 Starterware, you will find "#ifdef _TMS320C6X" everywhere, but Where is it(_TMS320C6X) defined? May be in CCS, but I can't find where it is defined. Can you give me some help? Thanks! My Email:568470192@qq.com
Hi Shaojun,
You will not find "#define _TMS320C6X" in any CCS project's code,
Instead,
It will defined automatically by CCS, You have to mention "Family" (Device) type in CCS properties settings when you are creating new CCS project.
If you select "Family" type as "C6000" then '_TMS320C6X' get defined and If you select "Family" type as "ARM' then you wont get '_TMS320C6X' definition.
1) I have created "hello world" CCS project with "Family" type as C6000
2) I have created the same "hello world" CCS project with "Family" type as a ARM,
Please refer the attached screen shot.
Here, You can find "_TMS320C6X" defined codes get freezed if you select "Family" as ARM
You can find "_TMS320C6X" not defined codes/blocks/sections get freezed if you select "Family" as DSP
5102.ARM_DSP_Screenshot.tar.gz
This "_TMS320C6X" definition is used to enable DSP codes in project and if this "_TMS320C6X" is not defined then it could call ARM code in project.