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

Tick wrong on Crossworks 2 for ARM?

Posted by Daniel Goertzen on July 29, 2009
I am working with Crossworks 2 for ARM, an Olimex 2378 demo board, and FreeRTOS 5.4.0. The demo for ARM7_LPC2368_Rowley would not compile at all, so I started my own simple FreeRTOS project. I eventually got it running, but only when interrupts are disabled (my sole task runs happily forever).

What appears to be happening is that irq_handler in vic_irq_handlers.s expects vNonPreemptiveTick() to exit differently than it does. vNonPreemptiveTick() reloads processor context and ends up in the middle of irq_handler in system mode, which eventually leads to another context reload from garbage and a prefetch abort.

Any advice on how to make this work right? I am new to Crossworks, ARM, and FreeRTOS.

Thanks,
Dan.

RE: Tick wrong on Crossworks 2 for ARM?

Posted by MEdwards on July 29, 2009
There are bugs in GCC interworking code in CW2. Try compiling to ARM mode only.

RE: Tick wrong on Crossworks 2 for ARM?

Posted by Daniel Goertzen on July 29, 2009
Everything was ARM mode.


I got things going by removing this line from portISR.c

void vNonPreemptiveTick( void ) __attribute__ ((interrupt ("IRQ")));


The same approach did not work for vPreemtiveTick(). It looks like irq_handler has to be different to allow this to work.

So am I correct in assuming that the port for ARM7_LPC2368_Rowley is meant for Crossworks 1.x? Will I find an irq_handler there that is more compatible with FreeRTOS?

Thanks,
Dan.


[ 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