AnsweredAssumed Answered

SPI Can't Work in FRDM-KL25Z

Question asked by Bhavin Maru on Dec 4, 2016
Latest reply on Dec 4, 2016 by Kerry Zhou

Hello,

I am working with FRDM-KL25Z EVM with this evm i interfaced M95M02-DR EEPROM using SPI communication.for your reference i have attached my code for this EEPROM.i send a data using SPI but when i read the data from the address in which i have written data i am not getting that data which i have written insted i am getting data 0x00 only.i also observe the waveforms of CLOCK,CS,MOSI,MISO.CS,CLOCK and MOSI these three waveforms are correct but i am not getting any pulse in MISO pin.please see my code and suggest me what mistake i have done so that i can read the data.

 

Any help in this will be appreciated more.

 

Thank You

  Bhavin

Original Attachment has been moved to: main.c.zip

Outcomes