cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor
Visitor
1,960 Views
Registered: ‎08-19-2010

Problem of using Flash_Initialize on ML605

I have some problem when use XFlash_Initialize on ML605 under ISE12.1
I have a MicroBlaze, UART, xps_mch_emc and other necessary components in the XPS system. Then I exported the design to SDK.
I wrote the following code:
Without calling  XFlash_Initialize, I can print out the hello on my screen. But with the XFlash_Initialize, the program just crash without any info. I went to the debug mode, it just said:"No source available for "" ".
Can you give me some suggestion? If you need any other files, please let me know.
  
Thank you very much for your help,
Shirley
 
----------------------------------------------------
my application code:

int main (void) {

int result;

XFlash TestFlash;

XFlash* PTestFlash;

xil_printf("hello!\n");

PTestFlash = &TestFlash;

result = XFlash_Initialize(&TestFlash);

if(result != XST_SUCCESS)

xil_printf("flash initialization unsuccessful result = %d\n", result);

 }
 
----------------------------------------
The following are from the xparameters.h

/* Definitions for peripheral MEM_BUS */

#define XPAR_MEM_BUS_MEM0_BASEADDR 0x86000000

#define XPAR_MEM_BUS_MEM0_HIGHADDR 0x87FFFFFF

The above is the address for xps_mch_emc.

#define XPAR_XFL_DEVICE_FAMILY 1

#define XPAR_XFL_PART_MODE 2

#define XPAR_XFL_NUM_PARTS 2

#define XPAR_XFL_PART_WIDTH 2

#define XPAR_XFL_BASE_ADDRESS 0x0

#define XPAR_XFL_PLATFORM_FLASH 0

 

 

Shirley
0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
1,919 Views
Registered: ‎08-01-2007

Re: Problem of using Flash_Initialize on ML605

have you selected the Flash library in OS&Libraries settings?

0 Kudos