UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
6,826 Views
Registered: ‎05-28-2014

How to program mcs/bit using SDK flash tool ?

Hello,

 

How should I program .mcs file (or .bit file) using SDK flash tool ?

I have tried it and it does not work ( but same .mcs file programmed in another xilinx hw tool - works)

What should I put in start address ?

Should I enable anything in the window options ?

Why the tool does not recognize .mcs file (only .bin, elf) ?

 

Thank you,

Ran

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
6,821 Views
Registered: ‎08-02-2007

Re: How to program mcs/bit using SDK flash tool ?

Hi,

 

If you would want to program the BPI Flash memory for a Microblaze system you can refer to

http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_3/SDK_Doc/tasks/sdk_t_program_flash.htm

 

If this is for Zynq, refer to page 45 of this document

http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_3/ug873-zynq-ctt.pdf

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
6,802 Views
Registered: ‎05-28-2014

Re: How to program mcs/bit using SDK flash tool ?

Hi,

 

Thank you very much for the reply.

I am trying to program .mcs or .bit file (which contain the fpga, and application). It works when we program it using iMPACT, but on trying to program the flash with the flash tool (in sdk) , it does not work.

 

Can you please advise,

Ran

0 Kudos
Xilinx Employee
Xilinx Employee
6,794 Views
Registered: ‎08-02-2007

Re: How to program mcs/bit using SDK flash tool ?

Hi Ran

 

We would need some more details. Is it a Serial Flash/BPI Flash?

 

Is there a DDR in your design?

 

If this is a BPI flash, refer to the procedure mentioned here. http://forums.xilinx.com/xlnx/attachments/xlnx/EDK/5498/1/Flashwriter_101.pdf

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
6,773 Views
Registered: ‎05-28-2014

Re: How to program mcs/bit using SDK flash tool ?

Hi,

 

I'm not sure I know the answers for this questions.

In xparameters.h I see:


/* Xilinx EDK Parallel Flash Library (XilFlash) User Settings */
#define XPAR_XFL_DEVICE_FAMILY_INTEL

and system.mss is as following:


PARAMETER VERSION = 2.2.0


BEGIN OS
PARAMETER OS_NAME = standalone
PARAMETER OS_VER = 3.11.a
PARAMETER PROC_INSTANCE = microblaze_0
PARAMETER STDIN = debug_module
PARAMETER STDOUT = debug_module
END


BEGIN PROCESSOR
PARAMETER DRIVER_NAME = cpu
PARAMETER DRIVER_VER = 1.15.a
PARAMETER HW_INSTANCE = microblaze_0
END


BEGIN DRIVER
PARAMETER DRIVER_NAME = axicdma
PARAMETER DRIVER_VER = 2.03.a
PARAMETER HW_INSTANCE = axi_cdma_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = intc
PARAMETER DRIVER_VER = 2.06.a
PARAMETER HW_INSTANCE = axi_intc_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = tmrctr
PARAMETER DRIVER_VER = 2.05.a
PARAMETER HW_INSTANCE = axi_timer_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = tmrctr
PARAMETER DRIVER_VER = 2.05.a
PARAMETER HW_INSTANCE = axi_timer_1
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = uartlite
PARAMETER DRIVER_VER = 2.01.a
PARAMETER HW_INSTANCE = debug_module
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = fabric_mm_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = fabric_mm_1
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = emc
PARAMETER DRIVER_VER = 3.01.a
PARAMETER HW_INSTANCE = generic_external_memory
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = iic
PARAMETER DRIVER_VER = 2.08.a
PARAMETER HW_INSTANCE = generic_iic_bus
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = spi
PARAMETER DRIVER_VER = 3.06.a
PARAMETER HW_INSTANCE = generic_spi
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_d_bram_ctrl_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_d_bram_ctrl_1
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_d_bram_ctrl_2
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_i_bram_ctrl_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_i_bram_ctrl_1
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = bram
PARAMETER DRIVER_VER = 3.03.a
PARAMETER HW_INSTANCE = microblaze_i_bram_ctrl_2
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = uart_0
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = uart_1
END

BEGIN DRIVER
PARAMETER DRIVER_NAME = generic
PARAMETER DRIVER_VER = 1.00.a
PARAMETER HW_INSTANCE = uart_2
END


BEGIN LIBRARY
PARAMETER LIBRARY_NAME = xilflash
PARAMETER LIBRARY_VER = 3.04.a
PARAMETER PROC_INSTANCE = microblaze_0
END

 

 

Please advise,

Ran

 

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
6,735 Views
Registered: ‎08-02-2007

Re: How to program mcs/bit using SDK flash tool ?

hi 

 

looking at the mss it looks that there is no external memory. so you can still use the pdf that i referred in the last post.

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
6,726 Views
Registered: ‎10-23-2014

Re: How to program mcs/bit using SDK flash tool ?

 

MicroController user 8-bit memory, where as flash usea 16-bit memory.

 

so when using iMPACT if you specify the offset address from where it should start storing your .srec file(elf converted to serc) as 0x00500000, then theoffset address that you would have to specify in sdk bootloader will be 0x00A00000.

 

If you are facing problem when programming using sdk tools: try deleting .bit, .elf, .srec, flash.tcl files and regenerate them.

 

Now to program a fresh. It should work. I faced the same problem.  

0 Kudos