#define LOS_ERRNO_SEM_PENDED   LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x09)

Semaphore error code: The queue of the tasks that are waiting on the semaphore control structure is not null.

Value: 0x02000709

Solution: Delete the semaphore after awaking all tasks that are waiting on the semaphore.

在文件los_sem.h153行定义。