gpt4 book ai didi

linux - 串口不可用arduino

转载 作者:太空宇宙 更新时间:2023-11-04 12:00:20 24 4
gpt4 key购买 nike

尝试将代码上传到 arduino,但无论是在 Arduino IDE 还是 Arduino Create 中,都在上传时返回此错误。在 Linux Tara(mint 19 cinnamon)上运行。

./opt/arduino-builder/arduino-builder -compile -core-api-version 10611 -hardware opt/arduino-builder/hardware -hardware ./opt/cores -tools opt/arduino-builder/tools -tools ./opt/tools -built-in-libraries opt/libraries/latest -logger humantags -fqbn arduino:avr:mega:cpu=atmega2560 -build-cache /tmp -build-path /tmp/716441957/build -verbose -libraries /tmp/716441957/custom -libraries /tmp/716441957/pinned /tmp/716441957/sketch_oct8a

Sketch uses 8280 bytes (3%) of program storage space. Maximum is 253952 bytes.

Global variables use 443 bytes (5%) of dynamic memory, leaving 7749 bytes for local variables. Maximum is 8192 bytes.

Programming with: Serial

Flashing with command:/home/jesus/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude -C/home/jesus/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -q -q -patmega2560 -cwiring -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino-create-agent734074237/sketch_oct8a.hex:i

avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied

ioctl("TIOCMGET"): Inappropriate ioctl for device

ioctl("TIOCMGET"): Inappropriate ioctl for device

最佳答案

1#首先,检查 IDE 中的端口。在 Arduino 工具->端口如果端口被隐藏或者你不能将光标移到它上面,那么在你的终端中运行这个命令。如果一切正常,那么跳过这个并继续第二部分。

sudo apt-get install librxtx-java -y

sudo usermod -aG dialout $USER

sudo apt-get install gnome-system-tools

2#
在此之后再次检查第一种方法。如果它不起作用,则运行此命令

ls -l /dev/ttyACM*
sudo usermod -a -G dialout <username>

关于linux - 串口不可用arduino,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52705039/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com