04-02-2019 03:59 AM
Hi,
I am using ZCU111 to bring up a simple project. The following picture shows block design.
I have connected ILA to monitor the output of rfdc. It shows the error in the last figure and it seems that the ADC is not running and the clcok output was not generated.
I have generated the bitfile and then program the FPGA.
Then run the baremetal applcation with following code to configure the LMX. Is there anything I missed which results in this?
/* Initialize the RFdc driver. */
ConfigPtr = XRFdc_LookupConfig(RFDC_DEVICE_ID);
if (ConfigPtr == NULL) {
return XRFDC_FAILURE;
}
Status = XRFdc_CfgInitialize(RFdcInstPtr, ConfigPtr);
if (Status != XRFDC_SUCCESS) {
return XRFDC_FAILURE;
}
#ifdef XPS_BOARD_ZCU111
printf("\n Configuring the Clock \r\n");
#ifdef __BAREMETAL__
LMK04208ClockConfig(1, LMK04208_CKin);
LMX2594ClockConfig(1, 5120000);
printf("\n Configured the Clock \r\n");
#else
LMK04208ClockConfig(12, LMK04208_CKin);
LMX2594ClockConfig(12, 5120000);
printf("\n Configured the Clock bb \r\n");
#endif
#endif
04-04-2019 12:53 AM