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


FreeRTOS with Rowley - AT91R4008

Posted by Nobody/Anonymous on April 11, 2007
I have ported the FreeRTOS code (ver 4.2.1) on Atmel EB01 board. I am able to compile and link under Rowley IDE. However, to test it, I bypassed all the tasks and just called
vTaskStartScheduler() in the main with the assumption that this call will create an idle task and start the whole system. Also, I added the following code in the main() to see if the timer interrupt was working.

void vApplicationIdleHook(void){
static portLONG testCount = 0;;
if (((testCount = xTaskGetTickCount())% 50) == 0){
vParTestToggleLED( 1 );

Essentially, this routine checks to see if the timerTick was ticking or not and seems to work fine.
Now I added another dummy task to check the opeartion of the freeRTOS.
xTaskCreate( vDlyTest, ( signed portCHAR * ) "DlyCheck", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );

Task code is:
static void vDlyTest( void *pvParameters )
// delay task for 200 ticks and then toggle the led

for( ;; )
/* Delay until it is time to execute again. */
vTaskDelay( 200 );
vParTestToggleLED( 0 );


This task is created - I can see the program go thru the vTaskDelay function after the scheduler is invoked but now the timer interrupt is not happening with the result the system is non functional.

What could cause the interrupt to be disabled by adding this function?

RE: FreeRTOS with Rowley - AT91R4008

Posted by Nobody/Anonymous on April 12, 2007
I found the problem. Sorry for the post

RE: FreeRTOS with Rowley - AT91R4008

Posted by embeddedc on April 12, 2007
>Sorry for the post

No problem, but it would be good if you could give some info on what the problem was so other people doing the same can learn.

RE: FreeRTOS with Rowley - AT91R4008

Posted by Nobody/Anonymous on April 12, 2007
I missed adding the vPortYieldProcessor() under the swi_handler with the result there was no yielding of the processor..

[ 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