Quality RTOS & Embedded Software

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


FreeRTOS and Kinetis KL46 (KDS)

Posted by williamjsell on June 25, 2015

Well despite all my best efforts, I am now convinced that the port of FreeRTOS with ProcessorExpert is not correct. I could go into the gruesome details of what I am seeing, but I would rather just poll the community and ask if anyone has had better success with using FreeRTOS with KDS? I have tons of experience with FreeRTOS and I know the kernel is fine, it is widely deployed. I also think I know what I am doing with implementing a FreeRTOS-base program. But when a task variable is getting corrupted by merely the action of passing it via a queue, and I have the task stack depth to 2K with hardly any deep calls, something ain't right. The tasks I have do not do anything, but receive this message and pass it along. I am actually at a lost to the cause, but all ideas welcome....

FreeRTOS and Kinetis KL46 (KDS)

Posted by rtel on June 25, 2015

Erich, who knows most about the processor expert, is at the Freescale Technology Forum this week, so I'm going to have to start with some more basic questions:

Which version of FreeRTOS is it using (the comments at the top of each FreeRTOS source file will tell you that)?

Does the FreeRTOSConfig.h file you are using have configASSERT() defined?

The reason for asking these questions first is the number of configurations errors configASSERT() will catch depends on the FreeRTOS version.


FreeRTOS and Kinetis KL46 (KDS)

Posted by williamjsell on June 25, 2015

Sorry I have been very frustrated with this dev env. that I forgot my normal details: FreeRTOS Version : 8.0.1 configAssert has been defined heap size set to 16384 total number of task allowed : 8 total defined 3 with configMINIMALSTACKSIZE at 128 total queues defined 2 with depth of about 5 small elements memory allocation scheme is heap_1.c running KDS 3.0.0 on Win7 using tickless idle mode as we are sleeping the processor until it is woken up with an accelerometer generated interrupt. there are a few FreeRTOS timers in use and one mutex.

FreeRTOS and Kinetis KL46 (KDS)

Posted by xz8987f on June 25, 2015

Hi William, I see that you have posted the same question to the Freescale Forum. I will follow-up there, as I believe you might not have set the interrupt priorities correctly or there might be an undetected stack overflow.


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

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

Latest News

Version 10.1.0 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.


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


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