embOS for ARM version 4.30 with IAR workbench 7.8
using STM32 family STM32F303VE controller
Whenever I try to use OS interfaces its throwing os error 166(OS_ERR_CPU_STATE_ISR_ILLEGAL)
Ex Interfaces;
OS_EnterNestableInterrupt();
OS_SignalEvent(JUPEvent, &TCB_JUPEvent);
here is the code snipet of ISR handler
void TIM3_IRQHandler(void)
{
OS_EnterNestableInterrupt();
// Check for Timer Status register to know whether interrupt has occured
if(((TIM3->SR & (DWORD)TIM_SR_UIF) == (DWORD)TIM_SR_UIF) != RESET)
{
// Check for Update Interrupt Enable bit
if(((TIM3->DIER & (DWORD)TIM_DIER_UIE) == (DWORD)TIM_DIER_UIE) != RESET)
{
TIM3->SR &=~((DWORD)TIM_DIER_UIE) ;
}
}
OS_LeaveNestableInterrupt();
}
please help..
using STM32 family STM32F303VE controller
Whenever I try to use OS interfaces its throwing os error 166(OS_ERR_CPU_STATE_ISR_ILLEGAL)
Ex Interfaces;
OS_EnterNestableInterrupt();
OS_SignalEvent(JUPEvent, &TCB_JUPEvent);
here is the code snipet of ISR handler
void TIM3_IRQHandler(void)
{
OS_EnterNestableInterrupt();
// Check for Timer Status register to know whether interrupt has occured
if(((TIM3->SR & (DWORD)TIM_SR_UIF) == (DWORD)TIM_SR_UIF) != RESET)
{
// Check for Update Interrupt Enable bit
if(((TIM3->DIER & (DWORD)TIM_DIER_UIE) == (DWORD)TIM_DIER_UIE) != RESET)
{
TIM3->SR &=~((DWORD)TIM_DIER_UIE) ;
}
}
OS_LeaveNestableInterrupt();
}
please help..