J'ai une arduino Leo et j'ai uploadé un sketch qui simule un clavier, toutes les 3 sec il écrit "HELLO WORLD".
J'ai fais ce sketch juste pour tester, mais voilà depuis je ne peux plus rien uploader :o
J'appuie sur le bouton reset plusieurs fois mais rien à faire, après pleins de recherches google je ne trouve rien de concluant.
Alors comment faire un reset de cette arduino ? On dirait qu'elle ne veut rien savoir, je vais quand même pas la jeter...
Salut Kamill,
merci de ta réponse mais ca ne fonctionne pas,
j'ai beau uploader plein de sketchs différents voir complètement vide, même en tenant le bouton reset durant le transfert, la carte continue de m'envoyer "HELLO WORLD" quand même.
Ils suggèrent ça tenir reset appuyé tant que vous ne voyez pas téléchargement apparaitre puis de relâcher à ce moment
Press and hold the reset button on the Leonardo or Micro, then hit the upload button in the Arduino software. Only release the reset button after you see the message "Uploading..." appear in the software's status bar. When you do so, the bootloader will start, creating a new virtual (CDC) serial port on the computer. The software will see that port appear and perform the upload using it. Again, this is only necessary if the normal upload process (i.e. just pressing the uploading button) doesn't work. (Note that the auto-reset is initiated when the computer opens the serial port at 1200 baud and then closes it; this won't work if something interferes with the board's USB communication - e.g. disabling interrupts.)
Automatic (Software) Reset and Bootloader Initiation
Rather than requiring a physical press of the reset button before an upload, the Leonardo is designed in a way that allows it to be reset by software running on a connected computer. The reset is triggered when the Leonardo's virtual (CDC) serial / COM port is opened at 1200 baud and then closed. When this happens, the processor will reset, breaking the USB connection to the computer (meaning that the virtual serial / COM port will disappear). After the processor resets, the bootloader starts, remaining active for about 8 seconds. The bootloader can also be initiated by pressing the reset button on the Leonardo. Note that when the board first powers up, it will jump straight to the user sketch, if present, rather than initiating the bootloader.
Because of the way the Leonardo handles reset it's best to let the Arduino software try to initiate the reset before uploading, especially if you are in the habit of pressing the reset button before uploading on other boards. If the software can't reset the board you can always start the bootloader by pressing the reset button on the board.
Si vous êtes sous unix un petit script Python peut lancer les bonnes commandes - à essayer
#! /usr/bin/python
import sys
import serial
ser = serial.Serial(sys.argv[1], 1200)
ser.close()
Suivi de la commande de téléchargement que vous pouvez recopier de la console
malheureusement je l'ai jeté aux déchets électroniques de mon boulot...
j'ai vraiment tout essayé de ce que j'ai pu trouver sur le net. La seule chose que je n'ai pas pu faire c'est lancer le script unix car je ne sais pas comment faire (je suis sur osx).
Mais bon tant pis, il me reste des uno merci de votre aide