#define LOS_ERRNO_SEM_PEND_INTERR   LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x05)

Semaphore error code: The API is called during an interrupt, which is forbidden.

Value: 0x02000705

Solution: Do not call the API during an interrupt.

在文件los_sem.h113行定义。