我正在使用 Ubuntu 20.04,并从以下网址下载了 Arduino IDE 1.9.0 betahttps://www.arduino.cc/en/Main/Software。
我将我的用户名添加到拨出组并重新启动:
sudo usermod -a -G dialout $USER
我通过以下方式启动它:
bash arduino
然后我为 STM32F103C8T6 主板编译了一个草图。草图编译得很好。
但是当我想从 FTDI 模块将草图上传到主板时,出现了这个错误:
Arduino : 1.9.0-beta (Linux), Board : "Generic STM32F1 series, Generic F103C8, STM32CubeProgrammer (Serial), Enabled (generic 'Serial'), None, Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"
Le croquis utilise 31540 octets (48%) de l'espace de stockage de programmes. Le maximum est de 65536 octets.
Les variables globales utilisent 1276 octets (6%) de mémoire dynamique, ce qui laisse 19204 octets pour les variables locales. Le maximum est de 20480 octets.
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
Serial Port ttyS0 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1,0, flow-control = off
Timeout error occured while waiting for acknowledgement.
Timeout error occured while waiting for acknowledgement.
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...
我不知道如何处理这个超时错误
谢谢
答案1
最后,在 Arduino IDE 中,转到“工具”>“端口”,然后选择 (串行端口 USB) dev/ttyUSB0 而不是 (串行端口) dev/ttyS0