LPSPI read transactions of IMX8QXP at high clock speeds are shifted by a bit

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

LPSPI read transactions of IMX8QXP at high clock speeds are shifted by a bit

1,519件の閲覧回数
_asif_muhammed_
Contributor III

Hi,

I am working on a custom IMX8QXP Rev C0 based development board much similar to MX8-MEK  board. I have a SPI NOR FLASH connected to the lpspi3 controller of the SOC. I also have a customised linux running on the board. 

When the spi dirvers are being loaded, it will check the JEDEC bit of the SPI-NOR flash, which is 0xbf2541 in my case(as per SPI datasheet).

When I set the SPI clock speed to 25MHz, kernel driver reads the JEDEC bits properly and the driver is loaded properly. The /dev/mtd0 also comes properly in linux.

When I set the SPI clock speed to 50MHz, the JEDEC bit read as 0xdf1220, which is a one bit shifted to right for each of the bytes. Here the mtd driver is not loaded. 

I saw that in errata IMX8X_0N99Z (ERR050537), the flex SPI has got some issue with reading transaction.

  1. Is there a similar issue for the LPSPI as well?
  2. Can you please suggest me some steps to debug/ resolve this issue?

Any help/support will be deeply appreciated. If you need anymore data to analyze the issue, please let me know.

PS: We have another board with IMX8QXP Rev B0, in which we have same spi flash connected to LPSPI0 and we are able to do spi transactions at 50MHz and the driver is also loaded there properly.

ラベル(2)
タグ(5)
0 件の賞賛
返信
3 返答(返信)

1,120件の閲覧回数
martingcavallo
Contributor III

Hi @_asif_muhammed_ ,

I would like to know if you have solved this issue. My team and I are facing the same problem using an LPC5536 MCU and the Mikroe Flash 6 Click Flash which holds the W25Q128JV Serial Flash Memory. And if we want to read the JEDEC ID, the MCU reads the correct value up to ~30 MHz, but the data is one bit shifted at 50 MHz.

 

For that reason, we would like to know if you found a solution for this problem. Until we tested, the data can be read correctly using a logic analyzer on the MCU pins.

 

Looking forward to hearing from you.

 

Martin 

0 件の賞賛
返信

1,483件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Which version of BSP are you using?

0 件の賞賛
返信

1,450件の閲覧回数
_asif_muhammed_
Contributor III
@jimmychan
imx_5.15.71_2.2.0 is the linux bsp version we are using.
0 件の賞賛
返信