Skip to content

Commit 265d6dd

Browse files
committed
FW - Fixed v5 calibration flashing
1 parent be7c0d4 commit 265d6dd

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

cmake/Depthai/DepthaiDeviceSideConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set(DEPTHAI_DEVICE_SIDE_MATURITY "snapshot")
33

44
# "full commit hash of device side binary"
5-
set(DEPTHAI_DEVICE_SIDE_COMMIT "41c699525096ce7cb01985b3d377cd13e491e20f")
5+
set(DEPTHAI_DEVICE_SIDE_COMMIT "154e46b348850ede50402af4bd2b99e39b47a003")
66

77
# "version if applicable"
88
set(DEPTHAI_DEVICE_SIDE_VERSION "")

examples/mixed/multiple_devices.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ int main(int argc, char** argv) {
4242
std::cout << " >>> MXID:" << mxId << std::endl;
4343
std::cout << " >>> Num of cameras:" << cameras.size() << std::endl;
4444
std::cout << " >>> USB speed:" << usbSpeed << std::endl;
45-
if(eepromData.boardName != ""){
45+
if(eepromData.boardName != "") {
4646
std::cout << " >>> Board name:" << eepromData.boardName << std::endl;
4747
}
48-
if(eepromData.productName != ""){
48+
if(eepromData.productName != "") {
4949
std::cout << " >>> Product name:" << eepromData.productName << std::endl;
5050
}
5151
auto pipeline = createPipeline();

include/depthai/device/DeviceBootloader.hpp

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,8 @@ class DeviceBootloader {
152152
* @param applicationName Optional name the application that is flashed
153153
* @returns Depthai application package
154154
*/
155-
static std::vector<uint8_t> createDepthaiApplicationPackage(const Pipeline& pipeline,
156-
const dai::Path& pathToCmd = {},
157-
bool compress = false,
158-
std::string applicationName = "", bool checkChecksum = false);
155+
static std::vector<uint8_t> createDepthaiApplicationPackage(
156+
const Pipeline& pipeline, const dai::Path& pathToCmd = {}, bool compress = false, std::string applicationName = "", bool checkChecksum = false);
159157

160158
/**
161159
* Creates application package which can be flashed to depthai device.
@@ -164,7 +162,10 @@ class DeviceBootloader {
164162
* @param applicationName Name the application that is flashed
165163
* @returns Depthai application package
166164
*/
167-
static std::vector<uint8_t> createDepthaiApplicationPackage(const Pipeline& pipeline, bool compress, std::string applicationName = "", bool checkChecksum = false);
165+
static std::vector<uint8_t> createDepthaiApplicationPackage(const Pipeline& pipeline,
166+
bool compress,
167+
std::string applicationName = "",
168+
bool checkChecksum = false);
168169

169170
/**
170171
* Saves application package to a file which can be flashed to depthai device.
@@ -174,8 +175,12 @@ class DeviceBootloader {
174175
* @param compress Optional boolean which specifies if contents should be compressed
175176
* @param applicationName Optional name the application that is flashed
176177
*/
177-
static void saveDepthaiApplicationPackage(
178-
const dai::Path& path, const Pipeline& pipeline, const dai::Path& pathToCmd = {}, bool compress = false, std::string applicationName = "", bool checkChecksum = false);
178+
static void saveDepthaiApplicationPackage(const dai::Path& path,
179+
const Pipeline& pipeline,
180+
const dai::Path& pathToCmd = {},
181+
bool compress = false,
182+
std::string applicationName = "",
183+
bool checkChecksum = false);
179184

180185
/**
181186
* Saves application package to a file which can be flashed to depthai device.
@@ -184,7 +189,8 @@ class DeviceBootloader {
184189
* @param compress Specifies if contents should be compressed
185190
* @param applicationName Optional name the application that is flashed
186191
*/
187-
static void saveDepthaiApplicationPackage(const dai::Path& path, const Pipeline& pipeline, bool compress, std::string applicationName = "", bool checkChecksum = false);
192+
static void saveDepthaiApplicationPackage(
193+
const dai::Path& path, const Pipeline& pipeline, bool compress, std::string applicationName = "", bool checkChecksum = false);
188194

189195
/**
190196
* @returns Embedded bootloader version
@@ -255,7 +261,8 @@ class DeviceBootloader {
255261
* @param compress Compresses application to reduce needed memory size
256262
* @param applicationName Optional name the application that is flashed
257263
*/
258-
std::tuple<bool, std::string> flash(const Pipeline& pipeline, bool compress = false, std::string applicationName = "", Memory memory = Memory::AUTO, bool checkChecksum = false);
264+
std::tuple<bool, std::string> flash(
265+
const Pipeline& pipeline, bool compress = false, std::string applicationName = "", Memory memory = Memory::AUTO, bool checkChecksum = false);
259266

260267
/**
261268
* Reads information about flashed application in specified memory from device

src/device/DeviceBootloader.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@ std::vector<DeviceInfo> DeviceBootloader::getAllAvailableDevices() {
6767
return availableDevices;
6868
}
6969

70-
std::vector<uint8_t> DeviceBootloader::createDepthaiApplicationPackage(const Pipeline& pipeline,
71-
const dai::Path& pathToCmd,
72-
bool compress,
73-
std::string applicationName, bool checkChecksum) {
70+
std::vector<uint8_t> DeviceBootloader::createDepthaiApplicationPackage(
71+
const Pipeline& pipeline, const dai::Path& pathToCmd, bool compress, std::string applicationName, bool checkChecksum) {
7472
// Serialize the pipeline
7573
PipelineSchema schema;
7674
Assets assets;
@@ -231,7 +229,10 @@ std::vector<uint8_t> DeviceBootloader::createDepthaiApplicationPackage(const Pip
231229
return fwPackage;
232230
}
233231

234-
std::vector<uint8_t> DeviceBootloader::createDepthaiApplicationPackage(const Pipeline& pipeline, bool compress, std::string applicationName, bool checkChecksum) {
232+
std::vector<uint8_t> DeviceBootloader::createDepthaiApplicationPackage(const Pipeline& pipeline,
233+
bool compress,
234+
std::string applicationName,
235+
bool checkChecksum) {
235236
return createDepthaiApplicationPackage(pipeline, "", compress, applicationName, checkChecksum);
236237
}
237238

@@ -242,7 +243,8 @@ void DeviceBootloader::saveDepthaiApplicationPackage(
242243
outfile.write(reinterpret_cast<const char*>(dap.data()), dap.size());
243244
}
244245

245-
void DeviceBootloader::saveDepthaiApplicationPackage(const dai::Path& path, const Pipeline& pipeline, bool compress, std::string applicationName, bool checkChecksum) {
246+
void DeviceBootloader::saveDepthaiApplicationPackage(
247+
const dai::Path& path, const Pipeline& pipeline, bool compress, std::string applicationName, bool checkChecksum) {
246248
auto dap = createDepthaiApplicationPackage(pipeline, compress, applicationName, checkChecksum);
247249
std::ofstream outfile(path, std::ios::binary);
248250
outfile.write(reinterpret_cast<const char*>(dap.data()), dap.size());

0 commit comments

Comments
 (0)