reset impossible sur ma Leonardo

Bonjour à tous,

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...

Merci de votre aide

Bonjour,

  • Tu déconnectes ta carte
  • Tu charges un sketch vide dans l'IDE
  • A la fin du sketch tu mets un commentaire /* */
  • tu mets le curseur dans le commentaire
  • tu connectes la carte. Il va s'afficher HELLO WORLD, mais ce sera dans le commentaire
  • tu compiles et télécharge en cliquant sur le bouton ->
  • et voila!!

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.

Ca ne fait rien si ça envoie HELLO WORD (c'est normal) -> c'est dans le commentaire. Tu compiles et tu compiles et transfere.

mais c'est comme s'il ne prennait pas en compte le sketch, tout est ignoré, j'ai toujours le hello world

Est ce que la compilation et le transfert se passent bien?

oui il me dit que tout est OK, aucun problem...

bon j'ai laissé tombé je l'ai jeté tant pis
merci de votre aide

Au fond d'un tiroir j'espère, pas la poubelle,...sinon récupérez là,

C'est un problème documenté dont il faut effectivement se méfier

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

Bonjour,

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 :wink: merci de votre aide

un autre problème sur Leonardo . Lors d'un upload , on perd le controleur W5500 Ethernet . Seule solution reset électrique

je suis sur osx

mais OS X c'est unix.. suffisait de lancer l'application Terminal...