Board logo

标题: [原创]最近使用DE2的一些问题,万望达人指教 [打印本页]

作者: cs_kill    时间: 2008-1-10 21:14     标题: [原创]最近使用DE2的一些问题,万望达人指教

最近学习SOPC,使用DE2,开始用QUARTUS7.0,SOPC定制CPU时提示time_limited....这是因为quartus破解不完全,于是又使用quartus6.0,在sopc中定制CPU时提示lain_text HDL.....好像还是QUARTUS破解问题.最后改用QUARTUS5.0 SP1完全破解,没任何出错提示!

为了烧写FLASH就MK_TARGET_BOARD然后再IDE中烧写:信息如下:

#! /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:/DE2/flash_test/software/hello_world_0/Debug
# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U20 --base=0x00000000 --end=0x3fffff --res
et=0x0 --input=hello_world_0.elf --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIO
S2/components/altera_nios2/boot_loader_cfi.srec
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=cfi_flash_0.flash --sof=c:/DE
2/DE2_board/system/DE2_board.sof --cable='USB-Blaster [USB-0]' --device=1 --base
=0x00400000
Jan 10, 2008 8:10:37 PM - (??) nios2-flash-programmer: Launching Quartus Program
mer to download:
c:/DE2/DE2_board/system/DE2_board.sof
Pre-Reading 47KBytes of data from U20:
|----.----+----.----|
********************* (0.766 sec).
Erasing 6 Sectors:
|----.----+----.----|
********************* (2.234 sec).
Writing 48KBytes :
|----.----+----.----|
********************* (2.406 sec).
Verifying 48KBytes of data:
|----.----+----.----|
********************* (0.75 sec).
Jan 10, 2008 8:10:49 PM - (??) nios2-flash-programmer: Success. Verified 48Kbyte
s written to U20.
Jan 10, 2008 8:10:49 PM - (??) nios2-flash-programmer: Flash programming complet
e
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
这次烧写没有选择 program FPGA configuration data into hard-ware image region of flash memory
烧写完成后又用quartus programmer把sof文件下载到fpga,但是程序没运行.
第二次烧写,这次选择了program FPGA configuration data into hard-ware image region of flash memory,结果如下
#! /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:/DE2/flash_test/software/hello_world_0/Debug
# Creating .flash file for the FPGA configuration
$SOPC_KIT_NIOS2/bin/sof2flash --flash=U20 --offset=0x001c0000 --input=C:/DE2/fla
sh_test/flash_test.sof --output=flash_test.flash
Info: *******************************************************************
Info: Running Quartus II Convert_programming_file
Info: Command: quartus_cpf --no_banner --convert C:/DE2/flash_test/flash_test.so
f flash_test.rbf
Info: Quartus II Convert_programming_file was successful. 0 errors, 0 warnings
Info: Processing ended: Thu Jan 10 20:18:39 2008
Info: Elapsed time: 00:00:01
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Programming flash with the FPGA configuration
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=flash_test.flash --sof=c:/DE2
/DE2_board/system/DE2_board.sof --cable='USB-Blaster [USB-0]' --device=1 --base=
0x00400000
Jan 10, 2008 8:18:42 PM - (??) nios2-flash-programmer: Launching Quartus Program
mer to download:
c:/DE2/DE2_board/system/DE2_board.sof
Pre-Reading 836KBytes of data from U20:
|----.----+----.----|
********************* (6.844 sec).
Erasing 14 Sectors:
|----.----+----.----|
********************* (9.094 sec).
Unable to send write-packet @1835008
buffer-chunk write failed @1835008
erase-block write failed @1835008
write failed @1835008
Jan 10, 2008 8:19:30 PM - (??) nios2-flash-programmer: Unable to write to flash
Jan 10, 2008 8:19:30 PM - (??) nios2-flash-programmer: Error: Write-operation fa
iled on device. - exiting.
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Creating .flash file for the project
$SOPC_KIT_NIOS2/bin/elf2flash --flash=U20 --base=0x00000000 --end=0x3fffff --res
et=0x0 --input=hello_world_0.elf --output=cfi_flash_0.flash --boot=$SOPC_KIT_NIO
S2/components/altera_nios2/boot_loader_cfi.srec
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
# Programming flash with the project
$SOPC_KIT_NIOS2/bin/nios2-flash-programmer --input=cfi_flash_0.flash --sof=__NO_
SOF_PLEASE__ --cable='USB-Blaster [USB-0]' --device=1 --base=0x00400000
Jan 10, 2008 8:19:31 PM - (??) nios2-flash-programmer: SOF-download skipped.
Pre-Reading 47KBytes of data from U20:
|----.----+----.----|
********************* (0.75 sec).
Jan 10, 2008 8:19:34 PM - (??) nios2-flash-programmer: Success. Zero bytes writ
ten to U20-
(because device matched contents of cfi_flash_0.flash)
Jan 10, 2008 8:19:34 PM - (??) nios2-flash-programmer: Flash programming complet
e
WARNING: Default charset GBK not supported, using ISO-8859-1 instead
当然还是没有运行!!
我的DE2开发板上的FLASH为:S29L032D70TFI04 是4MB,数据线为8bit,地址线22bit,在定制目标板时base指定为0x00400000,在 more "board system "setting 中设置了user offset 0x00100000 和safe offset 0x00200000两个镜像 (这个偏移不知道该怎么指定?)
请各位给我指点迷津??

[此贴子已经被作者于2008-1-10 21:16:08编辑过]


作者: cs_kill    时间: 2008-1-10 21:30

flash问题已经困扰了我一个礼拜了,各位帮帮忙啊![em87]
作者: caopengly    时间: 2008-1-10 21:58

你在选者reset应指向你的flash地址,except地址为sdram地址。

program FPGA configuration data into hard-ware image region of flash memory这句话就是将你的sof下到flash中而不是epcs中。一般不选

Jan 10, 2008 8:19:31 PM - (??) nios2-flash-programmer: SOF-download skipped.
Pre-Reading 47KBytes of data from U20:
|----.----+----.----|
********************* (0.75 sec).
Jan 10, 2008 8:19:34 PM - (??) nios2-flash-programmer: Success. Zero bytes writ
ten to U20-
(because device matched contents of cfi_flash_0.flash)
表示你的文件cfi_flash_0.flash已经在flash的地方了,

镜像的偏移量就是偏移地址,用于下多个文件,或其他数据的。

你的flash能够下下去,应该是其他设置的问题。你现在sdram里将程序跑一下看行不行。


作者: cs_kill    时间: 2008-1-10 22:13

"这个版主不太冷"[em59]

thank you. let me try again

[此贴子已经被作者于2008-1-10 22:12:57编辑过]






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