#!/bin/sh
#
# This file was automatically generated by the Nios II IDE Flash Programmer.
#
# It will be overwritten when the flash programmer options change.
#

cd E:/program/FPGA/LCD32/software/LCD32_Test/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="E:/program/FPGA/LCD32/LED_hello_world.sof" --output="LED_hello_world.flash" 

# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00000000 --sidp=0x000018c0 --id=0 --timestamp=1346922198 --instance=0 "LED_hello_world.flash"

# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --epcs --after="LED_hello_world.flash" --input="LCD32_Test.elf" --output="epcs.flash"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x00000000 --sidp=0x000018c0 --id=0 --timestamp=1346922198 --instance=0 "epcs.flash"

