data striding problem

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I was just trying to use data striding together with the AFEC0. However, in AS7 the whole debugging 'crashed' when I set either microblock or block striding to a value > 0. AS7 comes with a window saying 'Application is in brake mode'. So far the only way to continue is to stop the debugging.

 

Here is my config:

        xdmac_rx_cfg.mbr_ubc = 2;

        xdmac_rx_cfg.mbr_da = (uint32_t)&analog_input_raw;

        xdmac_rx_cfg.mbr_sa = (uint32_t)&AFEC0->AFEC_LCDR;
        xdmac_rx_cfg.mbr_cfg = XDMAC_CC_TYPE_PER_TRAN |
        XDMAC_CC_MBSIZE_SINGLE |
        XDMAC_CC_DSYNC_PER2MEM |
        XDMAC_CC_CSIZE_CHK_1 |
        XDMAC_CC_DWIDTH_HALFWORD|
        XDMAC_CC_SIF_AHB_IF1 |
        XDMAC_CC_DIF_AHB_IF0 |
        XDMAC_CC_SAM_FIXED_AM |
        XDMAC_CC_DAM_UBS_AM  |
        XDMAC_CC_PERID(XDAMC_CHANNEL_HWID_AFEC0);

The goal of this config should be to have 1 byte 'gap' between the two AFEC values after DMA transfer is complete.

 

Anyone had success using data striding?

 

Regards

Markus