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.

C2000WARE: F2837xD_Dma function declaration incompatible with definition

Part Number: C2000WARE

C2000Ware Version: v4.01

In File: F2837xD_GlobalPrototypes.h, line 243

"extern void DMACH6BurstConfig(Uint16 bsize, int16 srcbstep, int16 desbstep);"

In File: F2837xD_Dma.c, like 820

"void DMACH6BurstConfig(Uint16 bsize,Uint16 srcbstep, int16 desbstep)"

  • Hi,

    I have C2000Ware 4.01.00.00. I am looking at the files and I do not see any conflict.

    //
    // DMA Channel 6
    //
    extern void DMACH6AddrConfig(volatile Uint16 *DMA_Dest,
                                 volatile Uint16 *DMA_Source);
    extern void DMACH6AddrConfig32bit(volatile Uint32 *DMA_Dest,
                                      volatile Uint32 *DMA_Source);
    extern void DMACH6BurstConfig(Uint16 bsize, int16 srcbstep, int16 desbstep);
    extern void DMACH6TransferConfig(Uint16 tsize, int16 srctstep, int16 deststep);

    C:/ti/c2000/C2000Ware_4_01_00_00/device_support/f2837xd/common/source/F2837xD_Dma.c

    //
    // DMACH6BurstConfig - DMA Channel 6 burst size configuration
    //
    void DMACH6BurstConfig(Uint16 bsize, int16 srcbstep, int16 desbstep)
    {
        EALLOW;
    
        //
        // Set up BURST registers:
        //
        DmaRegs.CH6.BURST_SIZE.all = bsize;     // Number of words(X-1) x-ferred in
                                                // a burst.
        DmaRegs.CH6.SRC_BURST_STEP = srcbstep;  // Increment source addr between
                                                // each word x-ferred.
        DmaRegs.CH6.DST_BURST_STEP = desbstep;  // Increment dest addr between each
                                                // word x-ferred.
    
        EDIS;
    }

    I am not sure how you have different parameters datatype conflict. 

    Thanks & Regards,

    Santosh

  • Santosh,

    Hello!  You are right, I was mistaken. On a fresh install, it is correct.  I may have had an older version of the file (there are no versions that I see on the file itself)... Or maybe I edited it accidentally.

    I really think that I borked something when updating C2000Ware as this is not the first issue I found like this. Regardless, this one is user error.  Sorry for wasting time.