|
META TOPICPARENT |
name="HcalDTC" |
|
|
< < |
|
> > |
|
|
|
|
< < | Update Firmware using AMC13Tool
- Make sure that you have the latest firmware files for both the Spartan and Virtex chips by downloading the latest '.mcs' files from here
, if needed e.g.
cd ~/amc13_mcs
wget http://physics.bu.edu/~wusx/download/AMC13/AMC13T1v0x0017_6vlx130t.mcs
- Go to the directory which contains the desired firmware files and run AMC13Tool from this directory e.g.
cd ~/amc13_mcs
AMC13Tool.exe
- Program the new firmware to flash memory and then load the flash to both chips:
Pick an action (h for menu): pv
Current Virtex firmware version: 0x14
|
> > | Update Firmware using AMC13Tool2 |
| |
|
< < |
- ) AMC13T1v0x000f_6vlx130t.mcs
- ) AMC13T1v0x0010_6vlx130t.mcs
- ) AMC13T1v0x0012_6vlx130t.mcs
- ) AMC13T1v0x0013_6v130t.mcs
- ) AMC13T1v0x0014_6vlx130t.mcs
- ) *AMC13T1v0x0017_6vlx130t.mcs*
|
> > | Make sure that you have the latest firmware files for both the Spartan and Kintex chips by downloading the latest '.mcs' files from here . To be safe, download all of the MCS files for the latest versions (the tool will pick the correct file where there is more than one choice). Put the firmware files in your current directory.
Use the pk command to program the T1 (Kintex) and ps to program the T2 (Spartan). Then use reconfigureFPGAs to force a reload from flash.
Here is an example session where we program the Kintex and Spartan and then reload: |
| |
|
< < | Select desired MCS file. Hit to select best highlighted option
Type '1-6' to select or '0' for menu:
- Check to make sure that the
Current Virtex Firmware Version is not already the latest! If it is, then your firmware does not need to be updated; type '0' to return to the main menu
- Type
<CR> to select the highlighted file, which is the latest-version firmware file found in the current directory
./AMC13T1v0x0017_6vlx130t.mcs
WARNING: you are about to reprogram flash memory. Are you sure? (y)
- Type
'y' to program the flash or hit any other key to quit flash programming
- After the flash has been programmed, you should see the following message:
Flash successfully programmed and verified.
Load the new flash memory to the chips to complete firmware update
- This message indicates that the flash has been successfully programmed and verified! You are now ready to load the new firmware to the chip from flash memory.
- The same exact process should be followed to program the Spartan Flash memory, using the initial command:
Pick an action (h for menu): ps
- Now that your flash memory has been successfully programmed, you are ready to load the flash to your Spartan and Virtex FPGAs:
|
|
|
|
< < | Pick an action (h for menu): L
- WARNING
- you are about to reconfigure both spartan and virtex from flash memory. Are you sure? (y) y Wait 10 seconds to ensure the reconfiguration's completion: 0 Spartan and Virtex have been reconfigured from flash
|
> > | [ehazen@cms1 amc13_mcs]$ ../tools/bin/AMC13Tool2.exe -c ../amc13/etc/amc13/connectionSN43.xml
Using AMC13 software ver:30757
>fv # check current firmware versions
Connected AMC13s
*0: SN: 43 T1v: 0209 T2v: 0021 cf: ../amc13/etc/amc13/connectionSN43.xml
>pk # program the Kintex
chip_type not specified, using default from serial number...
Searching for files with T1 and 7K325T...
1. AMC13T1v0x020d_7k325t.mcs
Enter number for MCS file to select (0 to exit): 1
Programming against file: AMC13T1v0x020d_7k325t.mcs...
Programming AMC13T1v0x020d_7k325t.mcs to flash address 0x400000...
Erasing flash sector at address 0x400000
Erasing flash sector at address 0x440000
...
programming flash at address 0xee9e00
programming flash at address 0xe2e700 % done = 6
programming flash at address 0xd72f00 % done = 13
...
programming flash at address 0x564700 % done = 87
programming flash at address 0x4a8f00 % done = 94
>ps # program the Spartan
chip_type not specified, using default from serial number...
Searching for files with T2, and 6SLX25T...
1. AMC13T2v0x0021_6slx25t.mcs
Enter number for MCS file to select (0 to exit): 1
Programming against file: AMC13T2v0x0021_6slx25t.mcs...
Programming AMC13T2v0x0021_6slx25t.mcs to flash address 0x200000...
Erasing flash sector at address 0x200000
Erasing flash sector at address 0x240000
...
programming flash at address 0x2c3b00
programming flash at address 0x208400 % done = 97
>reconfigureFPGAs # force reload from flash
Best exit/restart tool after 10s or so
>q
[ehazen@cms1 amc13_mcs]$ ../tools/bin/AMC13Tool2.exe -c ../amc13/etc/amc13/connectionSN43.xml
Using AMC13 software ver:30757
>fv # check versions again
Connected AMC13s
*0: SN: 43 T1v: 020d T2v: 0021 cf: ../amc13/etc/amc13/connectionSN43.xml
>
|
| |
|
< < |
|
> > | |
| |
|
< < |
- As we can see, the Virtex Firmware version has been updated to 0x17. Our AMC13 now has new Firmware!
|
|
Initialize AMC13 |