Цитата(djhall @ Aug 10 2015, 17:46)

У меня тоже этого файла нет но это не мешает работе. Делаю так:
1). В конце файла nios2_command_shell.sh добавляю строчку
Код
bash ./pre.sh
2). Создаю файл pre.sh в котором указываю с каким проектом хочу работать.
Код
MODE=1
if [ "${MODE}" = "0" ]; then
cd e:/My_Designs/2015/ModulatorQam8xNios/1q120/
bash ./Load_qam8x_2015.sh
elif [ "${MODE}" = "1" ]; then
cd e:/My_Designs/2015/ModulatorQPSKniosConSymb/Quartus
bash ./Load_qpsk_con.sh
............................
3). В папке проекта создаю файл,например, Load_qpsk_con.sh в котором указываю конкретные команды:
Код
#!/bin/sh
MODE=0
# 0 - Load SOF+ELF to FPGA
# 1 - Load SOF+ELF to EPCS
EPCS_BASE=0x11800
np="LOAD DEMODULATOR 155mbps"
echo "PROJECT = $np"
echo "MODE=$MODE"
echo "EPCS_BASE=$EPCS_BASE"
echo "puth = e:/My_Designs/2015/Modem/155mbps_conv/Quartus/Demodulator2/"
cd e:/My_Designs/2015/Modem/155mbps_conv/Quartus/Demodulator2/
namesof="./output_files/Demodulator.sof"
nameelf="./software/demodulator_app/demodulator_app.elf"
nameflash1="modulator_hw2.flash"
nameflash2="epcs_flash_controller_0.flash"
if [ "${MODE}" = "0" ]; then
echo "Load SOF+ELF to FPGA"
nios2-configure-sof $namesof
nios2-download $nameelf --go --wait 1
elif [ "${MODE}" = "1" ]; then
echo "Load SOF to FPGA"
nios2-configure-sof $namesof
echo "Load SOF+ELF to EPCS"
"$SOPC_KIT_NIOS2S/bin/sof2flash" --epcs --input=$namesof --output=$nameflash1
echo "Programming flash with the FPGA configuration"
"$SOPC_KIT_NIOS2S/bin/nios2-flash-programmer" --epcs --base=$EPCS_BASE $nameflash1 --debug --erase-all
"$SOPC_KIT_NIOS2S/bin/elf2flash" --epcs --after=$nameflash1 --input=$nameelf --output=$nameflash2
echo "Programming flash with the project NIOS"
"$SOPC_KIT_NIOS2S/bin/nios2-flash-programmer" --epcs --base=$EPCS_BASE $nameflash2 --debug --go #--help
fi
Процесс программирования начинается вызовом файла Nios II Command Shell.bat
Вроде всё.