diff --git a/src/device/DeviceBootloader.cpp b/src/device/DeviceBootloader.cpp index 43ebc7667..6e3653261 100644 --- a/src/device/DeviceBootloader.cpp +++ b/src/device/DeviceBootloader.cpp @@ -398,6 +398,12 @@ void DeviceBootloader::saveDepthaiApplicationPackage(std::string path, Pipeline& std::tuple DeviceBootloader::flashDepthaiApplicationPackage(std::function progressCb, std::vector package) { streamId_t streamId = stream->getStreamId(); + // Bug in NETWORK bootloader in version 0.0.12 < 0.1.0 - flashing can cause a soft brick + auto version = getVersion(); + if(bootloaderType == Type::NETWORK && version < Version(0, 1, 0)) { + throw std::invalid_argument("Network bootloader requires version 0.1.0 or higher to flash applications. Current version: " + version.toString()); + } + // send request to FLASH BOOTLOADER dai::bootloader::request::UpdateFlash updateFlash; updateFlash.storage = dai::bootloader::request::UpdateFlash::SBR;