Go Down

Topic: ARDUINO : problèmes de téléversement  (Read 5268 times) previous topic - next topic


pomme-poire


RandomCraftr

Super tuto! Merci !J'ai eu besoin de le consulter récemment  :smiley-confuse: ... Dans mon cas c'était le bootloader que j'avais du corrompre par une mauvaise manip. Heureusement, j'avais quelques ATMEGA préparés pour ce genre de coup dur.

Dans l'esprit "mieux vaut prévenir que guérir", je vous conseille tous d'en préparer une paire d'avance. Pour quelques dizaines de centimes, il ne faut vraiment pas s'en priver. J'ai fait un petit tuto pour une carte R3 (les consignes, en français, diffèrent de la page ici qui m'a donné du fil à retordre: les puces préparées n'étaient pas du tout compatibles de ma carte Uno).

Le tuto: http://randomcraftr.com/?p=1363

Par contre j'aurai bien voulu faire ça sans l'IDE (que j'ai du réinstaller exprès), mais je n'ai pas trouvé comment réaliser la manip "Burn bootloader" de l'IDE avec l'IDE en ligne. Une idée ?


Mon site:  http://randomcraftr.com

hbachetti

Linux is like a wigwam: no Windows, no Gates, and an Apache inside ...

RandomCraftr

L'éditeur en ligne: je veux dire create.arduino.com.
Mon site:  http://randomcraftr.com

hbachetti

Linux is like a wigwam: no Windows, no Gates, and an Apache inside ...

Gerard68

Bonjour,
J'ai une carte MEGA2560 R3 et un MAC. Lors de la compilation, il m'est dit "can't open device "COM1": No such file or directory.
J'ai mis la carte en doute, j'ai fait un essai avec la UNO et c'est pareil.

Merci à toutes les âmes charitables qui m'aideront ou qui me proposeront un lien genre "Arduino pour les nuls".


hbachetti

Tu devrais sélectionner le bon port dans le menu "Outils".
Cela me semble étonnant qu'un port série sur MAC s'appelle COM1.
Linux is like a wigwam: no Windows, no Gates, and an Apache inside ...

dbrion06

Je suppose (de mémoire) que les noms de port pour macos commencent par /dev ( arduino stackoverflow https://arduino.stackexchange.com/questions/12133/mac-osx-yosemite-no-serial-ports-showing-for-uno-r3   m'a ramené  : /dev/usbmodem )

Gerard68

Merci à vous 2.
C'est toujours tellement simple quand ça fonctionne.
J'ai fait un essai de clignotement de la LED en 13 avec la UNO et la MEGA en sélectionnant les bons ports et les bonnes cartes et tout va bien.


iWizz

Bonjour pour mon premier arduino j'ai acheté une copie chinoise . Le code compile mais le téléversement est impossible . J'ai lancé Arduino en root  et sélectionné Atmega228P , arduino nano et le port /dev/ttyUSB0

J'obtient ca

<pre><font color="#8AE234"><b>lenovo@lenovo-ThinkPad-X240</b></font>:<font color="#729FCF"><b>~</b></font>$ sudo /home/lenovo/arduino-1.8.9/arduino
[sudo] Mot de passe de lenovo :      
Picked up JAVA_TOOL_OPTIONS:
Le croquis utilise 594 octets (1%) de l&apos;espace de stockage de programmes. Le maximum est de 30720 octets.
Les variables globales utilisent 9 octets (0%) de mémoire dynamique, ce qui laisse 2039 octets pour les variables locales. Le maximum est de 2048 octets.
avrdude: ser_open(): can&apos;t open device &quot;/dev/ttyUSB1&quot;: No such file or directory
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
Le croquis utilise 594 octets (1%) de l&apos;espace de stockage de programmes. Le maximum est de 30720 octets.
Les variables globales utilisent 9 octets (0%) de mémoire dynamique, ce qui laisse 2039 octets pour les variables locales. Le maximum est de 2048 octets.
avrdude: ser_open(): can&apos;t open device &quot;/dev/ttyUSB1&quot;: No such file or directory
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
Le croquis utilise 594 octets (1%) de l&apos;espace de stockage de programmes. Le maximum est de 30720 octets.
Les variables globales utilisent 9 octets (0%) de mémoire dynamique, ce qui laisse 2039 octets pour les variables locales. Le maximum est de 2048 octets.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problème de téléversement vers la carte. Voir http://www.arduino.cc/en/Guide/Troubleshooting#upload pour suggestions.
^C<font color="#8AE234"><b>lenovo@lenovo-ThinkPad-X240</b></font>:<font color="#729FCF"><b>~</b></font>$
</pre>


Avec d'autre sélection je n'obtiens rien.


Sur ma carte il ya marqué d'un coté : MEGA 328P U-TH
de l'autre : CH340G

J'ai la led power qui s'allume en rouge.La led L qui clignote jaune tous le temps qui s'arrete et qui reprend quand j'appuie sur le bouton reset

J'ai essayé dsmeg


usb 2-2: ch341-uart converter now attached to ttyUSB0
[    7.133640] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[    7.142856] uvcvideo: Found UVC 1.00 device Integrated Camera (5986:0268)
[    7.156691] uvcvideo 2-8:1.0: Entity type for entity Extension 4 was not initialized!
[    7.156694] uvcvideo 2-8:1.0: Entity type for entity Extension 3 was not initialized!
[    7.156696] uvcvideo 2-8:1.0: Entity type for entity Processing 2 was not initialized!
[    7.156698] uvcvideo 2-8:1.0: Entity type for entity Camera 1 was not initialized!
[    7.156797] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/input/input19
[    7.163757] usbcore: registered new interface driver uvcvideo
[    7.163759] USB Video Class driver (1.1.1)
[    7.271419] Bluetooth: hci0: Intel firmware patch completed and activated
[    7.319696] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    7.455818] intel_rapl: Found RAPL domain package
[    7.455820] intel_rapl: Found RAPL domain core
[    7.455821] intel_rapl: Found RAPL domain uncore
[    7.455822] intel_rapl: Found RAPL domain dram
[    7.519726] usb 2-7: USB disconnect, device number 4
[    7.601750] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.601752] Bluetooth: BNEP filters: protocol multicast
[    7.601757] Bluetooth: BNEP socket layer initialized
[    7.626918] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[    7.671861] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[    7.944242] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[    7.952932] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[    8.191771] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[    8.257578] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   11.663648] iwlwifi 0000:03:00.0: got scan complete notification but no scan is running
[   11.664169] wlp3s0: authenticate with d0:ae:ec:14:d0:15
[   11.669721] wlp3s0: send auth to d0:ae:ec:14:d0:15 (try 1/3)
[   11.674331] wlp3s0: authenticated
[   11.676114] wlp3s0: associate with d0:ae:ec:14:d0:15 (try 1/3)
[   11.680393] wlp3s0: RX AssocResp from d0:ae:ec:14:d0:15 (capab=0x431 status=0 aid=4)
[   11.688098] wlp3s0: associated
[   11.773050] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[   20.515761] random: crng init done
[   20.515765] random: 7 urandom warning(s) missed due to ratelimiting
[  736.032851] usb 2-2: USB disconnect, device number 3
[  736.033268] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  736.033322] ch341 2-2:1.0: device disconnected
[ 2200.450915] usb 2-2: new full-speed USB device number 6 using xhci_hcd
[ 2200.600284] usb 2-2: New USB device found, idVendor=1a86, idProduct=7523
[ 2200.600288] usb 2-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2200.600290] usb 2-2: Product: USB2.0-Serial
[ 2200.600849] ch341 2-2:1.0: ch341-uart converter detected
[ 2200.601283] usb 2-2: ch341-uart converter now attached to ttyUSB0
lenovo@lenovo-ThinkPad-X240:~$ dmesg


