cancel
Showing results for 
Search instead for 
Did you mean: 

RX_Callback at SPC560P - Disp

TBles.1
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

3 REPLIES 3
Erwan YVIN
ST Employee

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
Associate

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
Associate II

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