/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / free rtos resume from isr problem

Username:     
Password:     
             

Forum

# 1   2011-02-23 23:27:53 free rtos resume from isr problem

dorraci
New member
Registered: 2010-09-29
Posts: 1

free rtos resume from isr problem

I'm use freeRTOS in the primer 2, followed the guide's website FreeRTOS to do resume from isr but not  working, someone can tell me what I'm doing wrong

code is isr handle:

void USART2_IRQHandler(void)
{
USART_ClearITPendingBit(USART2, USART_IT_CTS);
portBASE_TYPE xYieldRequired,xAlreadyYielded; // Resume the suspended task.
xYieldRequired = xTaskResumeFromISR( xHandle );
if( xYieldRequired == pdTRUE )
    { // We should switch context so the ISR returns to a different task.
    // NOTE: How this is done depends on the port you are using. Check
    // the documentation and examples for your port.   
    vPortYieldFromISR();
    }
}
and task is suspend before try resume i am sure
ty for your time

Offline

 

# 2   2011-02-25 12:38:17 free rtos resume from isr problem

pfandler
Member
From: Hungary
Registered: 2011-02-16
Posts: 26

Re: free rtos resume from isr problem

Did you debug the isr? Does the mcu enter it?

After entering the isr try to find out what happens with the stack pointer...

Offline

 

# 3   2011-03-28 20:52:42 free rtos resume from isr problem

clevelandgarage
New member
Registered: 2011-03-28
Posts: 2

Re: free rtos resume from isr problem

My thesis is MP3 Player using STM32. I have a kit with STM32F103RC, provided by my Teacher
And now, I don't know how to do with it...

Offline

 

# 4   2011-05-06 01:57:01 free rtos resume from isr problem

patricholier
New member
Registered: 2011-05-06
Posts: 1

Re: free rtos resume from isr problem

Hi

This topic help me a lot in developing my project. I will contribute more when I finished it.

If you want to get more materials that related to this topic, you can visit: Resume free

Best regards.

Last edited by patricholier (2011-05-11 14:25:08)

Offline

 

Board footer