Reading values from a SPI EEPROM

Hi,

I need help because I want to read/write values from a SPI EEPROM (http://www.farnell.com/datasheets/1714654.pdf).
I don’t understand why it doesn’t work.

this is my code: http://pastebin.com/55nEd4FP

It returns me 255 each times.

I think my connections are goods.
But I have a question about it. Must I plug the eeprom input on spi0_d0 or d1 ?

Thank you :slight_smile:
Sry for my English