This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好、我正在使用与 MSP430微控制器连接的 MSP-FET 器件、在安装 CCS Studio 以及随附的驱动程序之后、我能够通过 Windows 上的串行端口进行输出。
在 Windows 中、我使用 putty/Teraterm、我所要做的就是指定 COM 端口来查看微控制器正在生成的串行输出。
在 Linux 上、当我通过 USB 连接 MSP FET 时、我获得了器件/dev/ttyACM0和/dev/ttyACM1、并加载了 CDC_ACM 驱动程序。 我安装了 CCS Studio 并运行驱动程序安装脚本。 似乎 udev 规则已正确放置在/etc/udev.d 中(Ubuntu 23.04)。 但是,当我尝试在 ACM*设备上使用 Putty 或仅使用 Plain cat 时,我没有得到任何输出。 不过、我能够使用 mspdebug 式器件连接到 FET。
为了获得串行输出、我必须在 Linux 上执行什么操作吗? 我读到、我们必须修改为 CDC_ACM 加载的驱动程序、使其不能视为调制解调器、这是它不能将其视为串行输出的原因之一吗?
我在使用"minicom -D /dev/ttyACM1 "时没有问题。
并具有适当的比特率设置、当然也是如此。
通过 stty 弄乱串行设置后、cat /dev/ttyACM1和 putty 现在工作。 这里是我的 stty 设置转储的完整性。
stty -A -F /dev/ttyACM1
速度9600波特;行0;列0;行= 0;
INTR =^C;quit =^\;erase =^?;kill =^U;eof =^D; EOL = ; eol2= ;切换= ;^=^Q;停止= S;
SUSP =^Z;rprnt =^R;werase =^W;lnext =^V;丢弃=^O; 最小值= 1;时间= 0;
-addarb -parodd -cmspar cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -装饰 onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke -flusho -extproc