Difference: AMC13ToolFlash (3 vs. 4)

Revision 427 Oct 2015 - DanielArcaro

Line: 1 to 1
 
META TOPICPARENT name="AMC13ProductionTesting"
Changed:
<
<

Programming AMC13 Flash with AMC13ToolFlash

>
>

Programming AMC13 Flash with AMC13ToolFlash

 
Changed:
<
<
Instructions for programming flash with AMC13ToolFlash. Flash sectors should be programmed using the latest firmware for all sectors. These instructions are for initial programming of the AMC13 or for recovery of AMC13 after flash has been corrupted. This tool is not meant for typical firmware updates of a working AMC13. Firmware update should follow instructions using AMC13Tool2: AMC13Tool2Recipes#UpdateFirmware
>
>
These instructions are for initial programming of the AMC13 or for recovery of AMC13 after flash has been corrupted. This tool is not meant for typical firmware updates of a working AMC13. Firmware update should follow instructions using AMC13Tool2: AMC13Tool2Recipes. Flash sectors should be programmed using the latest firmware for all sectors.
 

Prerequisites:

Changed:
<
<
>
>
  • Programmed T2 (Spartan) FPGA with appropriate bit or mcs file (with iMPACT) ( FlashMemory )
 
  • Serial Number of AMC13 set (according to jumpers on T2) and IP addresses known (default SN-based IP addresses: IPaddressAssignment)
Changed:
<
<
  • Working version of AMC13ToolFlash (from cactus SVN)
  • Environmental variable AMC13_ADDRESS_TABLE_PATH set to the directory with AMC13 address tables (same path as for AMC13Tool2)
>
>
  • Working version of AMC13ToolFlash (from cactus SVN)
  • Environmental variable AMC13_ADDRESS_TABLE_PATH set to the directory with AMC13 address tables (same path as for AMC13Tool2)
 

Getting Firmware:

Changed:
<
<
    Flash Header changes very rarely and there should always be a file named AMC13T2Header_6slx45t.mcs at the link here (substitute lx25t if you have an old T2 board).

    Golden T2 is the backup for the T2 in case the main image gets corrupted. This is named AMC13T2Goldenv0xfff8_6slx45t.mcs where "fff8" is the version number in hex and smaller values indicate newer versions. To find the latest, go to http://physics.bu.edu/~wusx/download/AMC13/?C=M;O=D and find the newest file named as above.

    Spartan is the newest AMC13XGT2... file from http://ohm.bu.edu/~dzou/firmware.cgi.

    Kintex/Virtex is the newest AMC13XGT1... file from http://ohm.bu.edu/~dzou/firmware.cgi.

>
>
To get firmware for all sectors look here. The firmware database is the easiest place to find the most up to date versions for any chip type.
 

Programming instructions:

Changed:
<
<
Make sure that you have the latest firmware files for both the Spartan and Kintex chips by downloading the latest '.mcs' files from here. Make sure to the match mcs files which have the correct chip type for T2 (lx25t vs lx45t). Put the firmware files in your current directory.
>
>
To get firmware for both the Spartan and Kintex chips download the latest '.mcs' files from here. The firmware database is the easiest place to find the most up to date versions for any chip type. Match mcs files with the chip type on your card for T2 (lx25t vs lx45t). Put the firmware files in your current directory.
 
Running the AMC13ToolFlash
Line: 38 to 30
 After pressing enter a prompt will appear to pick a mcs file located in your current directory like below:
Changed:
<
<
Address table path /home/djarcaro/cms/amc13/amc13/etc/amc13/ set from AMC13_ADDRESS_TABLE_PATH
>
>
Address table path yourpath.../amc13/amc13/etc/amc13/ set from AMC13_ADDRESS_TABLE_PATH
 Using control hub true Created URI from IP address: T2: chtcp-2.0://localhost:10203?target=192.168.1.144:50001
Line: 48 to 40
 Verifying flash header Serial Number: 55
Changed:
<
<
1. AMC13T2v0x0029_6slx45t.mcs 2. AMC13T2v0x002d_6slx45t.mcs 3. AMC13T2Header_6slx45t.mcs 4. AMC13T2Golden_6slx45t.mcs
>
>
1. AMC13T2Header_6slx45t.mcs
  Enter number for MCS file to select (0 to exit):
Changed:
<
<
Select the correct mcs file corresponding to the prompt. Here the command is Verify Flash Header (-f vfh) so 3 would be the correct mcs file.

Once you have all sector programmed, run the flash tool with the -r option to reload the flash memory (or power cycle the board)(NOTE: Do NOT power cycle board until all sectors are programmed successfully, do so will erase the any bit files programmed to T2 and will attempt to apply the firmware currently in flash, which can cause errors if there is nothing available from a given flash sector).

>
>
Input the number corresponding to the mcs file you want to use from the prompt. Here the command is Verify Flash Header (-f vfh) so there is only one file, but multiple files will show up if more than one version is in the current directory.
 
Added:
>
>
Once you have all sectors programmed, run the flash tool again with the -r option to reload the flash memory (or power cycle the board)(NOTE: Do NOT power cycle board until all sectors are programmed successfully, do so will erase the any bit files programmed to T2 and will attempt to apply the firmware currently in flash, which can cause errors if there is nothing available from a given flash sector).
  The flash sectors should be programmed in the following order if not using the pa option:
Changed:
<
<
Order Type
<-- -->
Sorted ascending
Sample File Name Programming Command
2 Flash Golden (Backup Spartan) amc13T2Goldenv0xfff8_6slx45t.mcs AMC13ToolFlash.exe -f pbs
1 Flash Header AMC13T2Header_6slx45t.mcs AMC13ToolFlash.exe -f pfh
4 Kintex (T1) AMC13T1v0x8126_7k325t.mcs AMC13ToolFlash.exe -f pk
3 Spartan (T2) AMC13T2v0x002d_6slx45t.mcs AMC13ToolFlash.exe -f ps
>
>
AMC13ToolFlash.exe -c SN/c -f pfh -f pbs -f ps -f pk (Or run them seperately like in the below table)
 
Added:
>
>
Order Type Sample File Name Programming Command
1 Flash Header AMC13T2Header_6slx45t.mcs AMC13ToolFlash.exe -c SN -f pfh
2 Flash Golden (Backup Spartan) amc13T2Goldenv0xfff8_6slx45t.mcs AMC13ToolFlash.exe -c SN -f pbs
3 Spartan (T2) AMC13T2v0x002d_6slx45t.mcs AMC13ToolFlash.exe -c SN -f ps
4 Kintex (T1) AMC13T1v0x8126_7k325t.mcs AMC13ToolFlash.exe -c SN -f pk
 
Changed:
<
<
NOTE :
>
>
Last Edited
 
Added:
>
>
-- DanielArcaro - 27 Oct 2015
  -- DavidZou - 09 Apr 2015
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback