2022-08-17 02:45 AM
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
Solved! Go to Solution.
2022-08-30 06:42 AM
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
2022-08-30 06:42 AM
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
2022-10-04 12:42 AM
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
2022-10-17 05:17 AM
Sorry I dont exactly know, I get my Program running without FreeRTOS