Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Interrupt is not working

Posted by Braun on December 7, 2011
Hi,

void vTask15( void *pvParameters )
{
startLFXOForRTC();
prepareEM2();
setupRTCTimeout();
do
{
rtcInterrupt = 0;
EMU_EnterEM2(false);
}while( rtcInterrupt == 0 );
vTaskDelete( NULL );
}
I generate five tasks.
Task 15 is to go into sleep mode.
I want to wake up the task with the RTC, is available on the board.
Unfortunately, it does not work.
The RTC IRQ_Handler is not running.
The RTC runs at 32kHz.
# define configCPU_CLOCK_HZ (14000000UL) is the setting in FreeRTOS_Config.h
What mistake am I doing?

RE: Interrupt is not working

Posted by Dave on December 7, 2011
You have made no attempt at giving information that allows people to answer your question (like which CPU you are using), but even without that, I would say your problem is not FreeRTOS related but hardware set up related.

RE: Interrupt is not working

Posted by Braun on December 7, 2011
Sorry,

EFM32G290F128
IAR_ARM_CM3

void vZustand( void *pvParameters )
{
const portTickType xDelay_ms = 1 / portTICK_RATE_MS;

for(;;)
{

switch (state)
{
case 0:
/* Task10 und Task11 werden ertsellt EM0*/
xTaskCreate( vTask10, "Task 10", configMINIMAL_STACK_SIZE, NULL, 2, xTask10Handle );//Task erstellen
xTaskCreate( vTask11, "Task 11", configMINIMAL_STACK_SIZE, NULL, 2, xTask11Handle );//Task erstellen

Yet another error occurs.
If I have two task (10,11), from the task (vZustand) out, create, the task(11) is not created .


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS