When I use the Flash driver for the OPB or PLB EMC Controller, the XFlashIntel_Initialize() function call returns XST_FLASH_NOT_SUPPORTED, not allowing the driver to continue. In the "xparameters.h" file, the following attributes are set to zero:
#define XPAR_PLB_EMC_0_NUM_PARTS 0
#define XPAR_PLB_EMC_0_PART_WIDTH 0
#define XPAR_PLB_EMC_0_PART_MODE 0
How do I remedy this?
The driver call fails due to these attributes not being set. However, they can be modified in software code. This can be accomplished by using the XFlash_LookupConfig() function to return a pointer to the configuration table pointer and modify its values with the appropriate part, width, and mode before calling XFlash_Initialize().
More information can be found in the "xflash_g.c" driver file.