Hello,
I am using AM35x-OMAP35x-PSP-SDK-03.00.01.06 sdk with my AM3517 EVM board. Now I connect the MSPI1.0 to a eeprom AT25640.
I add the following into the boot board file(board-am3517.c)and register a spi device.
static struct spi_eeprom at25640a = {
.byte_len = SZ_64K ,
.name = "at25640a",
.page_size = 32,
.flags = EE_ADDR2,
};
static struct spi_board_info am3517_evm_spi_info[] __initconst = {
{
.modalias = "at25",
.platform_data = &at25640a,
.max_speed_hz = 50 * 1000, /* at 3v3 */
.bus_num = 1,
. chip_select = 0,
.mode = SPI_MODE_0,
},
}
static void __init am3517_evm_init(void)
{
......
spi_register_board_info(am3517_evm_spi_info, ARRAY_SIZE(am3517_evm_spi_info));
......
}.
But now there is a problem.When I read the eeprom using the AT25 driver the spi1.0 , the incorrect will be return.
eg.I have writen 0x01 to eeprom but only ox00 will be return.
I checked with Oscilloscope,and the CS,SCLK, SOMI,SIMO are have correct signal.
When read the eeprom, there is a single that the 0x01 is on the SOMI pin but the AM3517 RX register only has the incorrectly data 0x00.
Can someone tell me what's the problem and how to solve it?
note:I use the spi1 module and the chip selected pin 0
Thanks,
Shepherd