Ejemplo n.º 1
0
 def populate(self, parameters):
     self.pipeline = Pipeline(parent=self,
                              job=self.job,
                              parameters=parameters)
     if self.job.device.hard_reset_command:
         self.pipeline.add_action(ResetDevice())
     self.pipeline.add_action(WaitUSBSerialDeviceAction())
     self.pipeline.add_action(ConnectDevice())
Ejemplo n.º 2
0
 def populate(self, parameters):
     self.internal_pipeline = Pipeline(parent=self, job=self.job, parameters=parameters)
     method_params = self.job.device['actions']['boot']['methods']['cmsis-dap']['parameters']
     usb_mass_device = method_params.get('usb_mass_device')
     resets_after_flash = method_params.get('resets_after_flash', True)
     if self.job.device.hard_reset_command:
         self.internal_pipeline.add_action(ResetDevice())
         self.internal_pipeline.add_action(WaitDevicePathAction(usb_mass_device))
     self.internal_pipeline.add_action(FlashCMSISAction())
     if resets_after_flash:
         self.internal_pipeline.add_action(WaitUSBSerialDeviceAction())
     self.internal_pipeline.add_action(ConnectDevice())
Ejemplo n.º 3
0
 def populate(self, parameters):
     self.pipeline = Pipeline(parent=self, job=self.job, parameters=parameters)
     method_params = self.job.device["actions"]["boot"]["methods"]["cmsis-dap"][
         "parameters"
     ]
     usb_mass_device = method_params.get("usb_mass_device")
     resets_after_flash = method_params.get("resets_after_flash", True)
     if self.job.device.hard_reset_command:
         self.pipeline.add_action(ResetDevice())
         self.pipeline.add_action(WaitDevicePathAction(usb_mass_device))
     self.pipeline.add_action(FlashCMSISAction())
     if resets_after_flash:
         self.pipeline.add_action(WaitUSBSerialDeviceAction())
     self.pipeline.add_action(ConnectDevice())
Ejemplo n.º 4
0
 def populate(self, parameters):
     self.pipeline = Pipeline(parent=self,
                              job=self.job,
                              parameters=parameters)
     self.pipeline.add_action(ResetDevice())
     self.pipeline.add_action(WaitUSBSerialDeviceAction())
     self.pipeline.add_action(ConnectDevice())
     if self.has_prompts(parameters):
         self.pipeline.add_action(AutoLoginAction())
     if self.test_has_shell(parameters):
         self.pipeline.add_action(ExpectShellSession())
         if "transfer_overlay" in parameters:
             self.pipeline.add_action(OverlayUnpack())
         self.pipeline.add_action(ExportDeviceEnvironment())