Quality RTOS & Embedded Software

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


Loading

vTaskSwitchContext() usage of listGET_...

Posted by Robert Warner on October 22, 2008
vPreemptiveTick() calls vTaskSwitchContext() usage of listGET_OWNER_OF_NEXT_ENTRY() causes __dabt(). Unfortunately there is no task at this point to execute.


This appears to be a race condition of letting the tick counter generate ticks while tasks are just getting initialized. I assume the tick generation should not occur until after the tasks have been initialized and prior to vTaskStartScheduler(). Now locating where the tick generation has been initiated.

RE: vTaskSwitchContext() usage of listGET_...

Posted by Dave on October 22, 2008
You have not mentioned which port you are using. If using Cortex M3 then this can happen if you attempt to block from within a critical section. It can also happen on any port if you have your interrupt priorities wrong, that is you are using API calls from an interrupt priority about the maximum allowable system call interrupt priority.

RE: vTaskSwitchContext() usage of listGET_...

Posted by Robert Warner on October 22, 2008
This is part of the same problem as https://sourceforge.net/forum/forum.php?thread_id=2412378&forum_id=382005.


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner