GPIO interrupt to flexspi_nor_edma_transfer not working

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

GPIO interrupt to flexspi_nor_edma_transfer not working

1,822 Views
JennyC
Contributor I

Hi 

I have a custom board with MIMXRT1064DVJ6B, and I am using MCUXpresso IDE v11.9.1_2170 and SDK version 2.16.000

In my application, I would like to save calibration data in external flash. And I also need some GPIO interrupts in the application.

I tested evkmimxrt1064_flexspi_nor_edma_transfer from SDK, and it worked well.

Then I modified the evkmimxrt1064_flexspi_nor_edma_transfer to enable a GPIO interrupt as show in the attachment. Then flexspi_callback() will never happens.

Could you please point out the mistake I made?

Regards,

Jenny

0 Kudos
Reply
3 Replies

1,753 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello, hope you are well. 

Please add the following line at the end of the interruption routine:=
 

__DSB()

Additionally, make sure that the corresponding routines are executed from RAM so there no conflicts on the flash.

Best regards,
Omar

0 Kudos
Reply

1,729 Views
JennyC
Contributor I

Hi Omar,

Thanks for the replay.

I added __DSB() at the interrupt routine (see the attached file). But the problem still exists: if both GPIO IRQ and FLEXSPI DMA IRQ are enabled, the interrupts will never occur.

But if I enable only one of them, they work.

Please help.

Regards,

Jenny.

0 Kudos
Reply

1,811 Views
JennyC
Contributor I

I am attaching the file again because I am not sure if I did it correctly in my previous post.

0 Kudos
Reply