iWizz

Puis en débranchant

[    7.112365] iwlwifi 0000:03:00.0: base HW address: 5c:51:4f:f5:81:dd
[    7.112682] usbcore: registered new interface driver ch341
[    7.112695] usbserial: USB Serial support registered for ch341-uart
[    7.112709] ch341 2-2:1.0: ch341-uart converter detected
[    7.114234] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer
[    7.114236] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
[    7.114236] RAPL PMU: hw unit of domain package 2^-14 Joules
[    7.114237] RAPL PMU: hw unit of domain dram 2^-14 Joules
[    7.114238] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
[    7.127482] Bluetooth: hci0: read Intel version: 370710018002030d00
[    7.128204] AVX2 version of gcm_enc/dec engaged.
[    7.128206] AES CTR mode by8 optimization enabled
[    7.133195] usb 2-2: ch341-uart converter now attached to ttyUSB0
[    7.133640] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[    7.142856] uvcvideo: Found UVC 1.00 device Integrated Camera (5986:0268)
[    7.156691] uvcvideo 2-8:1.0: Entity type for entity Extension 4 was not initialized!
[    7.156694] uvcvideo 2-8:1.0: Entity type for entity Extension 3 was not initialized!
[    7.156696] uvcvideo 2-8:1.0: Entity type for entity Processing 2 was not initialized!
[    7.156698] uvcvideo 2-8:1.0: Entity type for entity Camera 1 was not initialized!
[    7.156797] input: Integrated Camera: Integrated C as /devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/input/input19
[    7.163757] usbcore: registered new interface driver uvcvideo
[    7.163759] USB Video Class driver (1.1.1)
[    7.271419] Bluetooth: hci0: Intel firmware patch completed and activated
[    7.319696] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    7.455818] intel_rapl: Found RAPL domain package
[    7.455820] intel_rapl: Found RAPL domain core
[    7.455821] intel_rapl: Found RAPL domain uncore
[    7.455822] intel_rapl: Found RAPL domain dram
[    7.519726] usb 2-7: USB disconnect, device number 4
[    7.601750] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    7.601752] Bluetooth: BNEP filters: protocol multicast
[    7.601757] Bluetooth: BNEP socket layer initialized
[    7.626918] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
[    7.671861] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[    7.944242] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[    7.952932] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[    8.191771] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[    8.257578] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   11.663648] iwlwifi 0000:03:00.0: got scan complete notification but no scan is running
[   11.664169] wlp3s0: authenticate with d0:ae:ec:14:d0:15
[   11.669721] wlp3s0: send auth to d0:ae:ec:14:d0:15 (try 1/3)
[   11.674331] wlp3s0: authenticated
[   11.676114] wlp3s0: associate with d0:ae:ec:14:d0:15 (try 1/3)
[   11.680393] wlp3s0: RX AssocResp from d0:ae:ec:14:d0:15 (capab=0x431 status=0 aid=4)
[   11.688098] wlp3s0: associated
[   11.773050] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[   20.515761] random: crng init done
[   20.515765] random: 7 urandom warning(s) missed due to ratelimiting
[  736.032851] usb 2-2: USB disconnect, device number 3
[  736.033268] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[  736.033322] ch341 2-2:1.0: device disconnected
[ 2200.450915] usb 2-2: new full-speed USB device number 6 using xhci_hcd
[ 2200.600284] usb 2-2: New USB device found, idVendor=1a86, idProduct=7523
[ 2200.600288] usb 2-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2200.600290] usb 2-2: Product: USB2.0-Serial
[ 2200.600849] ch341 2-2:1.0: ch341-uart converter detected
[ 2200.601283] usb 2-2: ch341-uart converter now attached to ttyUSB0
[ 3391.735178] usb 2-2: USB disconnect, device number 6
[ 3391.735594] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 3391.735646] ch341 2-2:1.0: device disconnected



Merci a ceux qui voudront bien m'aider







hbachetti

et si tu essayais :     ATmega328p (Old Bootloader)
Linux is like a wigwam: no Windows, no Gates, and an Apache inside ...

iWizz

Alors je l'ai fait plein de fois hier et ca ne marché pas . Je viens de le refaire pour te montrer l'erreur et maintenant cela marche .
Donc un grand merci à toi pour ta réponse et ton topic

hbachetti

Code: [Select]
avrdude: ser_open(): can&apos;t open device &quot;/dev/ttyUSB1&quot;: No such file or directory

Étrange ce ttyUSB1
Linux is like a wigwam: no Windows, no Gates, and an Apache inside ...

Go Up