i.MX93 LPSPI transfer gives zeroed bytes. Removing DMA helps

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

i.MX93 LPSPI transfer gives zeroed bytes. Removing DMA helps

跳至解决方案
398 次查看
pzab
Contributor II

I have a driver that is using LPSPI3 to communicate with other IC. When I have a frquency set up to 1MHz all transfers are correct. When I go higher - let's say 8MHz, I see data transfered between i.MX93 and IC, but received buffer contains zeros.

I tried to to remove DMA with removing those too from device tree:

/delete-property/ dmas;
/delete-property/ dma-names;

and this helps and solve the issue. My question is, what is wrong with DMA? Is it a known bug? 

标记 (3)
0 项奖励
1 解答
312 次查看
joanxie
NXP TechSupport
NXP TechSupport

A0 has issue about work abnormally in high baudrate mode. Due to the broken eDMA on i.MX93 A0, lpuart/lpspi can only use cpu mode to do data transfer.this issue hasn't been fixed on A0 and wait for A1 silicon test

在原帖中查看解决方案

0 项奖励
3 回复数
352 次查看
joanxie
NXP TechSupport
NXP TechSupport

do you use A0 or A1 chip?

0 项奖励
327 次查看
pzab
Contributor II

It's A0

0 项奖励
313 次查看
joanxie
NXP TechSupport
NXP TechSupport

A0 has issue about work abnormally in high baudrate mode. Due to the broken eDMA on i.MX93 A0, lpuart/lpspi can only use cpu mode to do data transfer.this issue hasn't been fixed on A0 and wait for A1 silicon test

0 项奖励