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.

TMS570LC4357: How to configure SCI4 interrupt?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi all:

    I have successfully achieved the polling mode of SCI4 module. I set the pinmux, SCI4 module in HALCOGEN however when I try to use sci4 interrupt, it  always failed.

    I want to use SCI4 rx low interrupt, and here is my configuration in SCI.c:

   

    /** - set interrupt level */
    sciREG4->SETINTLVL = (uint32)((uint32)0U << 26U)  /* Framing error */
                      | (uint32)((uint32)0U << 25U)  /* Overrun error */
                      | (uint32)((uint32)0U << 24U)  /* Parity error */
                      | (uint32)((uint32)0U << 9U)  /* Receive */
                      | (uint32)((uint32)0U << 8U)  /* Transmit */
                      | (uint32)((uint32)0U << 1U)  /* Wakeup */
                      | (uint32)((uint32)0U << 0U);  /* Break detect */

    /** - set interrupt enable */
    sciREG4->SETINT = (uint32)((uint32)0U << 26U)  /* Framing error */
                   | (uint32)((uint32)0U << 25U)  /* Overrun error */
                   | (uint32)((uint32)0U << 24U)  /* Parity error */
                   | (uint32)((uint32)1U << 9U)  /* Receive */
                   | (uint32)((uint32)0U << 1U)  /* Wakeup */
                   | (uint32)((uint32)0U << 0U);  /* Break detect */

    Then I configure the VIM module  119 sci4LowLevelInterrupt IRQ, then halcogen generates the sci4HighLevelInterrupt() in SCI.c.

    During debug, I use putty to send "0x33" to my board, the register SCIFLR->RXRDY is set and RD has value 0x33 but the program can not enter sci4HighLevelInterrupt() .

    What's problem?

Thanks&regard

Li