Device: Add EnterApplicationPhases step
parent
8cb62c2cae
commit
68ebb6dae4
|
|
@ -58,7 +58,7 @@ public:
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<EnterBootloaderPhase>()
|
.add<EnterBootloaderPhase>()
|
||||||
.add<FlashPhase>(ChipID::RADA2B_ZCHIP, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADA2B_ZCHIP, BootloaderCommunication::RAD)
|
||||||
// .add<ReconnectPhase>()
|
.add<EnterApplicationPhase>(ChipID::RADA2B_ZCHIP)
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
||||||
}
|
}
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ public:
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<EnterBootloaderPhase>()
|
.add<EnterBootloaderPhase>()
|
||||||
.add<FlashPhase>(ChipID::RADComet_ZYNQ, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADComet_ZYNQ, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RADComet_ZYNQ)
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
||||||
.add<ReconnectPhase>();
|
.add<ReconnectPhase>();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,7 @@ public:
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<EnterBootloaderPhase>()
|
.add<EnterBootloaderPhase>()
|
||||||
.add<FlashPhase>(ChipID::RADCOMET3_ZCHIP, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADCOMET3_ZCHIP, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RADCOMET3_ZCHIP)
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(5000))
|
.add<WaitPhase>(std::chrono::milliseconds(5000))
|
||||||
.add<ReconnectPhase>();
|
.add<ReconnectPhase>();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ public:
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<EnterBootloaderPhase>()
|
.add<EnterBootloaderPhase>()
|
||||||
.add<FlashPhase>(ChipID::RADGalaxy_ZYNQ, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADGalaxy_ZYNQ, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RADGalaxy_ZYNQ)
|
||||||
.add<ReconnectPhase>()
|
.add<ReconnectPhase>()
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,9 +87,10 @@ public:
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<EnterBootloaderPhase>()
|
.add<EnterBootloaderPhase>()
|
||||||
.add<FlashPhase>(ChipID::RAD_GALAXY_2_ZMPCHIP_ID, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RAD_GALAXY_2_ZMPCHIP_ID, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RAD_GALAXY_2_ZMPCHIP_ID)
|
||||||
.add<ReconnectPhase>()
|
.add<ReconnectPhase>()
|
||||||
.add<FlashPhase>(ChipID::RADGALAXY2_SYSMON_CHIP, BootloaderCommunication::RADGalaxy2Peripheral)
|
.add<FlashPhase>(ChipID::RADGALAXY2_SYSMON_CHIP, BootloaderCommunication::RADGalaxy2Peripheral)
|
||||||
.add<EnterApplicationPhase>(ChipID::RAD_GALAXY_2_ZMPCHIP_ID)
|
.add<EnterApplicationPhase>(ChipID::RADGALAXY2_SYSMON_CHIP)
|
||||||
.add<ReconnectPhase>()
|
.add<ReconnectPhase>()
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
.add<WaitPhase>(std::chrono::milliseconds(3000));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,11 +93,13 @@ public:
|
||||||
if(com->driver->isEthernet()) {
|
if(com->driver->isEthernet()) {
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<FlashPhase>(ChipID::RADGigastar_ZYNQ, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADGigastar_ZYNQ, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RADGigastar_ZYNQ)
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
||||||
.add<ReconnectPhase>();
|
.add<ReconnectPhase>();
|
||||||
}
|
}
|
||||||
return BootloaderPipeline()
|
return BootloaderPipeline()
|
||||||
.add<FlashPhase>(ChipID::RADGigastar_USBZ_ZYNQ, BootloaderCommunication::RAD)
|
.add<FlashPhase>(ChipID::RADGigastar_USBZ_ZYNQ, BootloaderCommunication::RAD)
|
||||||
|
.add<EnterApplicationPhase>(ChipID::RADGigastar_USBZ_ZYNQ)
|
||||||
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
.add<WaitPhase>(std::chrono::milliseconds(3000))
|
||||||
.add<ReconnectPhase>();
|
.add<ReconnectPhase>();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue