Quality RTOS & Embedded Software

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


STR912, Port GCC and interrupt

Posted by damien h on July 11, 2008
Hi every body,

Well, i m sticky with a GCC port and a interrupt (an RTC, from 2Hz to 128Hz) problem which reset my software.
For user of IAR, the GCC port seems be more or less the same as yours..

I m sure this interrupt is responsible of the crash because the interrupt frequency of this RTC is connected to the frequency of FreeRTOS reset.
On the same way, a disabling of this interrupt and the software runs without problem.

Important : The execution of the same interrupt in "FIQ Mode" runs without problem.

This interrupt is empty : just clear and reenable, nothing else...

I'm supposing maybe something is wrong with the GCC interrupt management,
maybe in the FreeRTOS port task swap (GCC Port) or in the assembler file (CPSR register or macro Save-Restore Context)

If every body use interrupt on the STR91x port and GCC compilation, could you share with me your feedback.

Others ideas welcomed

Thanks in advance.


Context : FreeRTOS (5.0.0), GCC Yagarto, Eclipse, ARM9 STR912 and Board Olimex
To follow the following Thread : http://sourceforge.net/forum/forum.php?thread_id=2109568&forum_id=382005

RE: STR912, Port GCC and interrupt

Posted by damien h on July 14, 2008
According to my 2nd thread,

I found the problem : This is a SPURIOUS interrupt problem.
Answer is given in the following document from ST: (thanks Anis)
http://www.st.com/stonline/products/literature/an/13715.pdf , page 11.

Because I hadn't assigned a new default vector in the VIC0-1, during a spurious interrupt my software was branching to 0x00000000 means reset vector.

Just by adding following lines during the initialization of both VIC : everything seems fixed.

VIC0->DVAR = (u32)Dummy_Handler;
VIC1->DVAR = (u32)Dummy_Handler;


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

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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

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

Xilinx Microblaze and Zynq partner