TSoM Programming the EPCS Device

From Terasic Wiki

(Difference between revisions)
Jump to: navigation, search
(1.3 Write JIC File into the EPCS Device)
 
(17 intermediate revisions not shown)
Line 1: Line 1:
-
This guide describes how to program the serial configuration (EPCS) device with Serial Flash Loader (SFL) function via the JTAG interface. Users can program EPCS devices with a JTAG indirect configuration (.jic) file, which is converted from a user-specified SRAM object file (.sof) in Quartus. The .sof file is generated after the project compilation is successful. The steps of converting .sof to .jic in Quartus II are listed below.
+
*[[TSoM_Programming_the_EPCS_Device_revA|Rev A]]
 +
*[[TSoM_Programming_the_EPCS_Device_revB|Rev B]]
-
==                <span style="color:#000080;">1.1 Before Programming Begins</span> ==
+
[[TSoM_Document|Back]]
-
The FPGA should be set to AS x1 mode i.e. MSEL[4..0] = “10010” to use the Flash as a FPGA configuration device.
+
-
 
+
-
 
+
-
Please install the 10K ohm resistors in the red resistor position in the figure below.
+
-
 
+
-
 
+
-
 
+
-
confirm that the red resistor position in the figure below does not have any resistors installed.
+
-
 
+
-
==                <span style="color:#000080;">1.2 Convert .SOF File to .JIC File</span> ==
+
-
 
+
-
 
+
-
To programme the design file into the EPCS device, a .jic file is required. Here's how to convert the .sof file generated by Quartus compile to .jic.
+
-
 
+
-
#Choose Convert Programming Files from the File menu of Quartus II.
+
-
#:
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE.jpg|250px]]</div>
+
-
#:
+
-
#Select JTAG Indirect Configuration File (.jic) from the Programming file type field in the dialog of Convert Programming Files.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-001.jpg|650px]]</div>
+
-
#Choose EPCS64 from the Configuration device field.
+
-
#Choose Active Serial from the Mode filed.
+
-
#Browse to the target directory from the File name field and specify the name of output file.
+
-
#Click on the SOF data in the section of Input files to convert.
+
-
#Click Add File.
+
-
#Select the .sof to be converted to a .jic file from the Open File dialog.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-002.jpg|550px]]</div>
+
-
#Click Open and the Convert Programming Files page will appear.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-003.jpg|650px]]</div>
+
-
#Click on the Flash Loader and click Add Device.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-004.jpg|650px]]</div>
+
-
#The Select Devices page will appear, please select the targeted FPGA to be programed into the EPCS.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-005.jpg|550px]]</div>
+
-
#Click OK and the Convert Programming Files page will appear.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-006.jpg|650px]]</div>
+
-
#Click Generate and wait the .jic file is generated.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-007.jpg|350px]]</div>
+
-
 
+
-
==                <span style="color:#000080;">1.3 Write JIC File into the EPCS Device</span> ==
+
-
#Make sure the MSEL[4..0] is set to “10010” in AS mode.
+
-
#Choose Programmer from the Tools menu and the Chain.cdf window will appear.
+
-
#Click Auto Detect and then select the correct device (5CSEBA6). Both FPGA device and HPS should be detected
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-008.jpg|650px]]</div>
+
-
#Double click the red rectangle region shown in below and the "'''Select New Programming File'''" page will appear. Select the .jic file to be programmed.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-009.jpg|650px]]</div>
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-010.jpg|450px]]</div>
+
-
#Program the EPCS device by clicking the corresponding Program/Configure box. A factory default SFL image will be loaded.
+
-
#:<div style="text-align:left;color:#4a4a4a;">[[Image: TSOM PTE-011.jpg|650px]]</div>
+
-
#Click Start to program the EPCS device.
+

Latest revision as of 11:06, 24 July 2019

Back