Hi I’m using FreeRtos 5.2.0 , MPLAB 8.02 and the C30 compiler. I created a main() function with the following code:
T1CONbits.TON = 1;
/* Inicializo Hardware. */
xTaskCreate( vTarea, ( const portCHAR * const ) “Prueba1”, configMINIMAL_STACK_SIZE, &cProcId1, tskIDLE_PRIORITY, NULL );
// Resume the suspended task.
xYieldRequired = xTaskResumeFromISR( Handle );
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.
The task I create only prints out a text message. According to the Freertos API the xTaskResumeFromISR() function resumes a task when an interrupt occurs. I’m using a ds33FJ256GP710 device. The T1CONbits.TON = 1 activates de T1 timer from the dspic but it seems as if the rtos doesn’t capture the interrupt. What could be happening ?