12-21-2018 08:31 PM
01-02-2019 04:33 PM
I can't follow that software stuff...
Did you re-configure the interrupt sensitivity? You can't leave it at the default value.
-Joe G.
12-21-2018 08:52 PM
01-02-2019 04:33 PM
I can't follow that software stuff...
Did you re-configure the interrupt sensitivity? You can't leave it at the default value.
-Joe G.
01-02-2019 06:21 PM
01-02-2019 06:36 PM
Yes: the UART IP is using an edge, but the interrupt controller in the PS may be expecting a level. Re-configure the PS interrupt controller to expect an edge, if it's not already so configured.
You should be able to quickly check the current contents of the relevant register, to confirm if this is the issue:
-Joe G.
01-03-2019 11:04 PM
Hi,Joe.I take your suggestion,re-config the trigger type to edge trigger type,then can enter interrupt. But I get a new problem.I did not shorten TX and RX,when i send data ,the FPGA also enter into interrupt.This is not normal,the RX did not receive any data ,it can not enter interrupt,even I do not send data ,the system enter interrupt too. I can not get this why did it happen?
XScuGic_SetPriorityTriggerType(&GicInstancePtr, UARTLITE_INT_IRQ_ID,
0xA0, 0x3);// b11 Rising edge sensitive
int main()
{
InitDevice();
InitInterruptSystem();
us_pUart0->Init();
ump_pUart0->Init();
while(1)
{
}
}
01-04-2019 04:51 AM
01-05-2019 07:37 PM
01-06-2019 09:10 AM
I'm not sure why you're getting unexpected interrupts. If it were me, I'd put an ILA on the interrupt line from the UART IP to see if spurious interrupts were coming from it. If there are, you need to pursue that; if there aren't, there's a problem with the GIC configuration and/or the interrupt handler.
That aside, you can't get the behavior you want by using the UART Lite IP: it will send an interrupt when any of the circumstances arise that can cause an interrupt. You cannot configure it so that only one circumstance (e.g., data received only) actually causes an interrupt. For that kind of flexibility, you need to start over and use the 16550 UART IP instead of the UART Lite IP. See PG143.
-Joe G.