Différences entre versions de « Hack-wipy-boot-mode »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 32 : Ligne 32 :
 
If you have problems with the filesystem you can [[format the internal flash drive]].
 
If you have problems with the filesystem you can [[format the internal flash drive]].
  
To boot in safe mode, follow the detailed instructions described [[here]].
+
To boot in safe mode, follow the detailed instructions described [[Hack-wipy-generalite#Boot_Modes_et_Safe_boot|here]].
  
 
In safe mode, the boot.py and main.py files are not executed, and so the WiPy boots up with default settings. This means you now have access to the filesystem, and you can edit boot.py and main.py to fix any problems.
 
In safe mode, the boot.py and main.py files are not executed, and so the WiPy boots up with default settings. This means you now have access to the filesystem, and you can edit boot.py and main.py to fix any problems.

Version du 22 mai 2016 à 19:17


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

Réinitialisation et mode de démarrage

There are soft resets and hard resets.

Réinitialisation logicielle

A soft reset simply clears the state of the MicroPython virtual machine, but leaves hardware peripherals unaffected. To do a soft reset, simply press Ctrl+D on the REPL, or within a script do:

import sys
sys.exit()

Réinitialisation matérielle

A hard reset is the same as performing a power cycle to the board. In order to hard reset the WiPy, press the switch on the board or:

import machine
machine.reset()

Safe Boot

Nous pouvons traduire "safe boot" par démarrage en mode sans échec.

If something goes wrong with your WiPy, don’t panic! It is almost impossible for you to break the WiPy by programming the wrong thing.

The first thing to try is to boot in safe mode: this temporarily skips execution of boot.py and main.py and gives default WLAN settings.

If you have problems with the filesystem you can format the internal flash drive.

To boot in safe mode, follow the detailed instructions described here.

In safe mode, the boot.py and main.py files are not executed, and so the WiPy boots up with default settings. This means you now have access to the filesystem, and you can edit boot.py and main.py to fix any problems.

Entering safe mode is temporary, and does not make any changes to the files on the WiPy.


Tutoriel WiPy tutorials and examples & general information about WiPy sous copyright de Damien George et contributeurs en ce qui concerne MicroPython et/ou PyCom en ce qui concerne les informations relatives a WiPy et LoPy.

Tutoriel traduit par Meurisse D. pour MCHobby.be

Traduit avec l'autorisation de micropython.org - Translated with the authorisation of micropython.org également avec l'accord de Daniel Compara (créateur de WiPy).

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.