def METHOD_NAME(self):
    try:
        # Start ICEman
        self.start_iceman()
        # Compose flash command
        cmd_flash = [self.spiburn, '--addr', str(self.addr), '--image', self.cfg.bin_file]
        if self.erase:
            cmd_flash += ["--erase-all"]
        # Run SPI burn flash tool
        self.check_call(cmd_flash)
    finally:
        self.stop_iceman()