Board logo

标题: [求助]NIOS IDE烧FLASH问题求解 [打印本页]

作者: yqqmm    时间: 2007-12-26 16:59     标题: [求助]NIOS IDE烧FLASH问题求解

我用的是QUARTUS7.0与NIOS2 7.0一起来做的,在烧FLASH的时候出现以下问题:

#!/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 D:/altera/70/nios2eds/bin/eclipse/nios2-ide-workspace-7.0/hello_led_3/Debug

# Creating .flash file for the FPGA configuration
"$SOPC_KIT_NIOS2/bin/sof2flash" --epcs --input="D:/cpu/soc.sof" --output="soc.fl
ash"
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert --device=EPCS64 --option=soc.op
t D:/cpu/soc.sof soc.pof
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Allocated 124 megabytes of memory during processing
Info: Processing ended: Wed Dec 26 16:18:57 2007
Info: Elapsed time: 00:00:10
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert soc.pof soc.rpd
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Allocated 52 megabytes of memory during processing
Info: Processing ended: Wed Dec 26 16:19:03 2007
Info: Elapsed time: 00:00:05

# Programming flash with the FPGA configuration
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --epcs --base=0x05000800 --instance
=0 "soc.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: OK

: Checksumming existing contents

00000000 : Verifying existing contents

00010000 : Verifying existing contents

00020000 : Verifying existing contents

00030000 : Verifying existing contents

00040000 : Verifying existing contents

00050000 : Verifying existing contents

00060000 : Verifying existing contents

00070000 : Verifying existing contents

00080000 : Verifying existing contents

00090000 : Verifying existing contents

000A0000 : Verifying existing contents

00000000 : Reading existing contents

00010000 : Reading existing contents

00020000 : Reading existing contents

00030000 : Reading existing contents

00040000 : Reading existing contents

00050000 : Reading existing contents

00060000 : Reading existing contents

00070000 : Reading existing contents

00080000 : Reading existing contents

00090000 : Reading existing contents

000A0000 : Reading existing contents

Checksummed/read 704kB in 18.5s

00000000 ( 0%): Erasing

00010000 ( 9%): Erasing

00020000 (18%): Erasing

00030000 (27%): Erasing

00040000 (36%): Erasing

00050000 (45%): Erasing

00060000 (54%): Erasing

00070000 (63%): Erasing

00080000 (72%): Erasing

00090000 (81%): Erasing

000A0000 (90%): Erasing

Erased 704kB in 10.0s (70.4kB/s)

00000000 ( 0%): Programming

Program failed
Leaving target processor paused

# Creating .flash file for the project
"$SOPC_KIT_NIOS2/bin/elf2flash" --base=0x04000000 --end=0x47fffff --reset=0x4000
000 --input="hello_led_3.elf" --output="flash.flash" --boot="D:/altera/70/ip/nio
s2_ip/altera_nios2/boot_loader_cfi.srec"

# Programming flash with the project
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x04000000 --instance=0 "fla
sh.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: No CFI table found at address 0x04000000
OK
Leaving target processor paused

# Creating .flash file for the datafile
"$SOPC_KIT_NIOS2/bin/bin2flash" --base=0x04000000 --location=0x0 --input="D:/bur
n/flash_uart.bin" --output="flash_uart.flash"

# Programming flash with the datafile
"$SOPC_KIT_NIOS2/bin/nios2-flash-programmer" --base=0x04000000 --instance=0 "fla
sh_uart.flash"
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Resetting and pausing target processor: No CFI table found at address 0x04000000
OK
Leaving target processor paused

大侠来帮忙啊..急


作者: zhonghui    时间: 2007-12-26 19:33

从提示看,你的CFI似乎没有设置好。你再好好检查你的设置。
作者: yqqmm    时间: 2007-12-26 20:40

CFI是按照DATASHEET来填,应该没问题,就是SOPC中的FLASH的开始地址是0X04000000,这个地址我无法改变的啊,现在很着急的啊,谢谢2楼的...
作者: yqqmm    时间: 2007-12-26 20:41

看NIOS的这个提示说明可以擦除了,但是编程为什么就不行了呢?困绕很久了啊.


作者: zhonghui    时间: 2007-12-26 22:15

你用什么板子啊?

看以前也遇到过烧不进去的情况。将FLASH IC的WP短接一下再烧试试吧。不排除这样的原因。






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0