DE5-Net User Manual
June 20, 2018
58
nios-2-flash-programmer
. For .sof to .flash translation, NIOS II EDS tool
sof2flsh
can be used.
For the .elf to .flash translation, NIOS II EDS tool
elf2flash
can be used. For convenience, the
System CD contains a batch file for file translation and flash programming with users given .sof
and .elf file.
4
4
.
.
2
2
F
F
P
P
G
G
A
A
C
C
o
o
n
n
f
f
i
i
g
g
u
u
r
r
e
e
O
O
p
p
e
e
r
r
a
a
t
t
i
i
o
o
n
n
Here is the procedure to enable FPGA configuration from Flash:
1.
Please make sure the FPGA configuration data has been stored in the CFI flash.
2.
Set the FPGA configuration mode to FPPx32 mode by setting SW6 MSEL[0:4] as 00010
3.
Specify the configuration of the FPGA using the default Factory Configuration or User
Configuration by setting SW5 according to
4.
Power on the FPGA board or press MAX_RST button if board is already powered on
5.
When configuration is completed, the green Configure Done LED will light. If there is error,
the red Configure Error LED will light.
4
4
.
.
3
3
F
F
l
l
a
a
s
s
h
h
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
w
w
i
i
t
t
h
h
U
U
s
s
e
e
r
r
s
s
D
D
e
e
s
s
i
i
g
g
n
n
Users can program the flash memory device so that a custom design loads from flash memory into
the FPGA on power up. For convenience, the translation and programming batch files are available
on the Demonstrations/Hello/flash_programming_batch folder in the System CD. There folder
contains five files as shown in
Table 4-2
Flash Memory Map (Byte Address)
Files Name
Description
S5_PFL.sof
Parallel Flash Loader Design
flash_program_ub2.bat
Top batch file to download S5_PFL.sof and launch
batch flash_program_bashrc_ub2
flash_program_bashrc_ub2
Translate .sof and .elf into .flash and programming
flash with the generated .flash file
Golden_top.sof
Hardware design file for Hello Demo
HELLO_NIOS.elf
Software design file for Hello Demo