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

CVAVR FreeRTOS port

Posted by Pardini on November 25, 2009
Hi,

I am new to FreeRTOS and I am triyng to run the examples from the Practical Guide but I have some problems:

1. The port for CVAVR comes with a Demo for the ATmega128 that runs perfectly.
2. After reading the Practical Guide and the API functions, I tried to run the Example 6. To do so, I followed the tips of appendix 4 "Creating a FreeRTOS Project". So I used the Demo as a base to run example 6.
3. The compile and build of example 6 was OK but only the "continuous task 1" runs.

Any help is welcome


RE: CVAVR FreeRTOS port

Posted by Richard on November 25, 2009
I would guess that the tick interrupt was not running. Can you place a break point in the tick interrupt to see if it ever executes?

I'm not sure which compiler you are using (CVAVR?), but an easy way to check this that would work with any port is to place the break point in vTaskIncrementTick() within tick.c.

Regards.

RE: CVAVR FreeRTOS port

Posted by Pardini on November 27, 2009
The compiler is CodeVisionAVR from HP Info Tech (http://www.hpinfotech.ro/html/download.htm) . The port is for FreeRTOS V5.2.0.

Where is vTaskIncrementTick() in the files and directories structure of FreeRTOS? I do not find it nor tick.c.

The Demo runs OK, so why the tick interrupt do not work for example 6 ?

Output from example 6:

Continuous task 1 running

Continuous task 1 running

Continuous task 1 running ...

FreeRTOSConfig.h:

#ifndef FREERTOS_CONFIG_H
#define FREERTOS_CONFIG_H

#include

/* Call stack size for 1 task */
#define configCALL_STACK_SIZE 32

#define configUSE_PREEMPTION1
#define configUSE_IDLE_HOOK0
#define configUSE_TICK_HOOK0
#define configCPU_CLOCK_HZ( ( unsigned portLONG ) 7372800 )
#define configTICK_RATE_HZ( ( portTickType ) 100 ) // 1000
#define configMAX_PRIORITIES( ( unsigned portBASE_TYPE ) 4 )
#define configMINIMAL_STACK_SIZE( ( unsigned portSHORT ) 65 + configCALL_STACK_SIZE )
#define configTOTAL_HEAP_SIZE( (size_t ) ( 1500 ) )
#define configMAX_TASK_NAME_LEN( 16 )// 8
#define configUSE_TRACE_FACILITY0// ***
#define configUSE_16_BIT_TICKS1
#define configIDLE_SHOULD_YIELD1

#define configUSE_MUTEXES1
#define configUSE_COUNTING_SEMAPHORES1
#define configUSE_ALTERNATIVE_API1
#define configUSE_RECURSIVE_MUTEXES1
#define configCHECK_FOR_STACK_OVERFLOW0 /* Do not use this option on the PC port. */
#define configUSE_APPLICATION_TASK_TAG1
#define configQUEUE_REGISTRY_SIZE0

/* Co-routine definitions. */
#define configUSE_CO_ROUTINES 1// ***
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )

/* Set the following definitions to 1 to include the API function, or zero
to exclude the API function. */
#define INCLUDE_vTaskPrioritySet1 // 0
#define INCLUDE_uxTaskPriorityGet1 // 0
#define INCLUDE_vTaskDelete1
#define INCLUDE_vTaskCleanUpResources1// 0
#define INCLUDE_vTaskSuspend1// 0
#define INCLUDE_vTaskDelayUntil1
#define INCLUDE_vTaskDelay1
#define INCLUDE_uxTaskGetStackHighWaterMark 0 /* Do not use this option on the PC port. */// não tinha

#endif /* FREERTOS_CONFIG_H */


[ 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