AnsweredAssumed Answered

How to configure GIC for I.Mx6q?

Question asked by ajmalali on Nov 1, 2016
Latest reply on Nov 2, 2016 by igorpadykov

Hi,

I am trying to enable UART interrupt for Imx6q. I have initialized the GIC, UART, set the interrupt state, registered the handler, and enabled the interrupt. But after enabling the interrupt, the normal execution halts. On further analysis it was seen that the execution halts when i set the "GICD_ISENABLERn" register of the GIC.  But, even if the normal execution halts, it enters the "IRQ_HLDR" for once and executes till the end of the handler. 

Then, i tried initializing the gic only after the interrupt has been enabled. In that case the program does not halt when i set the  "GICD_ISENABLERn" register, but when i set the "gicd->CTLR" for enable forwarding the secure and non-secure interrupt. Even then, the "IRQ_HLDR" executes once as before. What might be the problem? am i forgetting some initialization steps? I  have attached my main,gic and interrupt files. Please do ask if need anything else. Please help..

Original Attachment has been moved to: vectors.S.zip

Original Attachment has been moved to: startup.S.zip

Original Attachment has been moved to: main.c.zip

Original Attachment has been moved to: gic.c.zip

Original Attachment has been moved to: gic.h.zip

Original Attachment has been moved to: interrupt.c.zip

Original Attachment has been moved to: interrupt.h.zip

Outcomes