Quality RTOS & Embedded Software

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




Loading

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.

Damien



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;

Damien


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists