Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE
The following code compiles error free without any warning or error on the duplication of variables ('a' , 'txData', 'rxData'). Can someone from TI Compiler team explain hos this is possible? I chose "build selected files" menu option.
If it is a bug, then it is a major bug!
Version CCS 6.2.1.00014 target tms320F28035
The compiler console output for the file is also pasted below the code.
Thanks
sayee
#include "DSP2803x_Device.h" // DSP2803x Headerfile Include File
enum COMM_details {
MAX_RX_BUF = 4, MAX_TX_BUF = 4, MASTER_INDEX = 14, MY_NODE_INDEX = 15,
};
typedef struct COMMUNICATION_DATA {
Uint16 destAddr: 4;
Uint16 srcAddr: 4;
Uint16 res: 8;
Uint16 value;
Uint16 checksum;
} COMMDATA;
COMMDATA rxData[MAX_RX_BUF], txData[MAX_TX_BUF];
COMMDATA rxData[MAX_RX_BUF], txData[MAX_TX_BUF];
COMMDATA a, a;
//COMMDATA *rxInp = rxData;
//COMMDATA *txOutp = txData;
void
TxIdentify(COMMDATA *txp)
{
txp->srcAddr = MASTER_INDEX;
txp->destAddr = MY_NODE_INDEX;
}
void
TxReset(COMMDATA *txp)
{
txp->srcAddr = MASTER_INDEX;
txp->destAddr = MASTER_INDEX;
}
**** Build of configuration Debug for project tieFloor ****
"D:\\ti\\ccsv6\\utils\\bin\\gmake" -k test.obj
'Building file: ../test.c'
'Invoking: C2000 Compiler'
"D:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/bin/cl2000" -v28 -mt -ml --cla_support=cla0 --include_path="D:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.6/include" --include_path="C:/Users/admin/workspace_v6_1/tieFloor/include" --include_path="D:/ti/controlSUITE/libs/math/IQmath/v160/include" --include_path="D:/ti/controlSUITE/device_support/f2803x/v130/DSP2803x_common/include" --include_path="D:/ti/controlSUITE/device_support/f2803x/v130/DSP2803x_headers/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --preproc_with_compile --preproc_dependency="test.pp" "../test.c"
'Finished building: ../test.c'
' '
**** Build Finished ****