How to use SPI interrupt to process external flash read and write in S32K144?

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

How to use SPI interrupt to process external flash read and write in S32K144?

1,527 次查看
xinguang_wang
Contributor III

Hi,

    Recently, I began to debug the SPI read and write external flash in S32K144 platform. However, If I don't use interrupt to process read flash, there may lose some information. If I using Interrupt to process read flash, I don't know how to return the current function task to use the read value to continue next opreation.

   So can anyone to share the demo to refer.

Thanks!

Xinguang

2 回复数

1,420 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I assume that you are using the SDK LPSPI driver.

I'm not sure if I understand what is the issue here, but you can install a call back function.

It is shown in the example that is attached here:

How do I know if the SPI slave has received the data? 

Please read the SDK documentation available in the SDK installation folder.

.../NXP/S32DS_ARM_v2018.R1/S32DS/S32SDK_S32K1xx_RTM_3.0.0/doc/Start_here.html

BR, Daniel

1,420 次查看
xinguang_wang
Contributor III

Hi Daniel,

        Thanks for your kindly advice,I'll try it.

Best Regards!

Xinguang

0 项奖励
回复