Skip to main content
TBles.1
Associate
August 17, 2022
Solved

RX_Callback at SPC560P - Disp

  • August 17, 2022
  • 3 replies
  • 2135 views

I want to know when or how exactly the RX callback function is triggered on the SPC560P - Disp Discovery board.

I have created the function at the low level driver at the serial configuration and see it also in serial_lld_cfg. I have defined it afterwards.

I want to work in asynchronous mode to avoid blocking. I can also receive single bytes with the function sd_lld_read().

But the callback function is never called or executed. what is the reason?

Actually I would like to receive more than just one byte which is why I want to use the callback function as an interrupt.

Can anyone help me here?

Thanks

Timo

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello ,

    for this,

    i recommend to use a RTOS (real Time os) (Example : Chibios or FreeRTOS)

    1 thread for RX/TX Serial

    1 thread for other stuff.

    Best regards

    Erwan

    3 replies

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    August 30, 2022

    Hello ,

    for this,

    i recommend to use a RTOS (real Time os) (Example : Chibios or FreeRTOS)

    1 thread for RX/TX Serial

    1 thread for other stuff.

    Best regards

    Erwan

    POlss.3
    Visitor II
    October 4, 2022

    Hi 

    I´m also trying to achieve the same goal, using the "SPC58ECxx_RLA FreeRTOS SERIAL Test Application for Discovery". Serial from MCU to PC is ok via USB to RS232 Converter.

    I fail to see how the interrupt of received serial message should be configured (Used in "Main.c")

    I would very much appreciate your help!

    I´m new to the SPC5 environment but I´m eager to learn! 

    Thanks in advance!

    Best Regards

    Peter

    TBles.1
    TBles.1Author
    Associate
    October 17, 2022

    Sorry I dont exactly know, I get my Program running without FreeRTOS