#! /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 C:/NIOS/software/hello_led_0/Debug
# Creating .flash file for the project $SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0x1ffff --reset=0x0 --inpu t=hello_led_0.elf --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIOS2/components/a ltera_nios2/boot_loader_cfi.srec
# Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='ByteBlasterMV [LPT1]' --devi ce=1 --sidp=0x00062830 --id=2863603888 --timestamp=1149576583 --base=0x00000000 cfi_flash_0.flash Using cable "ByteBlasterMV [LPT1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00062830: verified
: Checksumming existing contents
00000000 : Reading existing contents
Checksummed/read 4kB in 0.1s
00000000 ( 0%): Erasing
Erased 4kB in 0.0s
00000000 ( 0%): Programming
Programmed 1KB +3KB in 0.1s Device contents checksummed OK Leaving target processor paused
# Creating .flash file for the datafile $SOPC_KIT_NIOS2/bin/bin2flash --base=0x00000000 --location=0x0 --input=hello_led _0.elf --output=hello_led_0.flash
# Programming flash with the datafile $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --cable='ByteBlasterMV [LPT1]' --devi ce=1 --sidp=0x00062830 --id=2863603888 --timestamp=1149576583 --base=0x00000000 hello_led_0.flash Using cable "ByteBlasterMV [LPT1]", device 1, instance 0x00 Resetting and pausing target processor: OK Reading System ID at address 0x00062830: verified
: Checksumming existing contents
00001000 : Verifying existing contents
00000000 : Reading existing contents
Checksummed/read 1kB in 0.0s
00000000 ( 0%): Erasing
Erased 4kB in 0.0s
00000000 ( 0%): Programming
00001000 (94%): Programming
Programmed 5KB in 0.1s Device contents checksummed OK Leaving target processor paused 作者: kzw 时间: 2006-6-7 20:38