IMXRT FlexSPI NonBlocking Method

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

IMXRT FlexSPI NonBlocking Method

Jump to solution
1,251 Views
Ykciv
Contributor III

I used SDK example "flexspi_nor_polling_transfer" as reference to communicate with external flash via FlexSPI and its working fine. 

But I want to use NonBlocking Method in my custer IMXRT1176 board. Is there any NonBlocking Sample file to test it? 

Can you please share it if its available or can you give an API Ref to do erase and page write?

 

Tags (1)
0 Kudos
1 Solution
1,222 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ykciv ,

  Please check the message, I send you the message about the NonBlocking method, it is for the octal flash, but can for your reference, with it helps you, I also just find it internally.

Best Regards,

Kerry

View solution in original post

0 Kudos
7 Replies
1,234 Views
Ykciv
Contributor III

Hi,

As per the below link. There is a working sample file for non blocking. Can you please share the same?

Re: Flexspi driver SDK for nonblocking mode - NXP Community

0 Kudos
1,223 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ykciv ,

  Please check the message, I send you the message about the NonBlocking method, it is for the octal flash, but can for your reference, with it helps you, I also just find it internally.

Best Regards,

Kerry

0 Kudos
1,215 Views
Ykciv
Contributor III

Hi Keeryzhou,

Thank You, Im also using S26HL01GT Hyperflash in our custom board. So this is perfect.

I'll do the changes with the shared files as reference.

0 Kudos
1,212 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ykciv ,

  You are welcome!

  If your question is solved, please help to mark the correct answer, just to close this case.

  Any new issues, welcome to create the new question post, thanks.

Best Regards,

Kerry

0 Kudos
1,227 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ykciv ,

   You mentioned the post is from Russian colleague, and we can't contact him now.

   I also helped you to check with our AE and SDK team colleagues, we still don't have that example.

   So, maybe you can use the DMA method, or you also can refer to other noneblocking API usage, eg, LPUART, interrupt_transfer. You can try it on your side.

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

   

  

0 Kudos
1,244 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Ykciv ,

  I checked all our related demo code is based on the FLEXSPI_TransferBlocking API.

  But in the fsl_flexspi.c we also have the FLEXSPI_TransferNonBlocking API, I think you can try to call that API and test it, as we still don't have a related demo.

  You also can refer to the following post which may useful to you:

https://community.nxp.com/t5/i-MX-RT/Hyperflash-non-blocking-transfer-causing-instruction-access/m-p...

https://community.nxp.com/t5/i-MX-RT/Example-code-for-FLEXSPI-TransferNonBlocking-usage/m-p/1151344

 But, if you want to use the nonblocking method, you also can refer to the DMA code:

SDK_2_11_1_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\edma_transfer

Best Regards,

Kerry

 

 

0 Kudos
1,236 Views
Ykciv
Contributor III

Hi Kerryzhou,

Thanks for the response. 

I already checked non blocking related posts in the forum. But I'm Facing issues while doing erase and pagewrite.

Can you please share a working non blocking APIs sample file?

0 Kudos