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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,202 Views
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 Replies

1,095 Views
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,095 Views
xinguang_wang
Contributor III

Hi Daniel,

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

Best Regards!

Xinguang

0 Kudos