Receiving data from UART using a queue. The UART will be configured to have interrupts. When the interrupt happens then a character will be received and be sent to a queue. A task will then process the queue's information. After that, the task will transmit data back to UART.
Select the configuration tab.
Click UART2. Go to NVIC and enable the UART2 Interrupt.
Create a queue in the FreeRTOS selection. The queue will be used to store data.
Now generate the code and start OpenSTM32.
Create this new function in main.c
And this to the default task in main.c .
Now run the code.
Send some data to the STM32.
echo "Hello World!" > /dev/ttyACM0