Programming Sakura-X

Hi everyone,

I have a problem with programming the Sakura-X. I can program both of the control and attack FPGAs, but I can only program the FLASH before the control FPGA. Whenever I try to program the FLASH before the attack FPGA, I get an error. I’m using Xilinx ISE 14.7 and ISE iMPACT 14.7 to program the FPGAs and the FLASHs. I have attached the configuration file I choose for the flash and the errors that I get.

I would appreciate any help.

--------Error that I get-----------

[code]Welcome to iMPACT
iMPACT Version: 14.7
// *** BATCH CMD : loadProjectFile -file “C:\Xilinx\14.7\ISE_DS\auto_project.ipf”
Enumerating cables. Please wait.
Connecting to cable (Usb Port - USB21).
Checking cable driver.
Driver file xusb_emb.sys found.
Driver version: src=1029, dest=1029.
Driver windrvr6.sys version = 10.2.1.0. WinDriver v10.21 Jungo (c) 1997 - 2010 Build Date: Aug 31 2010 x86_64 64bit SYS 14:14:44, version = 1021.

Found cable - > ESN = 0000128F11E601.

Connecting to cable (Usb Port - USB22).
Checking cable driver.
Driver file xusb_emb.sys found.
Driver version: src=1029, dest=1029.
Driver windrvr6.sys version = 10.2.1.0. WinDriver v10.21 Jungo (c) 1997 - 2010 Build Date: Aug 31 2010 x86_64 64bit SYS 14:14:44, version = 1021.
Connecting to cable (Usb Port - USB21).
Checking cable driver.
Driver file xusb_emb.sys found.
Driver version: src=1029, dest=1029.
Driver windrvr6.sys version = 10.2.1.0. WinDriver v10.21 Jungo (c) 1997 - 2010 Build Date: Aug 31 2010 x86_64 64bit SYS 14:14:44, version = 1021.
Cable PID = 0008.
Max current requested during enumeration is 300 mA.
Type = 0x0005.
Cable Type = 3, Revision = 0.
Setting cable speed to 6 MHz.
Cable connection established.
Firmware version = 2401.
File version of C:/Xilinx/14.7/ISE_DS/ISE/data/xusb_xp2.hex = 2401.
Firmware hex file version = 2401.
PLD file version = 200Dh.
PLD version = 200Dh.
Type = 0x0005.
ESN option: 0000128F11E601.
‘1’: Loading file ‘C:\Users\Etbaba\Dropbox2\Dropbox\CMU\research\Cryptography\DPA\SAKURA-X\sasebo_giii_materials\sasebo_giii\sasebo_giii_aes.bit’ …
done.
INFO:iMPACT:1777 -
Reading C:/Xilinx/14.7/ISE_DS/ISE/kintex7/data/xc7k160t.bsd…
INFO:iMPACT - Using CseAdapterBSDevice
INFO:iMPACT:2257 - Startup Clock has been changed to ‘JtagClk’ in the bitstream stored in memory,
but the original bitstream file remains unchanged.
UserID read from the bitstream file = 0xFFFFFFFF.
Data width read from the bitstream file = 1.
INFO:iMPACT:501 - ‘1’: Added Device xc7k160t successfully.


INFO:iMPACT - A CFI file is not detected. To ensure correct and safe configuration,
Please make sure a CFI file is present in the same directory as the PROM file,
or, regenerate the PROM file with the latest software.
Active mode is BS
// *** BATCH CMD : setMode -ss
// *** BATCH CMD : setMode -sm
// *** BATCH CMD : setMode -hw140
// *** BATCH CMD : setMode -spi
// *** BATCH CMD : setMode -acecf
// *** BATCH CMD : setMode -acempm
// *** BATCH CMD : setMode -pff
// *** BATCH CMD : setMode -bs
// *** BATCH CMD : attachflash -position 1 -bpi “SPANSIONS29GL512P”
// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setMode -bs
// *** BATCH CMD : setMode -bs
Project: ‘C:\Xilinx\14.7\ISE_DS\auto_project.ipf’ loaded.
INFO:iMPACT - Current time: 09-Jun-15 13:20:09
// *** BATCH CMD : Program -p 1 -dataWidth 16 -rs1 NONE -rs0 NONE -bpionly -e -v -loadfpga
PROGRESS_START - Starting Operation.
Maximum TCK operating frequency for this device chain: 66000000.
Validating chain…
Boundary-scan chain validated successfully.
1: Device Temperature: Current Reading: 30.69 C, Min. Reading: 29.21 C, Max. Reading: 31.18 C
1: VCCINT Supply: Current Reading: 0.993 V, Min. Reading: 0.993 V, Max. Reading: 0.996 V
1: VCCAUX Supply: Current Reading: 1.799 V, Min. Reading: 1.796 V, Max. Reading: 1.799 V
Core is not loaded.
BPI SLAVE TYPE in Cse_Operate.c is 0
INFO:iMPACT - Downloading C:\Xilinx\14.7\ISE_DS\ISE\data\cse\cseflash\kintex7\xc7k160t_xsdbbpi.cor core file.
INFO:iMPACT - Creating XC7K160T device.
PROGRESS_START - Starting Operation.
‘1’: Programming device…
Match_cycle = NoWait.
Match cycle: NoWait
LCK_cycle = NoWait.
LCK cycle: NoWait
done.
INFO:Cse - Status register values:
INFO:Cse - 0011 1111 0101 1110 0000 1000 0100 0010
INFO:Cse - ‘1’: Completed downloading bit file to device.
INFO:Cse - ‘1’: Programming completed successfully.
PROGRESS_END - End Operation.
Elapsed time = 3 sec.
key: period_frc, value: 0
key: dclk_has_reset, value: 0
key: period_int, value: 10
Found Slave on Bus Index.
Found Slave on Bus Index.
Slave Int Type is 83, Slave Index is -1, BPI_SLAVE is 83
Slave Type is 83, Slave Index is 0
PROGRESS_START - Starting Operation.
Reset Core
Reset Core
Set Data Width
Populating BPI common flash interface …
INFO:Cse - Core Status Register: [80] : 1
INFO:Cse - Core Status Register: [81] : 0
INFO:Cse - Core Status Register: [82] : 0
INFO:Cse - Core Status Register: [83] : 1
INFO:Cse - Core Status Register: [84] : 0
INFO:Cse - Core Status Register: [85] : 0
INFO:Cse - Core Status Register: [86] : 0
INFO:Cse - Core Status Register: [87] : 1
INFO:Cse - Core Status Register: [88] : 0
INFO:Cse - Core Status Register: [89] : 0
INFO:Cse - Core Status Register: [90] : 0
INFO:Cse - Core Status Register: [91] : 0
INFO:Cse - Core Status Register: [92] : 0
INFO:Cse - Core Status Register: [93] : 0
INFO:Cse - Core Status Register: [94] : 0
INFO:Cse - Core Status Register: [95] : 0
‘0’: Errors encountered while loading microprogram.
INFO:Cse - Failed to query common flash interface.
‘1’: Configuration data download to FPGA was not successful. DONE did not go high, please check your configuration setup and mode settings.
PROGRESS_END - End Operation.
Elapsed time = 4 sec.[/code]
flash_config.png