Skip to main content
Pradnya
Associate II
March 19, 2020
Solved

How to generate UART RX INTERRUPT WITH SPC560PXX

Hello All,

I am working on UART on SPC560p Discovery board. I can transmit the data but unable to receive the data. I want to receive byte by interrupt method to avoid blocking.

Please guide me with Rx interrupt initialization so that I can use

"static void spc5xx_serve_rxi_interrupt(uint32_t isdp)" function given in "Serial_iid.c"

Also please suggest me if any other method to receive the data without blocking.

Thank You,

Pradnya

    This topic has been closed for replies.
    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    March 31, 2020

    Hello ,

    You have to enable LInFlex 0 Low Level Drivers

    you already support interrupt method in our driver

    please follow example serial application

    /**

     * @brief  LINFlex-0 RXI interrupt handler.

     *

     * @isr

     */

    IRQ_HANDLER(SPC5_LINFLEX0_RXI_HANDLER) {

     IRQ_PROLOGUE();

     LinflexD1.rxi_lincallback(LinflexD1.device);

     IRQ_EPILOGUE();

    }

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Technical Moderator
    March 31, 2020

    Hello ,

    You have to enable LInFlex 0 Low Level Drivers

    you already support interrupt method in our driver

    please follow example serial application

    /**

     * @brief  LINFlex-0 RXI interrupt handler.

     *

     * @isr

     */

    IRQ_HANDLER(SPC5_LINFLEX0_RXI_HANDLER) {

     IRQ_PROLOGUE();

     LinflexD1.rxi_lincallback(LinflexD1.device);

     IRQ_EPILOGUE();

    }

    Best regards

    Erwan

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.