SPI - EEPROM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI - EEPROM

1,042件の閲覧回数
Aditya1z
Contributor I

Hi guys,

Could you please tell me how to interface and communicate using a SPI to an EEPROM ? (That is use commands like READ, WRITE etc)

The eeprom is made by ISSI, Inc. This is based on a imx35 chipset.

Thanks,

Aditya

タグ(1)
0 件の賞賛
2 返答(返信)

805件の閲覧回数
Aditya1z
Contributor I

Hello Rooney!

I was able to solve it, In a way.

Basically you need to go through the EEPROM data sheets thoroughly. The problem was solved by creating a few functions like eeprom_read etc, a in C source file and using it in the bootloader stage itself.

I compiled it with Barebox as a barebox command and used it at the barebox command prompt.

Regarding the C source file, basically all you need to do is assign the proper values in the related CSPI registers for IMX. This you can read about in the IMX53 Reference manual, there are a few registers like - RxData, TxData, CONREG etc.

Just go through the CSPI interfacing part in the manual and I believe you will find the desired registers to achieve a solution.

Regards,

Aditya

P.S - Let me know if I was helpful. If not, i will try to dig up more info for you.

0 件の賞賛

805件の閲覧回数
Rooney
Contributor III

Hello Aditya!

Could you solve your problem?

I'm facing nearly the same issue. I want to use the SPI interface of the i.MX53 to read and write data, but I don't know how to configure the SPI interface using the functions provided by the kernel.

Regards,

Rooney

0 件の賞賛