Flash User Bootloader ===================== This script will flash :ref:`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 `__ .. literalinclude:: ../../../../examples/bootloader/flash_user_bootloader.py :language: python :linenos: .. tab:: C++ Also `available on GitHub `__ .. literalinclude:: ../../../../depthai-core/examples/bootloader/flash_user_bootloader.cpp :language: cpp :linenos: .. include:: /includes/footer-short.rst