#define LOS_ERRNO_SEM_PEND_IN_LOCK   LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x06)

Semaphore error code: The task is unable to request a semaphore because task scheduling is locked.

Value: 0x02000706

Solution: Do not call LOS_SemPend when task scheduling is locked.

在文件los_sem.h123行定义。