Post Go back to editing

Question on why SC598 SPORT4A TX DMA10 IRQERR on start up

Category: Software

Hi,

I have a SC598 SHARC with DMA descriptor setup in L2 uncached memory..

But, after enable the DMA, the DMA engine will not load the ADDRSTART but with IRQERR..

Then, I toggle the DMA enable bit and it is working as expected..

Do you know the reason behind this ? (Attached is the DMA register dump).

Thanks

Arthur

DMA10_ADDRSTART 00000000 DMA10 Start Address of Current Buffer Register
DMA10_ADDR_CUR 00000200 DMA10 Current Address Register
DMA10_BWLCNT 00000000 DMA10 Bandwidth Limit Count Register
DMA10_BWLCNT_CUR 00000000 DMA10 Bandwidth Limit Count Current Register
DMA10_BWMCNT 00000000 DMA10 Bandwidth Monitor Count Register
DMA10_BWMCNT_CUR 00000000 DMA10 Bandwidth Monitor Count Current Register
DMA10_CFG 06214225 DMA10 Configuration Register
DMA10_DSCPTR_CUR 20033088 DMA10 Current Descriptor Pointer Register
DMA10_DSCPTR_NXT 20033080 DMA10 Pointer to Next Initial Descriptor Register
DMA10_DSCPTR_PRV 20033088 DMA10 Previous Initial Descriptor Pointer Register
DMA10_STAT 00006002 DMA10 Status Register
DMA10_XCNT 00000008 DMA10 Inner Loop Count Start Value Register
DMA10_XCNT_CUR 00000006 DMA10 Current Count (1D) or Intra-row XCNT (2D) Register
DMA10_XMOD 00000100 DMA10 Inner Loop Address Increment Register
DMA10_YCNT 00000040 DMA10 Outer Loop Count Start Value (2D only) Register
DMA10_YCNT_CUR 00000040 DMA10 Current Row Count (2D only) Register
DMA10_YMOD FFFFF904 DMA10 Outer Loop Address Increment (2D only) Register

  • Hi Arthur,

    As mentioned in the ADSP-SC598 HRM, the DMA_STAT.IRQERR bit indicates that the DMA has detected a documented rule violation during DMA programming or operation.

    When an interrupt request error occurs (DMA_STAT.IRQERR), the DMA updates the DMA_STAT.ERRC bit field to identify the type of error.

    Based on the DMA status register shared, the error appears to be a "Configuration Error". This usually indicates that the DMA descriptor or related configuration was not valid when the DMA was enabled.

    Therefore, please ensure that the DMA descriptors are properly configured before enabling DMA.

    Also, please refer the SPORT examples available in the ADSP-SC59x board support package. Please download and install the ADSP-SC59x BSP from the below link.
    download.analog.com/.../ADI_EV-SC59x_EZ-KIT-Rel4.0.0.exe

    Once installed, you can find the SPORT examples from the below mentioned installation path.
    [Installation directory]: \Analog Devices\EV-SC59x_EZ-KIT-Rel4.0.0\EV-SC59x_EZ-KIT\Examples\drivers\sport

    Hope this helps.

    Regards,
    Nandini C

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.