-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #886 from luxonis/update_bootloader
Updated bootloader docs/examples
- Loading branch information
Showing
6 changed files
with
104 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
Flash User Bootloader | ||
===================== | ||
|
||
This script will flash :ref:`user bootloader <Factory and User bootloader>` to the connected OAK camera. | ||
:ref:`Bootloader` can only be flashed to devices that have on-board flash memory. | ||
|
||
.. note:: | ||
We suggest using :ref:`Device Manager`, a GUI tool for interfacing with the bootloader and its configurations. | ||
|
||
Demo | ||
#### | ||
|
||
Example script output | ||
|
||
.. code-block:: bash | ||
~/depthai-python/examples/bootloader$ python3 flash_user_bootloader.py | ||
[0] 1844301041C83D0E00 [X_LINK_USB_VSC] current bootloader: 0.0.26 | ||
Which DepthAI device to flash User Bootloader for (Note: Only NETWORK supported) [0..0]: 0 | ||
User Bootloader version to flash: 0.0.26 | ||
Flashing User Bootloader... | ||
Flashing progress: 0.0% | ||
Flashing progress: 18.8% | ||
Flashing progress: 31.2% | ||
Flashing progress: 48.2% | ||
Flashing progress: 94.2% | ||
Flashing progress: 100.0% | ||
Flashing successful. Took 7.55600329185836 seconds | ||
Setup | ||
##### | ||
|
||
.. include:: /includes/install_from_pypi.rst | ||
|
||
Source code | ||
########### | ||
|
||
.. tabs:: | ||
|
||
.. tab:: Python | ||
|
||
Also `available on GitHub <https://github.com/luxonis/depthai-python/blob/main/examples/bootloader/flash_user_bootloader.py>`__ | ||
|
||
.. literalinclude:: ../../../../examples/bootloader/flash_user_bootloader.py | ||
:language: python | ||
:linenos: | ||
|
||
.. tab:: C++ | ||
|
||
Also `available on GitHub <https://github.com/luxonis/depthai-core/blob/main/examples/bootloader/flash_user_bootloader.cpp>`__ | ||
|
||
.. literalinclude:: ../../../../depthai-core/examples/bootloader/flash_user_bootloader.cpp | ||
:language: cpp | ||
:linenos: | ||
|
||
.. include:: /includes/footer-short.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters