Problem with serial write

6 ビュー (過去 30 日間)
Gyorgy
Gyorgy 2025 年 2 月 18 日
コメント済み: Vikky Patil 2025 年 3 月 4 日
Hi everyone!
I have a problem, that I try to send a command to the MCU (STM32F756), and the transmit is done I checked it with analyzer. But the nothing happens on the mcu site. Howewer when i send the command from tera term it works. What is wrong, is it any properties what i dont know?
serialportObj = serialport("COM17",115200,'Databits',8,"Parity","none","StopBits",1);
%getpinstatus(serialportObj);
%serialportObj.ClearToSend=1
%serialportObj.DataSetReady=1
%setCTS(serialportObj,true);
%getpinstatus(serialportObj)
%setRTS(serialportObj,true);
%getpinstatus(serialportObj)
writeline(serialportObj,'flashmode_on')
delete(serialportObj)
  2 件のコメント
dpb
dpb 2025 年 2 月 18 日
編集済み: dpb 2025 年 2 月 18 日
Lacking any knowledge whatsoever about the target, even a link to vendor documentation, it's impossible to know.
But, one possible issue might be the devce is expecting a command terminator character while whatever "tera term" is does so transparently.
Vikky Patil
Vikky Patil 2025 年 3 月 4 日
Hi Gyorgy,
I tried the model on F767ZI. Receive the data via USART3 and sent it back via USART 2 when data is available.
MATLAB was used to send the data and Putty was used to get back the loopback data.
It worked as expected.
Can you check in the algorithm do you need
  1. Flow control which is a name value pair for serialport
  2. Configure the terminator

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by