! @brief Init task: verify that at least one core was discovered.

def check_for_cores(self):
        """! @brief Init task: verify that at least one core was discovered."""
        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!")