mirror of
https://github.com/sascha-hemi/pycom-documentation.git
synced 2026-03-21 03:04:13 +01:00
Safeboot button highlight (#351)
* added safeboot images * added additional description * Create expansionboard31_sb.png * added expansionboard safeboot button
This commit is contained in:
@@ -16,13 +16,18 @@ Some times the code you have written will prevent you gaining access to the REPL
|
||||
* Your code gets stuck before reaching the REPL
|
||||
* You set a socket as blocking but never receive any data
|
||||
|
||||
In order to fix this you can safe boot your module. This will prevent `boot.py` and `main.py` from being executed and will drop you straight into the interactive REPL. After reset, if `P12` pin is held `high` (i.e. connect it to the `3V3` output pin), the heartbeat LED will begin flashing orange slowly. If after 3 seconds the pin is still held high, the LED will start blinking faster. In this mode the module will do the same as previously explained but it will also select the previous OTA image to boot if you have updated the module via the OTA update procedure (updates performed via the firmware update tool do not count). This is useful if you flashed a OTA update that breaks the device.
|
||||
In order to fix this you can safe boot your module. This will prevent `boot.py` and `main.py` from being executed and will drop you straight into the interactive REPL. After reset, if `P12` pin is held `high` (i.e. connect it to the `3V3` output pin), the heartbeat LED will begin flashing orange slowly. If after 3 seconds the pin is still held high, the LED will start blinking faster. In this mode the module will do the same as previously explained but it will also select the previous OTA image to boot if you have updated the module via the OTA update procedure (updates performed via the firmware update tool do not count). This is useful if you flashed a OTA update that breaks the device. The following expansionboards have a dedicated safeboot-button:
|
||||
|
||||
| Expansionboard 3.1 | Pygate | Pysense 2.0X | Pytrack 2.0 X |
|
||||
|:----|:---|:-----|:-----|
|
||||
|  | ]| |  |
|
||||
|
||||
|
||||
Pin `P12` released during:
|
||||
|
||||
| 1st 3 secs window | 2nd 3 secs window |
|
||||
| 1st 3 secs window (slow flashing) | 2nd 3 secs window (fast flashing) |
|
||||
| :--- | :--- |
|
||||
| Disable `boot.py` and `main.py` | Same as previous but using previous OTA firmware |
|
||||
| Disable `boot.py` and `main.py` | Disable `boot.py` and `main.py` and use previous OTA firmware |
|
||||
|
||||
The selection made during safe boot is not persistent, therefore after the next normal reset, the latest firmware will proceed to run again.
|
||||
|
||||
|
||||
BIN
static/gitbook/assets/expansionboards/expansionboard31_sb.png
Normal file
BIN
static/gitbook/assets/expansionboards/expansionboard31_sb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 148 KiB |
BIN
static/gitbook/assets/expansionboards/pygate_sb.png
Normal file
BIN
static/gitbook/assets/expansionboards/pygate_sb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 134 KiB |
BIN
static/gitbook/assets/expansionboards/pysense2_sb.png
Normal file
BIN
static/gitbook/assets/expansionboards/pysense2_sb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
BIN
static/gitbook/assets/expansionboards/pytrack2_sb.png
Normal file
BIN
static/gitbook/assets/expansionboards/pytrack2_sb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in New Issue
Block a user