cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
aminfar1
Explorer
Explorer
2,842 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
aminfar1
Explorer
Explorer
3,357 Views
Registered: ‎01-09-2009

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
aminfar1
Explorer
Explorer
3,358 Views
Registered: ‎01-09-2009

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