K65 DSPI_EDMA driver

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

K65 DSPI_EDMA driver

1,058 次查看
ETCTim
Contributor I

Hello,

I am attempting to use the DMA SPI driver on a K65 with SDK 2.0.

I want to send 40K of data out the SPI to update a LCD screen.

I have successfully done this on a K70 with PE, and also a KL28 with SDK 2.0.

 

The fsl_dspi_edma driver seems to have an upper limit of 512 bytes per transfer as seen here...

 

/* this limits the amount of data we can transfer due to the linked channel.
* The max bytes is 511 if 8-bit/frame or 1022 if 16-bit/frame
*/
if (handle->bitsPerFrame > 8)
{
if (transfer->dataSize > 1022)
{
return kStatus_DSPI_OutOfRange;
}
}
else
{
if (transfer->dataSize > 511)
{
return kStatus_DSPI_OutOfRange;
}
}

 

It is unclear to me why there is a limit. How can I work around this?

 

Thanks.

Tim

标签 (1)
0 项奖励
回复
2 回复数

941 次查看
vincentg_
Contributor II

Hi, 

any news about this? I stumbled upon the same lines of code working with the freedom k22 evalboard. Commenting the lines and sending bigger chunks will not work here.

0 项奖励
回复

941 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the K66 has the same eDMA as K70, I do not know the background of the bytes limit, I think you can comment the code for byte count limit checking.

Hope it can help you.

BR

Xiangjun Rong

0 项奖励
回复