This source file is to receive a character via USART with DMA transfer of Longan Nano and echo back the character to the termainal.
- systick.c
- lcd/lcd.c
These files are required to compile main.c, obtained from [https://github.com/sipeed/Longan_GD32VF_examples].
- Connect Longan Nano to your PC via USB-serial converter.
- Compile and load the hex file to Longan Nano via USB.
- Run serial termainal on your PC and connect to the port of USB-serial converter.
- Type some texts on the terminal, then these characters appears on Longan Nano's OLED and the terminal when 16 characters are typed.
- To receive via USART, the USART interrupt should be enabled, I think. (really ??)
- DMA usage is correct ??
- Some bug(?) are in the source file perhaps. The last character of previous type on the terminal appears as the first character of next DMA transfer.