GPIO interrupt to flexspi_nor_edma_transfer not working

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

GPIO interrupt to flexspi_nor_edma_transfer not working

1,841 次查看
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,772 次查看
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,748 次查看
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,830 次查看
JennyC
Contributor I

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

0 项奖励
回复