code: def check_for_cores(self):
          
          if not len(self.cores):
              # Allow the user to override the exception to enable uses like chip bringup.
              if self.session.options.get('allow_no_cores', False):
                  logging.error("No cores were discovered!")
              else:
                  raise exceptions.DebugError("No cores were discovered!")
docs: ! @brief Init task: verify that at least one core was discovered.