This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2538: Handling unexpected interrupts

Part Number: CC2538


Hi,

I am using CC2538, here in "startup_ewarm.c"  "IntDefaultHandler" is assaigned as an handel to many of the unexpected interrupt.

So, mu software is come to this handler many times and stopping.

I want to know how can I check who has send this interrupt and how to clear it. This is causing while using UART0 for read and write from the console.

Thank you.

  • Hi,
    You could try the following:
    For IntDefaultHandler associated with faults (intvec 4,5,6) you might have to rename the IntDefaultHandler to the associated fault and create functions. E.g intvec 5 is associated with bus fault so you could rename the IntDefaultHandler to 'bus_fault' and see if this gets triggered. Similarly you can rename all default handlers to associated faults and add them to the startup file and then run your code and see which fault the program enters.
  • Hi FI,
    I did it, this interrupt is from UART0. So I did

    uint32 sts = UARTIntStatus(UART0_BASE, false);

    and getting the status "0x2F", what is means. On start I am calling
    " UARTIntEnable(HAL_UART_PORT, (UART_INT_RX | UART_INT_TX ));" during init but UART_INT_RX is 0x10 and UART_INT_TX is 0x20. what "0x2F" means

    Then I did,
    UARTIntClear(UART0_BASE, sts);

    After this system seems going to sleep

    thank you