我正在使用 Ubuntu 20.04 并已从https://www.arduino.cc/en/Main/Software下载了 Arduino IDE 1.9.0 测试版。
我将我的用户名添加到拨出组并重新启动:
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...
我不知道如何处理这个通过超时错误
谢谢
最后,在 Arduino IDE 中转到 Tools > Port 并选择 (Serial Port USB) dev/ttyUSB0 not (Serial Port) dev/ttyS0