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: 
Adventurer
Adventurer
6,177 Views
Registered: ‎04-06-2012

Adding multiboot (with golden code) to a spartan 6 design in Xilinx ISE

First of all sorry for my bad english, I hope you can still understand what I am asking.

 

Here is a short description of what I want to do:

A system that has a golden version of RTL + microblaze code in a flash memory, and another version of RTL + microblaze code in the same memory but at a specific offset.

 

I already have a custom driver that allow me to write to my flash memory and send a new firmware or microblaze code through ethernet.

 

Thus the only thing missing for my whole system to work is some sort of fallback mechanism where the system reverts to the golden code if something goes wrong when trying to boot from the newer code. I believe this is something that can be done with spartan 6 on xilinx ISE but I'm not sure how to do it. Any help is appreciated.

0 Kudos
4 Replies
Adventurer
Adventurer
6,161 Views
Registered: ‎04-06-2012

Re: Adding multiboot (with golden code) to a spartan 6 design in Xilinx ISE

Ok so I found this link here: https://forums.xilinx.com/t5/Configuration/Spartan-6-Fallback-Multiboot-Configuration/m-p/438250#M225

 

I followed every step but I get stuck on the "merging two mcs" part. I tried to copy the content of my header.mcs into the dual_image.mcs but impact generates an error when I program the flash memory. What is the correct way to merge the two mcs?

0 Kudos
Xilinx Employee
Xilinx Employee
6,137 Views
Registered: ‎10-24-2013

Re: Adding multiboot (with golden code) to a spartan 6 design in Xilinx ISE

Hi @lauziepi

What is the error that you are seeing?

Thanks,Vijay
--------------------------------------------------------------------------------------------
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos
Adventurer
Adventurer
6,099 Views
Registered: ‎04-06-2012

Re: Adding multiboot (with golden code) to a spartan 6 design in Xilinx ISE

When I follow the instructions in the thread I linked, it seems like the header gets compiled for spix8 instead of spix1 (according to information given by impact). I don't know enough about these file formats to fix the problem myself by directly editing the code. Could my issues be caused by this?

0 Kudos
Adventurer
Adventurer
6,095 Views
Registered: ‎04-06-2012

Re: Adding multiboot (with golden code) to a spartan 6 design in Xilinx ISE

While we're at it, where can I find information on the instruction codes found in the header? I'm talking about the opcodes found in UG380, page 134. For example:

 

       3261: Type 1 Write 1 Words to GENERAL_1

I haven't been able to find the list of the opcodes used to write to certain registers. Knowing the register address doesn't seem to help with this.

0 Kudos