Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

MTD in SPI FLASH error!

Altera_Forum
Honored Contributor II
1,135 Views

This is the problem I am currently experiencing:  

I'm using a CYC3 which has : 

- EP3C16Q240C8N 

- M25P64 SPI FLASH for AS config device 

- MSEL[2:0]=010 

- QUARTUSII 8.0 

in the "qsf" file define : 

set_location_assignment PIN_24 -to data0_to_the_epcs_controller 

set_location_assignment PIN_23 -to dclk_from_the_epcs_controller 

set_location_assignment PIN_14 -to sce_from_the_epcs_controller 

set_location_assignment PIN_12 -to sdo_from_the_epcs_controller 

 

using uclinux(nioswiki) 

change the config.c to: 

 

#define EPCS_SPI_OFFSET 0x400 /* FIXME */  

static struct flash_platform_data nios2_spi_flash_data = { 

.name = "m25p80", 

.parts = nios2_spi_flash_partitions, 

.nr_parts = ARRAY_SIZE(nios2_spi_flash_partitions), 

.type = "m25p64", /* depend on the actual size of spi flash */ 

}; 

and the other following the site : http://www.nioswiki.com/mtd 

when I download to the board: 

nios2-download -g zImage 

nios2-terminal 

the debug window display : 

m25p80 spi0.0:found m25p80 expected m25p64 

 

Am I missing something ? 

 

thanks
0 Kudos
0 Replies
Reply