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
2,728 Views
Registered: ‎01-09-2009

Bootloader for ML506

Jump to solution

I need a bootloader program for the ML506 boards to copy my program code from flash to DDR2. Is there any document showing how to make it?

 

Thanks

0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
3,243 Views
Registered: ‎01-09-2009

Re: Bootloader for ML506

Jump to solution

There is no such a document for the ML506 boards. However, I finally managed to do so:

 

1. To create your bootloader program and load flash with your executable elf file, you can follow the steps in pages 4 to 6 in xapp978, v1.1. This document targets Spartan™-3E, but it can be used for ML506 too. For sure, your flash memory and scratchpad memory properties will be different from what are in xapp978, because you are using a different board. If you configure your Flash and DDR2 correctly in your XPS project, then there should not be any problem. Check "conevert to bootloadable SREC" and chose a reasonable offset like 0x01000000.

 

2. When programing flash is done using the steps mentioned in xapp978, the "Program Flash Memory" wizard in SDK says that the flash memory has been programmed.

 

3. Now you need to create a new BIT file that merges system.bit file with the bootloader elf file. To do so, you have to use data2mem program to make the new merged BIT file.

data2mem -bm system_bd.bmm -bd bootloader_0.elf tag microblaze_0 -bt system_old.bit -o b system_integrated.bit

 

4. Now it's time to convert your integrated BIT file to MCS. Use the iMPACT file formatter to do so. You can figure out the settings by yourself.

 

5. Use iMPACT to program your flash memory using the generated MCS file.

 

Make sure the configuration switches on the board are set correctly.

 

View solution in original post

1 Reply
Explorer
Explorer
3,244 Views
Registered: ‎01-09-2009

Re: Bootloader for ML506

Jump to solution

There is no such a document for the ML506 boards. However, I finally managed to do so:

 

1. To create your bootloader program and load flash with your executable elf file, you can follow the steps in pages 4 to 6 in xapp978, v1.1. This document targets Spartan™-3E, but it can be used for ML506 too. For sure, your flash memory and scratchpad memory properties will be different from what are in xapp978, because you are using a different board. If you configure your Flash and DDR2 correctly in your XPS project, then there should not be any problem. Check "conevert to bootloadable SREC" and chose a reasonable offset like 0x01000000.

 

2. When programing flash is done using the steps mentioned in xapp978, the "Program Flash Memory" wizard in SDK says that the flash memory has been programmed.

 

3. Now you need to create a new BIT file that merges system.bit file with the bootloader elf file. To do so, you have to use data2mem program to make the new merged BIT file.

data2mem -bm system_bd.bmm -bd bootloader_0.elf tag microblaze_0 -bt system_old.bit -o b system_integrated.bit

 

4. Now it's time to convert your integrated BIT file to MCS. Use the iMPACT file formatter to do so. You can figure out the settings by yourself.

 

5. Use iMPACT to program your flash memory using the generated MCS file.

 

Make sure the configuration switches on the board are set correctly.

 

View solution in original post