搜索
bottom↓
回复: 25

sd_card controller ip

[复制链接]

出0入0汤圆

发表于 2009-5-4 21:52:40 | 显示全部楼层 |阅读模式
这个是我在niosforum上下载的,在上面人家说好使,但是我用了报下面的错误,传上来大家共同解决,如果哪位解决了这个问题,麻烦告诉我。先谢谢了!

我邮箱:zhz13456@163.com,共同讨论。
qq:707205943





**** Build of configuration Debug for project hello_world_0 ****

make -s all includes
Compiling hello_world.c...
Linking hello_world_0.elf...
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.text+0x94): In function `alt_sys_init':
system_description/alt_sys_init.c:108: undefined reference to `sd_controller_dev_init'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11d4): undefined reference to `sd_open_wrapper'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11d8): undefined reference to `sd_close_wrapper'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11dc): undefined reference to `sd_read_wrapper'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11e0): undefined reference to `sd_write_wrapper'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11e4): undefined reference to `sd_lseek_wrapper'
/cygdrive/e/sopc/neek_alternate_sd_card_controller/sd_card_controller_example_design/hello_world_0_syslib/Debug/libhello_world_0_syslib.a(alt_sys_init.o)(.data+0x11e8): undefined reference to `sd_fstat_wrapper'
collect2: ld returned 1 exit status
make: *** [hello_world_0.elf] Error 1
Build completed in 92.141 seconds

sd_card controllerourdev_442101.zip(文件大小:2.07M) (原文件名:neek_alternate_sd_card_controller.zip)

阿莫论坛20周年了!感谢大家的支持与爱护!!

知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)

出0入0汤圆

 楼主| 发表于 2009-5-5 16:59:39 | 显示全部楼层
问题解决了,在\neek_alternate_sd_card_controller\sd_card_controller_component\SD_Card_Controller_SPI\HAL\src下面加上这个文件。
文件格式不对上传不上来。
# This file generated on 2006.03.22.10:57:43

C_LIB_SRCS   +=  sd_controller.c\
                 fat.c\
                 fat_file.c

ASM_LIB_SRCS +=

INCLUDE_PATH +=

# end of file

将这些拷贝到一写字板,存为:component.mk
这样编译就不会报错了。
具体见:http://www.cnblogs.com/oomusou/archive/2008/12/06/ip_component_mk.html

出0入0汤圆

 楼主| 发表于 2009-5-5 17:00:33 | 显示全部楼层
以后sd卡就好使了。

出0入0汤圆

 楼主| 发表于 2009-5-9 10:46:14 | 显示全部楼层
在sd_clk为60M时不可以工作,但是改为30M时就可以工作。
并且在uc/os下都好使。
现在速度还没有测试,上面说可以达到写200k/s。

出0入0汤圆

发表于 2009-8-3 18:19:09 | 显示全部楼层
为什么我编译的时候会出现这个问题?
cygdrive/d/usDCT/ip/SD_Card_Controller_SPI/HAL/src/component.mk:4: *** missing separator (did you mean TAB instead of 8 spaces?).  Stop.

出0入0汤圆

 楼主| 发表于 2009-9-1 20:41:35 | 显示全部楼层
楼上的是复制粘贴的吧?
手动输入一遍。

出0入70汤圆

发表于 2010-3-9 20:48:22 | 显示全部楼层
先Mark一下

出0入0汤圆

发表于 2010-3-10 12:19:00 | 显示全部楼层
我也mark一下,FPGA SD卡类

出0入0汤圆

发表于 2010-3-12 09:34:01 | 显示全部楼层
不知道这个IP是做测试的,还是可以烧写可以用的

出0入0汤圆

发表于 2010-3-12 09:48:05 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-8-2 11:31:07 | 显示全部楼层
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region sd_controller_inst is full (hello_sd.elf section .text). Region needs to be 44536 bytes larger.
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region sd_controller_inst is full (hello_sd.elf section .rodata). Region needs to be 248 bytes larger.
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: region sd_controller_inst is full (hello_sd.elf section .rwdata). Region needs to be 5720 bytes larger.
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rodata [01001400 -> 010018f7] overlaps section .text [01001400 -> 0100c5f7]
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .rwdata [01001400 -> 01002e57] overlaps section .text [01001400 -> 0100c5f7]
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/bin/ld: section .bss [01001400 -> 01001613] overlaps section .text [01001400 -> 0100c5f7]
/cygdrive/c/altera/90/nios2eds/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.6/../../../../nios2-elf/lib/mno-hw-mul/libc.a(sbrkr.o)(.text+0x14): In function `_sbrk_r':
/build/nios2eds-gnutools-win32-9.0/bin/nios2-gnutools/src/newlib/newlib/libc/reent/sbrkr.c:59: Unable to reach errno (at 0x01001400) from the global pointer (at 0x0100adec) because the offset (-39404) is out of the allowed range, -32678 to 32767.



我编译出现这个错误 怎么回事   跑的是最简单的 HELLO  WORLD

出0入0汤圆

发表于 2010-8-2 11:51:11 | 显示全部楼层
我也mark一下,FPGA SD卡类。。。

出0入0汤圆

发表于 2010-8-2 13:43:46 | 显示全部楼层
同马克,200k/s的速度有点慢了,要是能达到2MB/s,那就可以了

出0入0汤圆

发表于 2010-8-2 16:34:12 | 显示全部楼层
我也mark一下,FPGA SD卡类。。。

出0入0汤圆

发表于 2010-8-2 18:54:38 | 显示全部楼层
mark了

出0入0汤圆

发表于 2010-8-2 22:30:06 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-8-3 20:50:36 | 显示全部楼层
请问有  4bit SD 吗?

出0入0汤圆

发表于 2010-10-4 22:09:04 | 显示全部楼层
mark~

出0入0汤圆

发表于 2010-10-5 04:53:57 | 显示全部楼层
MARK

出0入0汤圆

发表于 2010-10-5 12:26:35 | 显示全部楼层
mark  sd

出0入0汤圆

发表于 2010-10-5 13:22:42 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-10-5 22:30:38 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-10-6 08:55:05 | 显示全部楼层
SOPC 已经有 SPI 界面了,而且设定比较简单,目前寻找 4bit SDIO 模式.

出0入0汤圆

发表于 2010-11-1 19:54:57 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-11-9 22:00:43 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-11-16 17:45:13 | 显示全部楼层
mark FPGA IP SD
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-7-24 15:27

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表