12-12-2019 08:14 AM
I am running Vivado 2019.1 and SDK 2019.1. I implemented the rf-dc-eval-tool-2019-1/pl/NON_MTSDesign_8x8 and exported the hardware. While trying to compile on the SDK the Bare Metal Example of xrfdc_read_write_example.c, I am getting the error "undefined reference to LMK04208ClockConfig".
As suggested in the ZCU111 RFDC API Example Design post, I added the #define XPS_BOARD_ZCU111 at the top of the file and also built the bsp before the application and can't get rid of this error.
If anybody would have a suggestion on how to help me get rid of this error I would greatly appreciate it.
12-12-2019 08:40 AM
Did you included the xrfdc.h and xrfdc_clk.c files in the application (These files are available in src folder ....SDK\2019.1\data\embeddedsw\XilinxProcessorIPLib\drivers\rfdc_v6_0\src? Please check on this . I remember i too encountered with same issue and if i remember correctly it is resolved by adding these files.
12-12-2019 09:03 AM
Could this be related to the version of libmetal I am using? I only have the option of selecting libmetal 2.0 from within the SDK.
12-12-2019 11:52 AM
I imported xrfdc_clk.h and xrfdc_clk.c from the examples folder and trying to see if it was a problem with any missing #define, I added typos right before the function prototype for LMK04208ClockConfig() and an error was reported. This means that the compiler was including xrfdc_clk.h correctly where the function prototype is. Then, I deleted the typos from the xrfdc_clk.h file and placed them right before the function definition for LMK04208ClockConfig(). When I built the project, the typo right before the definition of LMK04208ClockConfig() was never reported but I got the same old error: "undefined reference to LMK04208ClockConfig".
Any help would be greatly appreciated.