VF61 Linux SPI DMA support

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

VF61 Linux SPI DMA support

ソリューションへジャンプ
3,747件の閲覧回数
olegpetrakivsky
Contributor I

spi-fsl-dspi driver does not supports DMA. I made some driver modification for DMA support.

After code test I got next result. DMA transmit is ok. DMA receives about 50% of lost packets (some parts of buffer contents previous message). The issue is in DMA. Not all data are copied from device fifo into memory. RXCTR = 0 in rx callback transaction indicates that data is read. SPIx_RXFRn register shows a new correct value. Do you have idea about reason of bad DMA transfers? Draft code is attached.

Original Attachment has been moved to: spi-fsl-dspi.c.zip

ラベル(1)
0 件の賞賛
返信
1 解決策
3,345件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
3,346件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 件の賞賛
返信
3,346件の閲覧回数
timesyssupport
Senior Contributor II

Hi Oleg Petrakivskyi,

Apologies for our delayed response.

From your information, DMA transmission is fine. Overall domination among the bus is changed into the interrupt controller after the CPU acknowledges DMA request, to verify Rx FIFO - could you please share your slave peripheral device hardware information with us. It'll help us to debug/reproduce your issue in my end.

Thanks

Timesys Support

3,346件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

Timesys Support do you have an update?

0 件の賞賛
返信
3,346件の閲覧回数
olegpetrakivsky
Contributor I
3,346件の閲覧回数
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport​ can you help here?

0 件の賞賛
返信