Uart block_read_write
Overview
After the application starts, perform the following 2 operations:
Initialize serial port 1
Cyclically read data from serial port 1 blocking mode and write back to serial port 1
Requirements
Note that the configuration of serial port 1 in the device table matches the board
Building and flashing
Sample location: examples/peripheral/uart/block_read_write
For operations such as compiling and burning, please refer to: [Quick Start] (../../../../../get_started/index. html # build function)
Running result
Successfully running will output the following logs
D/dt [0.002] add device iflash
D/ptb [0.002] partition table base 0xe000
D/ft [0.002] ft_0 base 0, ft_1 base 1000
D/ft [0.004] ft init too
D/ft [0.004] ft init 1
D/main [0.004] boot reason 0
D/main [0.004] heap size 273160(266.76KB)
D/main [0.004] flash size 0x200000(2MB)
I/exam_uart [0.006] uart block read write demo start.
D/dt [0.006] add device uart1