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.

INTERNAL ERROR cg2000.exe experienced a segmentation fault...any ideas

Hi,

A serious problem recently...

I have the following defines:

#define  EINT   asm(" clrc INTM")
#define  DINT   asm(" setc INTM")
#define  NOP    asm(" NOP")

#define FAUCNT_MSK 0x0F00
#define FAUCNT_SHIFT 8

 

#define SET_ARR_INDEX_MASK_SAFE(arr, index, mask, val) {   DINT; \
                                                       NOP; \
                                                       arr[index] &= ~mask; \
                                                       arr[index] |= val; \
                                                       EINT;   \
                                                       NOP;}
#define SET_FAULT_CNT(index, cnt) SET_ARR_INDEX_MASK_SAFE(faurea, index, FAUCNT_MSK, cnt)
and the following function:
 
u08 fauval[MAXFAUCNT];
u08 faucnt[MAXFAUCNT];
void VLVFAU_initFaultCounter(void)
{
    s16 idx = MAXFAUCNT;

    // use while loop to start at the end of the array
    while(--idx >= 0)
    {
        // write the fault counter value back into faurea
        SET_FAULT_CNT(fauval[idx], (faucnt[idx]<<FAUCNT_SHIFT));
    }
}

When I try to compile this I get the following error:

[vlvfau.c] "C:\Program Files\Texas Instruments\C2000 Code Generation Tools 5.2.10\bin\cl2000" -g -pdsw225 -pden -pds9 -o3 -fr"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/Debug" -i"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/../OUT" -i"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/../../src/" -i"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/../../src/SHARED" -i"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/../../src/HW_DRIVER/TMS320F28x/Mo2833x_include" -i"D:/moogsoft/nvce_myENTWICKLUNG/NVCE_Q_CAN/Proj/../../src/HW_DRIVER/TMS320F28x/DSP2833x_include" -d"_DEBUG" -d"CANOPEN" -d"LITTLE_ENDIAN" -d"TMS320xx" -d"PARAM_NAME_AVAILABLE" -d"LARGE_MODEL" -ml -mn -v28 --float_support=fpu32 -mf -@"../../NVCE_Q_CAN/Proj/Debug.lkf" "vlvfau.c"
INTERNAL ERROR: C:\Program Files\Texas Instruments\C2000 Code Generation Tools 5.2.10\bin\cg2000.exe experienced a segmentation fault while
                processing function _VLVFAU_initFaultCounter
This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.

>> Compilation failure


The version of the tools is in attached bitmap file:


 
 
 
 
 
All help gratefully received.
 
Thanks,
 
Vincent Groarke