Quality RTOS & Embedded Software

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




Loading

configOVERRIDE_DEFAULT_TICK_CONFIGURATION

Posted by lt6210925 on September 29, 2016

who know how to use the configOVERRIDEDEFAULTTICKCONFIGURATION
when i write "#define configOVERRIDEDEFAULTTICKCONFIGURATION 1"
the project will report the error

Undefined symbol vPortSetupTimerInterrupt (referred from port.o).

I thought this will be a bug about freertos i use the stm32f103zet6 board.

if anyone thought this will be used. show me the code about the correct method .~~~!


configOVERRIDE_DEFAULT_TICK_CONFIGURATION

Posted by rtel on September 29, 2016

who know how to use the configOVERRIDEDEFAULTTICK_CONFIGURATION

Me!

when i write "#define configOVERRIDEDEFAULTTICK_CONFIGURATION 1" the project will report the error

Undefined symbol vPortSetupTimerInterrupt (referred from port.o).

The FreeRTOS Cortex-M ports generate their tick interrupt from the SysTick clock. However, sometimes that is not convenient for application writers because they need the SysTick for other purposes. Therefore in all the Cortex-M ports you can prevent the RTOS from using the SysTick by replacing the function that sets up the SysTick with a function that sets up which ever clock you want to generate the tick interrupt. To do that you have to provide a function call vPortSetupTimerInterrupt() to actually set up the clock, and install the FreeRTOS tick interrupt handler as the interrupt service routine for whichever clock you chose. All the ports, other than the Keil port, define vPortSetupTimerInterrupt() as a weak symbol, so all you need to do is provide a function with that name. For historic reasons the Keil port also needs you to define configOVERRIDEDEFAULTTICK_CONFIGURATION.

I thought this will be a bug about freertos

Why?


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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