@@ -5,17 +5,14 @@ Bootloader
55
66Depthai bootloader is a small program which aids in booting and updating bootloader or depthai application packages.
77
8- To be able to run hostless , the Depthai bootloader must be first flashed to the devices flash.
9- This step is required only once.
8+ To be able to run standalone ( :ref: ` documentation here < Standalone mode >`) , the Depthai bootloader must be first
9+ flashed to the devices flash. This step is required only once.
1010
11- Plug USB to the board
12- Flash bootloader using DeviceBootloader::flashBootloader (Check Example at the bottom)
13- Disconnect the board and switch the boot mode GPIO to the following settings: BOOT[4:0] : 01000 (see attached images for reference)
14- Reassemble the board
11+ Once the device has the bootloader flashed, it will perform the same as before. Running pipelines with a host
12+ connected doesn’t require any changes.
1513
16- Once the device has the bootloader flashed, it will perform the same as before. Running pipelines with a host connected doesn’t require any changes.
17-
18- Suggested workflow is to perform as much of development as possible with the host connected as the iteration cycle is greatly improved.
14+ Suggested workflow is to perform as much of development as possible with the host connected as the
15+ iteration cycle is greatly improved.
1916
2017Once desired pipeline is created, use the following function to flash: :code: `DeviceBootloader::flash `
2118
@@ -54,42 +51,4 @@ Depthai application package (**.dap**) consists of:
5451- Assets structure (section “assets”)
5552- Asset storage (section “asset_storage”)
5653
57- Example
58- #######
59-
60- Following section will show an example of: Flashing bootloader (needed only once) and flashing a created Pipeline “myExamplePipeline” to the device
61- (The example is written in Python, similar steps apply to C++)
62-
63- #. **Flashing bootloader **
64-
65- .. code-block :: python
66-
67- import depthai as dai
68- (f, bl) = dai.DeviceBootloader.getFirstAvailableDevice()
69- bootloader = dai.DeviceBootloader(bl)
70- progress = lambda p : print (f ' Flashing progress: { p* 100 :.1f } % ' )
71- bootloader.flashBootloader(progress)
72-
73- .. note ::
74- Make sure to switch GPIO BOOT mode settings (See image below for more details)
75-
76- #. **Flashing created pipeline **
77-
78- .. code-block :: python
79-
80- import depthai as dai
81- # ...
82- # Create Pipeline 'myExamplePipeline'
83- # ...
84- (f, bl) = dai.DeviceBootloader.getFirstAvailableDevice()
85- bootloader = dai.DeviceBootloader(bl)
86- progress = lambda p : print (f ' Flashing progress: { p* 100 :.1f } % ' )
87- bootloader.flash(progress, myExamplePipeline)
88-
89-
90- GPIO boot settings. Boot settings must be set as following: BOOT[4:0] : 01000 and GPIO58 (WAKEUP): 0
91-
92- .. image :: /_static/images/components/boot-depthai.jpeg
93- :alt: boot-depthai
94-
9554.. include :: ../includes/footer-short.rst
0 commit comments