I am working with an AM5728 IDK which has been modified to connect to an adc over McASP4. I am trying to use the MCASP_Audio_evmAM572x_c66ExampleProject as a starting point and modify it to run MCASP4 as a slave to get data from the ADC.
When I run my project on the IDK it is getting stuck in an infinite while loop in the McASP3_Enable() function. I had converted this to McASP4_Enable and it wasn't working so I tired running the original McASP3_Enable and it gets stuck in the same place. This is where it gets stuck:
/* McASP3 Module Control */
HW_WR_FIELD32(CSL_DSP_L4PER_CM_CORE_REGS+CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER2_MCASP3_CLKCTRL_REG, \
CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER2_MCASP3_CLKCTRL_REG_MODULEMODE, \
CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER2_MCASP3_CLKCTRL_REG_MODULEMODE_ENABLE);
while (HW_RD_REG32(CSL_DSP_L4PER_CM_CORE_REGS+CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER2_MCASP3_CLKCTRL_REG) != \
CSL_L4PER_CM_CORE_COMPONENT_CM_L4PER2_MCASP3_CLKCTRL_REG_MODULEMODE_ENABLE) ;
I had run this example project successfully on an evmAM572x before modifying it to run as a slave on McASP4. The point in the code where it gets stuck is before it reaches most of my changes. Is there something inherently different about the IDK compared with the EVM which could be causing this issue?