GPIO interrupt to flexspi_nor_edma_transfer not working

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

GPIO interrupt to flexspi_nor_edma_transfer not working

1,856件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

1,787件の閲覧回数
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 件の賞賛
返信

1,763件の閲覧回数
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 件の賞賛
返信

1,845件の閲覧回数
JennyC
Contributor I

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

0 件の賞賛
返信