Altera_Forum
Honored Contributor
14 years agoSpeed of SPI core problem
Hi
I have generated a uClinux kernel for my DE0 board,and I use the IP core of SD card is SPI core with 30MHz clock (According to http://www.alterawiki.com/wiki/mmcsd). I can operate the SD card well, but the speed of data transfer is very slow. I download 1.7MB file from SD card to SDRAM on board, and I need 8 minutes. The speed is normal??????????????????????? Could you give me some suggestions to solve the problem. Let the speed is faster. Thank you very much. Below is the information setup about SPI core which is created by "sopc-create-config-files" --- Quote Start --- /* mmc_spi.spi_control_port is a altera_avalon_spi */ #define MMC_SPI_BASE 0x80000040 #define CONFIG_SYS_ALTERA_SPI_LIST { MMC_SPI_BASE } #define CONFIG_ALTERA_SPI #define CONFIG_CMD_SPI #define CONFIG_CMD_MMC #define CONFIG_MMC #define CONFIG_GENERIC_MMC #define CONFIG_CMD_MMC_SPI #define CONFIG_MMC_SPI #define CONFIG_MMC_SPI_BUS 0 #define CONFIG_MMC_SPI_CS 0 #define CONFIG_MMC_SPI_SPEED 30000000 #define CONFIG_MMC_SPI_MODE SPI_MODE_3 #define CONFIG_CMD_FAT #define CONFIG_DOS_PARTITION --- Quote End ---