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.

AM2434: How to modify and set the priority for undefined, Abort, SVC exceptions or interrupts?

Part Number: AM2434

How to modify and set the priority for undefined, Abort, SVC exceptions or interrupts? The SDK does not provide such an API interface, and after reviewing all the source code of the SDK, we have not found any place that can modify the priority.

  • Hi Lin,

    Those un-maskable interrupt service routines were set up in HwiP_armv7r_vectors_nortos_asm.S and defined in HwiP_armv7r_handlers_nortos.c:

    void __attribute__((interrupt("UNDEF"), section(".text.hwi"))) HwiP_reserved_handler(void)
    {
        volatile uint32_t loop = 1;
        while(loop!=0U)
        {
            ;
        }
    }

    It is not recommended to change them.

    Best regards,

    Ming

  • I have already found definition in HwiP_armv7r_vectors_nortos_asm.S and in HwiP_armv7r_handlers_nortos.c, but I couldn't find any parameters that can modify the priority. So where to modify the priority?

  • Hi Lin,

    Those are the un-maskable interrupts. Their priorities are fixed, and you cannot change them.

    Best regards

    Ming