STM32 Nucleo Board and MATLAB serial communication.

21 views (last 30 days)
When I'm reading data from serial port on STM32 Nucleo Board in MATLAB, I got the following warning and I couldn't read data.
Code:
s = serialport('COM6', 460800)
flush(s);
data = readline(s);
Warning: The specified amount of data was not returned within the Timeout period for 'readline'. 'serialport' unable to read any data.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!