FLEXIO -SPI -external flash device id read Issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FLEXIO -SPI -external flash device id read Issue

1,761 次查看
bharat07
Contributor I

Hi guys, I am working on the s32k144 ev board and I am trying to read the external flash (Winbond) device id using flexio - spi port. For that I am sending 0x9F as instruction, I am getting some data from the MISO line but I am unable to read it. I am using SOSC 8Mhz as  clock for flexspi, using baud rate of 1Mhz. When I probed it using a logic analyzer it is showing an error as a settings mismatch I have attached pic please refer. Could you please help me regarding where I am doing wrong? Screenshot (212).png

0 项奖励
回复
3 回复数

1,721 次查看
bharat07
Contributor I

I don't think Hardware connection is the issue because when I use Pin from the GPIO section in the Pin MUX settings and connect it to CS Pin of flash I am able to read the device id properly (please refer to the image below) but if I used  Pin from FLEXIO section and connected to CS of flash I am getting this error and unable to read it. Attached measuring setup for your reference.Measuring setupMeasuring setup

When used pin from GPIO section as CS pinWhen used pin from GPIO section as CS pin

0 项奖励
回复

1,714 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Does the external flash expects the CS to be asserted between frames?

The expected SPI protocol must be described in the datasheet of the flash.

 

BR, Daniel

0 项奖励
回复

1,730 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @bharat07,

The MOSI signal and the clock are good.

There must be some HW issues with the MISO line or the the external flash.

Can you measure the signal on the pin of the external flash?

 

Regards,

Daniel

0 项奖励
回复