# Kernel

**URL:** https://forums.freertos.org/c/kernel/5.md?page=2

[Latest](https://forums.freertos.org/latest.md) · [Categories](https://forums.freertos.org/categories.md) · [Tags](https://forums.freertos.org/tags.md)

**Page:** 3

---

## [When and why should we create multiple tasks instead of single task in RTOS?](https://forums.freertos.org/t/when-and-why-should-we-create-multiple-tasks-instead-of-single-task-in-rtos/25038)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 11\
**Last updated:** [June 11, 2026, 9:32pm UTC](https://forums.freertos.org/t/when-and-why-should-we-create-multiple-tasks-instead-of-single-task-in-rtos/25038 "2026-06-11T21:32:40Z")

</div>

I am not able to understand when we should create more than one task. Currently, I write code in a bare-metal style where there is a single loop, and I continuously perform all operations in sequence inside that loop. Wh…

---

## [Doxygen errors galor](https://forums.freertos.org/t/doxygen-errors-galor/25035)

<div class="topic-metadata">

**Author:** [@dnadler](https://forums.freertos.org/u/dnadler)\
**Replies:** 2\
**Last updated:** [June 5, 2026, 8:13pm UTC](https://forums.freertos.org/t/doxygen-errors-galor/25035 "2026-06-05T20:13:17Z")

</div>

I’m trying to build FreeRTOS documentation with Doxygen version 1.17.0. Lots of errors are generated about missing groups (examples below), and much of the documentation in the header files is not output by doxygen. So: …

---

## [Round Robin Scheduling Behavior](https://forums.freertos.org/t/round-robin-scheduling-behavior/25017)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 25\
**Last updated:** [June 5, 2026, 6:48pm UTC](https://forums.freertos.org/t/round-robin-scheduling-behavior/25017 "2026-06-05T18:48:21Z")

</div>

What I think is that when three tasks A (4 ms), B (2 ms), and C (5 ms) have the same priority in FreeRTOS, the scheduler allows Task A to run for one time slice 1ms and then switches to Task B, so Task A pauses. Then Tas…

---

## [TI C674x DSP C6000 FreeRTOS porting](https://forums.freertos.org/t/ti-c674x-dsp-c6000-freertos-porting/24965)

<div class="topic-metadata">

**Author:** [@SunnyUbergeek](https://forums.freertos.org/u/SunnyUbergeek)\
**Replies:** 6\
**Last updated:** [June 5, 2026, 5:51am UTC](https://forums.freertos.org/t/ti-c674x-dsp-c6000-freertos-porting/24965 "2026-06-05T05:51:58Z")

</div>

Hello, We are looking into porting freeRTOS to the TI (Texas Instruments) C674x DSP C6000 (DSP on the OMAP-137). Does anyone have any information about a freeRTOS port that has been ported to this DSP? On the TI forum …

---

## [Cmake build error for cmake\_example in FreeRTOSv202604.00-LTS](https://forums.freertos.org/t/cmake-build-error-for-cmake-example-in-freertosv202604-00-lts/25029)

<div class="topic-metadata">

**Author:** [@Akshay](https://forums.freertos.org/u/Akshay)\
**Replies:** 7\
**Last updated:** [June 4, 2026, 11:45pm UTC](https://forums.freertos.org/t/cmake-build-error-for-cmake-example-in-freertosv202604-00-lts/25029 "2026-06-04T23:45:08Z")

</div>

I have downloaded and extracted FreeRTOSv202604.00-LTS and FreeRTOSv202406.05-LTS from freertosORG. In both versions, I tried to build cmake\_example (\\FreeRTOS-LTS\\FreeRTOS\\FreeRTOS-Kernel\\examples\\cmake\_example\\) using…

---

## [Does a task enter the Blocked state only when it calls vTaskDelay()?](https://forums.freertos.org/t/does-a-task-enter-the-blocked-state-only-when-it-calls-vtaskdelay/25019)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 3\
**Last updated:** [June 2, 2026, 2:22am UTC](https://forums.freertos.org/t/does-a-task-enter-the-blocked-state-only-when-it-calls-vtaskdelay/25019 "2026-06-02T02:22:46Z")

</div>

Hi, What I understand is that a task does not enter the Blocked state only when ‘vTaskDelay()’ is called. Instead, a task goes into the Blocked state whenever it is waiting for something, such as a delay, mutex, semapho…

---

## [Main Config: ... have some not configured or wrong parameter values\[FREERTOS\]](https://forums.freertos.org/t/main-config-have-some-not-configured-or-wrong-parameter-values-freertos/25008)

<div class="topic-metadata">

**Author:** [@Krischu](https://forums.freertos.org/u/Krischu)\
**Replies:** 10\
**Last updated:** [May 29, 2026, 7:01am UTC](https://forums.freertos.org/t/main-config-have-some-not-configured-or-wrong-parameter-values-freertos/25008 "2026-05-29T07:01:02Z")

</div>

I was running a project in STM32CubeIDE with 4 Tasks and it ran fine. Now I wanted to add a fifth task and after adding it and the oly thing I had changed was the Name (Task05 instead of myTask05) I got an alert box when…

---

## [Memory Usage Monitoring](https://forums.freertos.org/t/memory-usage-monitoring/25001)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 3\
**Last updated:** [May 26, 2026, 9:39am UTC](https://forums.freertos.org/t/memory-usage-monitoring/25001 "2026-05-26T09:39:53Z")

</div>

Hi, In FreeRTOS, when working on large projects, how can we keep track of memory usage (stack and heap). How can we monitor how much memory is used or how much is still available? Are there any built-in ways to detect …

---

## [Never enters a task](https://forums.freertos.org/t/never-enters-a-task/25009)

<div class="topic-metadata">

**Author:** [@Krischu](https://forums.freertos.org/u/Krischu)\
**Replies:** 4\
**Last updated:** [May 26, 2026, 9:37am UTC](https://forums.freertos.org/t/never-enters-a-task/25009 "2026-05-26T09:37:31Z")

</div>

To a running system (STM32F103) 4 tasks, FreeRTOS 10.3.1, CMSIS-Rtos v. 2.00,CMSISv2, I added a fifth task. When the system is running I can set a breakpoint in any of the 4 tasks (osPriorityNormal) and the BP is hit imm…

---

## [Putting tasks to waiting lists from interrupt handlers - experiments using syscalls instead of FreeRTOS task API functions in order to access queues](https://forums.freertos.org/t/putting-tasks-to-waiting-lists-from-interrupt-handlers-experiments-using-syscalls-instead-of-freertos-task-api-functions-in-order-to-access-queues/25003)

<div class="topic-metadata">

**Author:** [@apal](https://forums.freertos.org/u/apal)\
**Replies:** 17\
**Last updated:** [May 23, 2026, 9:23am UTC](https://forums.freertos.org/t/putting-tasks-to-waiting-lists-from-interrupt-handlers-experiments-using-syscalls-instead-of-freertos-task-api-functions-in-order-to-access-queues/25003 "2026-05-23T09:23:12Z")

</div>

I’m planning to make some experiments using the RISC-V port of FreeRTOS where instead of employing xQueueReceive() or xQueueSend() from a task, these functionalities are implemented as system calls, using the instruction…

---

## [Race condition when using -O0 with GCC on Cortex-M4 (PendSV context corruption)](https://forums.freertos.org/t/race-condition-when-using-o0-with-gcc-on-cortex-m4-pendsv-context-corruption/24999)

<div class="topic-metadata">

**Author:** [@nikolay-rogovoy](https://forums.freertos.org/u/nikolay-rogovoy)\
**Replies:** 1\
**Last updated:** [May 18, 2026, 6:26am UTC](https://forums.freertos.org/t/race-condition-when-using-o0-with-gcc-on-cortex-m4-pendsv-context-corruption/24999 "2026-05-18T06:26:31Z")

</div>

Target: Nucleo F411RE (Cortex-M4) Toolchain: arm-none-eabi-gcc (multiple versions) FreeRTOS: v26.4 (also reproduces on v24.4) Optimization flags: works with -Og / -Os / -O1 / -O2, fails with -O0 Problem summary I ha…

---

## [Do I need to provide static memory allocators?](https://forums.freertos.org/t/do-i-need-to-provide-static-memory-allocators/19522)

<div class="topic-metadata">

**Author:** [@Rocketmagnet](https://forums.freertos.org/u/Rocketmagnet)\
**Replies:** 4\
**Last updated:** [May 13, 2026, 11:46pm UTC](https://forums.freertos.org/t/do-i-need-to-provide-static-memory-allocators/19522 "2026-05-13T23:46:11Z")

</div>

I’m a bit confused if I should provide vApplicationGetIdleTaskMemory() etc. According to FreeRTOS - The Free RTOS configuration constants and configuration options - FREE Open Source RTOS for small real time embedded sy…

---

## [SMP Idle thread affinity](https://forums.freertos.org/t/smp-idle-thread-affinity/24988)

<div class="topic-metadata">

**Author:** [@rus084](https://forums.freertos.org/u/rus084)\
**Replies:** 5\
**Last updated:** [May 12, 2026, 10:06am UTC](https://forums.freertos.org/t/smp-idle-thread-affinity/24988 "2026-05-12T10:06:48Z")

</div>

currently in FreeRTOS idle threads created without affinity that means it not possible to get idle percentage of specific core in SMP system via vTaskGetRunTimeStatistics. all IDLE threads will have almost same % time a…

---

## [what is difference between xqueuesend and xqueuesendtobackfromisr](https://forums.freertos.org/t/what-is-difference-between-xqueuesend-and-xqueuesendtobackfromisr/3136)

<div class="topic-metadata">

**Author:** [@system](https://forums.freertos.org/u/system)\
**Replies:** 3\
**Last updated:** [May 11, 2026, 1:58pm UTC](https://forums.freertos.org/t/what-is-difference-between-xqueuesend-and-xqueuesendtobackfromisr/3136 "2026-05-11T13:58:09Z")

</div>

ephobb wrote on Sunday, January 24, 2016: Hello, i want to know the difference between xqueuesend and xqueuesendtobackfromisr. I know we use api xqueuesend from normal flow and we use api xqueuesendtobackfromisr, when…

---

## [Can One Task Give a Semaphore Taken by Another?](https://forums.freertos.org/t/can-one-task-give-a-semaphore-taken-by-another/24977)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 14\
**Last updated:** [May 11, 2026, 5:08am UTC](https://forums.freertos.org/t/can-one-task-give-a-semaphore-taken-by-another/24977 "2026-05-11T05:08:01Z")

</div>

I understand binary semaphores in RTOS in below. A task takes a semaphore, uses a shared resource, and then gives the semaphore back. If another task tries to take the semaphore while it’s already taken, it gets blocke…

---

## [Confusion about vPortTickISR %10 logic in XTmrCtr FreeRTOS port.c](https://forums.freertos.org/t/confusion-about-vporttickisr-10-logic-in-xtmrctr-freertos-port-c/24991)

<div class="topic-metadata">

**Author:** [@fyilmaz](https://forums.freertos.org/u/fyilmaz)\
**Replies:** 2\
**Last updated:** [May 9, 2026, 9:04am UTC](https://forums.freertos.org/t/confusion-about-vporttickisr-10-logic-in-xtmrctr-freertos-port-c/24991 "2026-05-09T09:04:49Z")

</div>

Hi, I am using the Xilinx MicroBlaze FreeRTOS port with AXI Timer (XTmrCtr) and I have a question regarding the vPortTickISR() implementation when configGENERATE\_RUN\_TIME\_STATS is enabled. In the current implementation…

---

## [TI C66x DSP FreeRTOS Port](https://forums.freertos.org/t/ti-c66x-dsp-freertos-port/24967)

<div class="topic-metadata">

**Author:** [@SunnyUbergeek](https://forums.freertos.org/u/SunnyUbergeek)\
**Replies:** 1\
**Last updated:** [May 7, 2026, 11:06am UTC](https://forums.freertos.org/t/ti-c66x-dsp-freertos-port/24967 "2026-05-07T11:06:59Z")

</div>

Hello, I saw that another member on this forum posted about porting FreeRTOS to a TI DSP, C66x part a few years back. Does anyone know if that was successful, and stable? Or was there a limitation on the TI DSP to using…

---

## [How do i compile Freertos-plus-cli for GCC/ARM\_AARCH64](https://forums.freertos.org/t/how-do-i-compile-freertos-plus-cli-for-gcc-arm-aarch64/24969)

<div class="topic-metadata">

**Author:** [@iurjscsi1101500](https://forums.freertos.org/u/iurjscsi1101500)\
**Replies:** 1\
**Last updated:** [May 7, 2026, 11:05am UTC](https://forums.freertos.org/t/how-do-i-compile-freertos-plus-cli-for-gcc-arm-aarch64/24969 "2026-05-07T11:05:13Z")

</div>

as the title suggests, i want to compile freertos-plus-cli for GCC/ARM\_AARCH64 to use with gem5 emulator, i am a newbie in freertos so any help is appreciated, also my os is macOS

---

## [FreeRTOS and CyberSecurity](https://forums.freertos.org/t/freertos-and-cybersecurity/24985)

<div class="topic-metadata">

**Author:** [@Ganesh](https://forums.freertos.org/u/Ganesh)\
**Replies:** 1\
**Last updated:** [May 7, 2026, 10:19am UTC](https://forums.freertos.org/t/freertos-and-cybersecurity/24985 "2026-05-07T10:19:13Z")

</div>

My project considers running FreeRTOS on Intel FPGAs’ NIOS soft-core processor. What are the features that come with FreeRTOS in addressing security? Has anyone used FreeRTOS in the medical device space? I would like to …

---

## [xSTATIC\_QUEUE incompatibility](https://forums.freertos.org/t/xstatic-queue-incompatibility/24981)

<div class="topic-metadata">

**Author:** [@sri-subramanian-koll](https://forums.freertos.org/u/sri-subramanian-koll)\
**Replies:** 2\
**Last updated:** [May 7, 2026, 10:17am UTC](https://forums.freertos.org/t/xstatic-queue-incompatibility/24981 "2026-05-07T10:17:59Z")

</div>

Hi, I know the types in FreeRTOS.h are meant to be used at our peril, but since they’re there, it would be nice if they’re consistent with the kernel definitions. Specifically, xSTATIC\_QUEUE is mostly right, except for: …

---

## [Porting FreeRTOS to TI c66x DSP](https://forums.freertos.org/t/porting-freertos-to-ti-c66x-dsp/12203)

<div class="topic-metadata">

**Author:** [@Hugo](https://forums.freertos.org/u/Hugo)\
**Replies:** 2\
**Last updated:** [May 3, 2026, 9:42pm UTC](https://forums.freertos.org/t/porting-freertos-to-ti-c66x-dsp/12203 "2026-05-03T21:42:32Z")

</div>

Hi, I’m new to FreeRTOS and use FreeRTOSv202012.00. I ported this version to the TI c66x DSP and I’m facing a problem. The context switching is working fine and I’m using a non preemptive kernel so the tasks are yieldi…

---

## [Windows Port simulation speed](https://forums.freertos.org/t/windows-port-simulation-speed/24963)

<div class="topic-metadata">

**Author:** [@fz-gabriel](https://forums.freertos.org/u/fz-gabriel)\
**Replies:** 2\
**Last updated:** [May 1, 2026, 10:01am UTC](https://forums.freertos.org/t/windows-port-simulation-speed/24963 "2026-05-01T10:01:57Z")

</div>

Hi ! I’m experimenting with the windows MSVC\_MINGW port. After some doing some measurements, I’m realizing that my scheduler ticks are twice as slow as expected, i.e. 1ms is actually 2ms. Here’s an example where a sin…

---

## [Confusion About Task Preemption](https://forums.freertos.org/t/confusion-about-task-preemption/24964)

<div class="topic-metadata">

**Author:** [@tech](https://forums.freertos.org/u/tech)\
**Replies:** 6\
**Last updated:** [April 30, 2026, 6:18am UTC](https://forums.freertos.org/t/confusion-about-task-preemption/24964 "2026-04-30T06:18:26Z")

</div>

I am trying to understand task scheduling behavior in FreeRTOS. Here is my current understanding please correct me if anything is wrong. Assume three tasks: Low‑priority task (L) Medium‑priority task (M) High‑…

---

## [Schedule for next kernel LTS release 2026](https://forums.freertos.org/t/schedule-for-next-kernel-lts-release-2026/24937)

<div class="topic-metadata">

**Author:** [@levuphuong](https://forums.freertos.org/u/levuphuong)\
**Replies:** 2\
**Last updated:** [April 29, 2026, 9:47pm UTC](https://forums.freertos.org/t/schedule-for-next-kernel-lts-release-2026/24937 "2026-04-29T21:47:10Z")

</div>

Hi FreeRTOS team, Current LTS kernel version is 11.1.0 will be expired on June 30, 2026 Do you have the schedule for next LTS release? Best regards

---

## [xQueueGenericSend and xQueueReceive](https://forums.freertos.org/t/xqueuegenericsend-and-xqueuereceive/24856)

<div class="topic-metadata">

**Author:** [@suntianyun](https://forums.freertos.org/u/suntianyun)\
**Replies:** 21\
**Last updated:** [April 28, 2026, 6:40am UTC](https://forums.freertos.org/t/xqueuegenericsend-and-xqueuereceive/24856 "2026-04-28T06:40:17Z")

</div>

Hi there,I met a question about the function xQueueGenericSend() and xQueueReceive().I notice that when the time is out,xQueueGenericSend() return “errQUEUE\_FULL“ directly.But xQueueReceive() is different, it judged t…

---

## [LTS release 2026 - Final Kernel Version 11.3.0?](https://forums.freertos.org/t/lts-release-2026-final-kernel-version-11-3-0/24951)

<div class="topic-metadata">

**Author:** [@Peter-Gilson](https://forums.freertos.org/u/Peter-Gilson)\
**Replies:** 1\
**Last updated:** [April 14, 2026, 5:32pm UTC](https://forums.freertos.org/t/lts-release-2026-final-kernel-version-11-3-0/24951 "2026-04-14T17:32:55Z")

</div>

Hi, The Kernel code version 11.3.0 was recently released, but i’m not clear on whether this will be the version released as part of the upcoming LTS 2026 release. Will this 11.3.0. kernel be the version initially relea…

---

## [Need stronger protection? Integer overflow in xStreamBufferSend() for message buffers — v10.6.2 is configASSERT-only protection](https://forums.freertos.org/t/need-stronger-protection-integer-overflow-in-xstreambuffersend-for-message-buffers-v10-6-2-is-configassert-only-protection/24944)

<div class="topic-metadata">

**Author:** [@fuzzrt26](https://forums.freertos.org/u/fuzzrt26)\
**Replies:** 1\
**Last updated:** [April 11, 2026, 4:21pm UTC](https://forums.freertos.org/t/need-stronger-protection-integer-overflow-in-xstreambuffersend-for-message-buffers-v10-6-2-is-configassert-only-protection/24944 "2026-04-11T16:21:30Z")

</div>

Description In stream\_buffer.c, the function xStreamBufferSend() (also invoked via the xMessageBufferSend() macro) adds sbBYTES\_TO\_STORE\_MESSAGE\_LENGTH to xRequiredSpace without a runtime overflow check. The only protect…

---

## [Integer overflow in xStreamBufferSendFromISR() for message buffers — no overflow check - V10.6.2](https://forums.freertos.org/t/integer-overflow-in-xstreambuffersendfromisr-for-message-buffers-no-overflow-check-v10-6-2/24946)

<div class="topic-metadata">

**Author:** [@fuzzrt26](https://forums.freertos.org/u/fuzzrt26)\
**Replies:** 1\
**Last updated:** [April 11, 2026, 4:15pm UTC](https://forums.freertos.org/t/integer-overflow-in-xstreambuffersendfromisr-for-message-buffers-no-overflow-check-v10-6-2/24946 "2026-04-11T16:15:27Z")

</div>

Description In stream\_buffer.c, the function xStreamBufferSendFromISR() (also invoked via xMessageBufferSendFromISR()) adds sbBYTES\_TO\_STORE\_MESSAGE\_LENGTH to xRequiredSpace with no overflow check , also no configASSERT. …

---

## [After transplanting the latest FreeRTOS on the STM32G0B1 and using the From\_ISR() series of functions, the system will crash](https://forums.freertos.org/t/after-transplanting-the-latest-freertos-on-the-stm32g0b1-and-using-the-from-isr-series-of-functions-the-system-will-crash/24927)

<div class="topic-metadata">

**Author:** [@dddddxp](https://forums.freertos.org/u/dddddxp)\
**Replies:** 46\
**Last updated:** [April 9, 2026, 6:18am UTC](https://forums.freertos.org/t/after-transplanting-the-latest-freertos-on-the-stm32g0b1-and-using-the-from-isr-series-of-functions-the-system-will-crash/24927 "2026-04-09T06:18:28Z")

</div>

The MCU model I am using is STM32G0B1 (with M0+ core). I generated the Hal library code using CubeMX, and then plan to port the latest FreeRTOS. The following problem occurred: Currently, if no external interrupt is use…

---

## [Why not clear xYieldPending to 0 at the beginning of xTaskResumeAll?](https://forums.freertos.org/t/why-not-clear-xyieldpending-to-0-at-the-beginning-of-xtaskresumeall/24933)

<div class="topic-metadata">

**Author:** [@watchdog](https://forums.freertos.org/u/watchdog)\
**Replies:** 3\
**Last updated:** [April 9, 2026, 6:14am UTC](https://forums.freertos.org/t/why-not-clear-xyieldpending-to-0-at-the-beginning-of-xtaskresumeall/24933 "2026-04-09T06:14:43Z")

</div>

When xTaskResumeAll is called, it check pending list and pending ticks. Why is the xYieldPendings not cleared before checking. I encounter one scenario like below. The context switch in xTaskResumeAll seems redundant. So…

[Previous page](https://forums.freertos.org/c/kernel/5.md?page=1)

[Next page](https://forums.freertos.org/c/kernel/5.md?page=3)
