We trying to configure the C6727 to trigger INT13 on an event from port SPI0_SCS/I2C1_SCL.
This is what we are doing:
#define CFGMCASP0_REG (*(UINT32 *) 0x40000018)
#define DMAX_MCASP0ERR (*(UINT32 *) 0x61008068)
#define DMAX_DEPR_REG (*(UINT32 *) 0x60000008)
#define DMAX_DEER_REG (*(UINT32 *) 0x6000000C)
#define DMAX_DEDR_REG (*(UINT32 *) 0x60000010)
#define DMAX_DEHPR_REG (*(UINT32 *) 0x60000014)
#define DMAX_DELPR_REG (*(UINT32 *) 0x60000018)
#define DMAX_DEFR_REG (*(UINT32 *) 0x6000001C)
#define DMAX_DER0_REG (*(UINT32 *) 0x60000034)
#define DMAX_DER1_REG (*(UINT32 *) 0x60000054)
#define DMAX_DER2_REG (*(UINT32 *) 0x60000074)
#define DMAX_DER3_REG (*(UINT32 *) 0x60000094)
CFGMCASP0_REG = 4;
DMAX_MCASP0ERR = 0x00060007;
DMAX_DEPR_REG = 0x04000000;
DMAX_DEHPR_REG = 0x04000000;
DMAX_DEER_REG = 0x04000000;
We see event flag register go high before we enable the event register as expected.
When the event register is set, we do not reliable see the appropriate event (26) register go high.
No interrupts are generated.
We can force interrupts through the IFR register, but not through the external SPI0_SCS/I2C1_SCL port using the approach outlined above.
Any ideas as to what we are missing?