I am new to ChibiOS and this forum, I have a NUCLEO-F746ZG board and would like to try chibios. I want to test serial driver and uart driver to send and receive some fix size data, I used RT-STM32F746ZG-NUCLEO144 demo to find functions of chibios HAL library, in this demo the serial driver is used to send messages to the host computer using USART3 at baudrate of 115200 :
Code: Select all
sdStart(&SD3,&sd3cfg);
I can send bytes to the host computer with sdPut like this :
Code: Select all
uint8_t msg[13] = "helloWorld2\r\n";
for (int i=0; i<13; i++)
{
sdPut(&SD3,msg[i]);
}
my question is how can I start rx interrupt of usart3 to receive and store incoming bytes from host computer to a buffer? may I use DMA for large and high frequency incoming data using serial driver? how to implement it?
I didn't found any example of rx interrupt implementation in chibios.
Regards,
Amir.