This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UV4, SAM-ICE, SAM9RL64 - No interrupts

Can someone please help. I just cannot get the interrupts to run on our module.

I have configured the UART to run using interrupts but the interrupt service routine never gets called yet the UART works fine when driven by polling.

I have enabled the PMC bit:

  AT91C_BASE_PMC->PMC_PCER = 1 << AT91C_ID_US0;

I have set up the AIC:

  AT91C_BASE_AIC->AIC_IDCR = 1 << AT91C_ID_US0;
  AT91C_BASE_AIC->AIC_SMR[AT91C_ID_US0] = AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE;
  AT91C_BASE_AIC->AIC_SVR[AT91C_ID_US0] = (U32)UART_Isr;
  AT91C_BASE_AIC->AIC_ICCR = 1 << AT91C_ID_US0;
  AT91C_BASE_AIC->AIC_IECR = 1 << AT91C_ID_US0;

I have enabled the UART:

  AT91C_BASE_US0->US_CR = AT91C_US_RXEN | AT91C_US_TXEN;
  AT91C_BASE_US0->US_IER = AT91C_US_RXRDY;

Have I missed something?

Mike

Parents Reply Children
No data