Tov: avrdude: ser_open (): tsis tau qhib cuab yeej ntawm Arduino

Hauv tsab xov xwm no kuv yuav piav qhia yuav ua li cas los daws qhov kev ua yuam kev nyob hauv Arduino:

avrdude: ser_open (): tsis tau qhib cuab yeej "/ dev / ttyACM0": Tso cai tsis pom zoo

Tom qab

Tom qab lub sijhawm ntev ntev yam tsis tau siv Arduino Kuv tau coj kuv ob lub cev ntas (tus qauv qub thiab Elegoo) mus ua qee yam nrog kuv tus ntxhais. Kuv txuas lawv, Kuv yuav nkag mus rau tus ntsais pom tias txhua yam zoo thiab thaum kuv mus xa nws mus rau pawg thawj coj saib nws rov ua qhov kev ua yuam kev zoo.

Arduino: 1.8.5 (Linux), Daim Ntawv: "Arduino / Genuino Uno" avrdude: ser_open (): tsis tuaj yeem qhib ntaus ntawv "/ dev / ttyACM0": Kev Pom Zoo tsis kam muab Teeb meem upload rau pawg thawj coj saib. Txuas mus xyuas http://www.arduino.cc/en/Guide/Troubleshooting#upload rau cov lus qhia.

Ob leeg ntawm kuv lub PC thiab kuv lub laptop Kuv tau Ubuntu 18.04 ntsia.

Tshuaj

Kuv pib los ntawm kev ua raws li cov txuas uas koj qhia kuvCov. Thiab kuv ua raws li cov theem

En cuab yeej / phaj Arduino / Genuino Uno tau xaiv

En cuab yeej / serial chaw nres nkoj / dev / ttyACM0

arduino avrdude hom teeb meem

thiab raws li cov ntaub ntawv qhia, yog tias muaj teeb meem nrog Tsav Tsheb thiab kev tso cai, Kuv qhib lub davhlau ya nyob twg thiab ua:

 sudo usermod -a -G tty yourUserName
 sudo usermod -a -G dialout yourUserName

qhov twg kojUserName yog koj lub npe siv

Tam sim no kuv nkag mus rau hauv thiab nkag nkag mus ntxiv. Thiab tsuas yog thaum kuv rov pib dua lub PC / laptop.

Nws tseem tsis ua haujlwm rau kuv thiab cov ntaub ntawv Arduino tsis pab ntxiv lawm. Yog li kuv tau khaws saib, hauv cov rooj sab laj thiab blog. Yog thaum ntawm no nws tsis ua hauj lwm rau koj thiab koj zoo li kuv. Ua raws cov kauj ruam tom ntej

ls / dev / ttyACM0 rov / dev / ttyACM0
ls -l / dev / ttyACM0 rov crw-rw—- 1 lub hauv paus dialout 166, 0 Nov 26 16:41 / dev / ttyACM

Nrog rau qhov no peb paub meej tias qhov chaw nres nkoj muaj

Peb tab tom yuav muab kev tso cai thiab tshawb xyuas yog tias peb cov neeg siv tau txais kev tso cai tsim nyog.

 sudo chmod a+rw /dev/ttyACM0
 id devuelve 20(dialout) 

Thiab kuv pom tias tus neeg siv nyob hauv pawg sib tau yog li ntu no peb tau txais nws txoj cai.

Dab tsi tau ua haujlwm rau kuv tau rov mus Arduino.

Yog tias koj kos

which avrdude

Thiab nws tsis rov qab dab tsi rov txhim kho Arduino yuav tsum daws.

sudo apt install --reinstall arduino

Thiab yog hais tias koj tsis tau daws qhov teeb meem, cia kuv saib ib qho thiab kuv yuav sim los pab koj.

AVRDUDE Cov Khoom Siv Troubleshooting

Muaj tus tsab ntawv lawv tau npaj kho qhov teeb meem noCov. Koj tuaj yeem sim saib seb nws pab koj. Kuv tsis tau siv nws tab sis kuv tabtom tawm nws vim kuv xav tias nws tuaj yeem yog qhov khoom siv muaj txiaj ntsig.

AVRDUDE

Kuv tso tawm me ntsis cov ntaub ntawv kom nkag siab zoo dua yog dab tsi AVRDUDE yog. Lub npe los ntawm AVRDUDE - AVR Downloader / UploaDEr

AVRDUDE yog kev siv hluav taws xob los rub / rub / tswj hwm cov ROM thiab EEPROM cov ntsiab lus ntawm AVR microcontrollers siv cov txheej txheem hauv-hauv lub cajmeem (ISP).

https://www.nongnu.org/avrdude/

AVRDUDE tau pib los ntawm Brian S. Dean raws li tus kheej ntiag tug ua ib qhov programmer rau Atmel AVR series ntawm cov neeg tswj hwm micro.

Koj tuaj yeem nrhiav cov software thiab cov ntaub ntawv ntau ntxiv nyob rau hauv lub vas sab qhov project.

1 lus hais txog "Kev daws: avrdude: ser_open (): tsis tau qhib cuab yeej ntawm Arduino"

  1. Kuv muaj teeb meem nrog arduino ib qho nws tsis sib txuas lus nrog lub ide lossis vice versa Kuv muaj txhua yam zoo tsim, tag nrho cov chaw nres nkoj phaj thiab lwm yam ... Kuv tau rub lub flip tab sis kuv tsis paub yuav ua li cas nws ua haujlwm los rov qab kho cov firmware uas kuv xav tias yog dab tsi tsis koj tuaj yeem nthuav dav me ntsis yuav ua li cas thiaj li rov nruab arduino ua tsaug Kuv yog qhov tshiab rau qhov no

    teb

Deja un comentario