# Kernel

**URL:** https://forums.freertos.org/c/kernel/5.md

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

---

## [Port.c missing #include \<string.h\> in ARM\_AARCH64\_SRE port](https://forums.freertos.org/t/port-c-missing-include-string-h-in-arm-aarch64-sre-port/25228)

<div class="topic-metadata">

**Author:** [@svgarcia](https://forums.freertos.org/u/svgarcia)\
**Replies:** 8\
**Last updated:** [November 17, 2026, 7:39pm UTC](https://forums.freertos.org/t/port-c-missing-include-string-h-in-arm-aarch64-sre-port/25228 "2026-11-17T19:39:47Z")

</div>

The file port.c is missing #include \<string.h\> in the ARM\_AARCH64\_SRE port when configUSE\_TASK\_FPU\_SUPPORT == 2 portable/GCC/ARM\_AARCH64\_SRE/port.c calls memset() on line 282 inside the configUSE\_TASK\_FPU\_SUPPO…

---

## [FreeRTOS v12 any updates?](https://forums.freertos.org/t/freertos-v12-any-updates/21973)

<div class="topic-metadata">

**Author:** [@rahmanih](https://forums.freertos.org/u/rahmanih)\
**Replies:** 7\
**Last updated:** [November 12, 2026, 1:05pm UTC](https://forums.freertos.org/t/freertos-v12-any-updates/21973 "2026-11-12T13:05:00Z")

</div>

Hi all, In this video, Richard Barray talked about FreeRTOS v12 that should have source code refactoring, cleanup and most likely compatiblity break. As this video is about 1 year old, I’m wondering whet…

---

## [Data in Global variable getting corrupted between tasks](https://forums.freertos.org/t/data-in-global-variable-getting-corrupted-between-tasks/25227)

<div class="topic-metadata">

**Author:** [@sushmasan](https://forums.freertos.org/u/sushmasan)\
**Replies:** 6\
**Last updated:** [November 7, 2026, 11:04pm UTC](https://forums.freertos.org/t/data-in-global-variable-getting-corrupted-between-tasks/25227 "2026-11-07T23:04:31Z")

</div>

Hello Team, I am observing an issue where data shared between two different FreeRTOS tasks through a global variable occasionally appears to get corrupted. In my application, I have a global structure, g\_systemData, of…

---

## [Kernel FreeRTOSv202311.00 on a c66x TI DSP processor, task never has CPU](https://forums.freertos.org/t/kernel-freertosv202311-00-on-a-c66x-ti-dsp-processor-task-never-has-cpu/25223)

<div class="topic-metadata">

**Author:** [@Hugo](https://forums.freertos.org/u/Hugo)\
**Replies:** 18\
**Last updated:** [November 6, 2026, 9:31am UTC](https://forums.freertos.org/t/kernel-freertosv202311-00-on-a-c66x-ti-dsp-processor-task-never-has-cpu/25223 "2026-11-06T09:31:33Z")

</div>

Hi there, I ported several years ago FreeRTOS to a c66x DSP, it is working well. However, I tried a little program an have a strange behavior for one task, always the same. In the test, I create 32 tasks that are show…

---

## [RP2350 RISC-V: Tick interrupt does not trigger a context switch on a single core](https://forums.freertos.org/t/rp2350-risc-v-tick-interrupt-does-not-trigger-a-context-switch-on-a-single-core/25215)

<div class="topic-metadata">

**Author:** [@ryancornish](https://forums.freertos.org/u/ryancornish)\
**Replies:** 5\
**Last updated:** [November 4, 2026, 3:15pm UTC](https://forums.freertos.org/t/rp2350-risc-v-tick-interrupt-does-not-trigger-a-context-switch-on-a-single-core/25215 "2026-11-04T15:15:58Z")

</div>

Hi, I’ve been testing FreeRTOS on the RP2350’s Hazard3 RISC-V cores and came across an issue with the tick interrupt handler in the RP2350 RISC-V port. It appears that the return value from xTaskIncrementTick() is over…

---

## [Dynamic analysis of RTOS based firmware](https://forums.freertos.org/t/dynamic-analysis-of-rtos-based-firmware/25195)

<div class="topic-metadata">

**Author:** [@vigneshv1](https://forums.freertos.org/u/vigneshv1)\
**Replies:** 4\
**Last updated:** [October 26, 2026, 3:19pm UTC](https://forums.freertos.org/t/dynamic-analysis-of-rtos-based-firmware/25195 "2026-10-26T15:19:18Z")

</div>

Hello guys, Is there any document available which might have general test cases for dynamic analysis of firmware in RTOS environment? Like: To find deadlock possibility, event response of any task, missing deadlines.

---

## [Task blocking in xQueueReceive but not on the xTasksWaitingToReceive list](https://forums.freertos.org/t/task-blocking-in-xqueuereceive-but-not-on-the-xtaskswaitingtoreceive-list/25209)

<div class="topic-metadata">

**Author:** [@OliM](https://forums.freertos.org/u/OliM)\
**Replies:** 3\
**Last updated:** [October 23, 2026, 2:41pm UTC](https://forums.freertos.org/t/task-blocking-in-xqueuereceive-but-not-on-the-xtaskswaitingtoreceive-list/25209 "2026-10-23T14:41:34Z")

</div>

I managed to get one of my tasks hanging in the following situation: Neither the scheduler ends the wait after xTicksToWait, nor the queue activated because of the waiting message. So somehow the OS has completely mi…

---

## [Vitis Unified 2025.2 - How to enable traceTASK\_SWITCHED\_IN & traceTASK\_SWITCHED\_OUT](https://forums.freertos.org/t/vitis-unified-2025-2-how-to-enable-tracetask-switched-in-tracetask-switched-out/25194)

<div class="topic-metadata">

**Author:** [@digitalone](https://forums.freertos.org/u/digitalone)\
**Replies:** 6\
**Last updated:** [October 19, 2026, 7:17pm UTC](https://forums.freertos.org/t/vitis-unified-2025-2-how-to-enable-tracetask-switched-in-tracetask-switched-out/25194 "2026-10-19T19:17:40Z")

</div>

Does anyone have experience with setting your own function hooks for traceTASK\_SWITCHED\_IN and traceTASK\_SWITCHED\_OUT in AMD Vitis Unified 2025.2? My application is a ZynqMP app running on A53-0 and is standalone with F…

---

## [Proposal: optional preemption-threshold scheduling](https://forums.freertos.org/t/proposal-optional-preemption-threshold-scheduling/25188)

<div class="topic-metadata">

**Author:** [@vansvan17](https://forums.freertos.org/u/vansvan17)\
**Replies:** 9\
**Last updated:** [October 18, 2026, 4:56pm UTC](https://forums.freertos.org/t/proposal-optional-preemption-threshold-scheduling/25188 "2026-10-18T16:56:38Z")

</div>

I would like feedback on adding optional preemption-threshold scheduling to the FreeRTOS kernel. Motivation FreeRTOS currently supports preemptive and cooperative scheduling. A preemption threshold provides an intermedi…

---

## [FreeRTOS  kernel code problem](https://forums.freertos.org/t/freertos-kernel-code-problem/3240)

<div class="topic-metadata">

**Author:** [@system](https://forums.freertos.org/u/system)\
**Replies:** 8\
**Last updated:** [October 16, 2026, 1:29pm UTC](https://forums.freertos.org/t/freertos-kernel-code-problem/3240 "2026-10-16T13:29:42Z")

</div>

zhudinum1 wrote on Monday, November 18, 2013: why use variable xPendingReadyList in the source code ? it can insert ready task into readylist directly without causing any safe problems. very appreciate for your answerin…

---

## [About portSET\_INTERRUPT\_MASK\_FROM\_ISR()](https://forums.freertos.org/t/about-portset-interrupt-mask-from-isr/25192)

<div class="topic-metadata">

**Author:** [@suntianyun](https://forums.freertos.org/u/suntianyun)\
**Replies:** 5\
**Last updated:** [October 15, 2026, 1:19pm UTC](https://forums.freertos.org/t/about-portset-interrupt-mask-from-isr/25192 "2026-10-15T13:19:37Z")

</div>

Hello everyone, I’m currently learning FreeRTOS on ARM Cortex-M3 and came across the macro portSET\_INTERRUPT\_MASK\_FROM\_ISR(), which is the ISR version of the API for entering a critical section. The task-level critical-…

---

## [Lazy‑stacking enabled: S0‑S15 context risk in xPortPendSVHandler()](https://forums.freertos.org/t/lazy-stacking-enabled-s0-s15-context-risk-in-xportpendsvhandler/25193)

<div class="topic-metadata">

**Author:** [@suntianyun](https://forums.freertos.org/u/suntianyun)\
**Replies:** 3\
**Last updated:** [October 15, 2026, 8:46am UTC](https://forums.freertos.org/t/lazy-stacking-enabled-s0-s15-context-risk-in-xportpendsvhandler/25193 "2026-10-15T08:46:26Z")

</div>

Hello everyone, When the lazy‑stacking feature (LSPEN=1) is enabled, I notice that the xPortPendSVHandler() context‑switch handler contains no explicit handling for the S0‑S15 floating‑point registers. Here is my quest…

---

## [Emulating FreeRTOS on Android](https://forums.freertos.org/t/emulating-freertos-on-android/25190)

<div class="topic-metadata">

**Author:** [@byron.hawkins](https://forums.freertos.org/u/byron.hawkins)\
**Replies:** 3\
**Last updated:** [October 14, 2026, 12:18pm UTC](https://forums.freertos.org/t/emulating-freertos-on-android/25190 "2026-10-14T12:18:59Z")

</div>

It would be nice to test my FreeRTOS app on a device with an ARM processor, instead of emulating ARM on an Intel platform. For general command-line programs on ARM, emulation can easily be avoided by running them in Term…

---

## [Tips to Reduce processor load](https://forums.freertos.org/t/tips-to-reduce-processor-load/25104)

<div class="topic-metadata">

**Author:** [@vigneshv1](https://forums.freertos.org/u/vigneshv1)\
**Replies:** 20\
**Last updated:** [October 13, 2026, 5:36pm UTC](https://forums.freertos.org/t/tips-to-reduce-processor-load/25104 "2026-10-13T17:36:54Z")

</div>

Hello guys, I have to reduce the processor load, in a way like unwanted code should not run unnecessarily. So that I am making my system partially event based, and I am giving priority to each event so that every part …

---

## [Reviewer routing for RISC-V timer-path PR #1482](https://forums.freertos.org/t/reviewer-routing-for-risc-v-timer-path-pr-1482/25182)

<div class="topic-metadata">

**Author:** [@zms](https://forums.freertos.org/u/zms)\
**Replies:** 1\
**Last updated:** [October 7, 2026, 2:52pm UTC](https://forums.freertos.org/t/reviewer-routing-for-risc-v-timer-path-pr-1482/25182 "2026-10-07T14:52:12Z")

</div>

Hi, I submitted a focused optimization for the generic GCC RISC-V machine-timer path: Issue: \[Feature Request\] Defer RISC-V callee-saved register handling on no-switch timer interrupts · Issue #1464 · FreeRTOS/FreeRTOS…

---

## [AArch64 single-core FreeRTOS mutex and ARM exclusive instructions](https://forums.freertos.org/t/aarch64-single-core-freertos-mutex-and-arm-exclusive-instructions/25172)

<div class="topic-metadata">

**Author:** [@H\_a\_r\_i\_n\_i](https://forums.freertos.org/u/H_a_r_i_n_i)\
**Replies:** 1\
**Last updated:** [October 4, 2026, 2:10pm UTC](https://forums.freertos.org/t/aarch64-single-core-freertos-mutex-and-arm-exclusive-instructions/25172 "2026-10-04T14:10:49Z")

</div>

Hi, I am working with a single-core FreeRTOS application on an ARM Cortex-A55 using AArch64. I traced xSemaphoreTake() → xQueueSemaphoreTake() and inspected the generated AArch64 assembly. The mutex acquisition is per…

---

## [FreeRTOS hangs - iMX8 CM7 RPMSG](https://forums.freertos.org/t/freertos-hangs-imx8-cm7-rpmsg/23801)

<div class="topic-metadata">

**Author:** [@jbaum](https://forums.freertos.org/u/jbaum)\
**Replies:** 129\
**Last updated:** [October 1, 2026, 1:27am UTC](https://forums.freertos.org/t/freertos-hangs-imx8-cm7-rpmsg/23801 "2026-10-01T01:27:58Z")

</div>

Hi! We have been troubleshooting a problem for weeks now and could use some clues how the behavior we are seeing could be happening. We suspect the issue comes from bad usage of FreeRTOS, not from an actual bug in Free…

---

## [portENTER\_CRITICAL() and portEXIT\_CRITICAL() implementation case](https://forums.freertos.org/t/portenter-critical-and-portexit-critical-implementation-case/25161)

<div class="topic-metadata">

**Author:** [@EugeneK](https://forums.freertos.org/u/EugeneK)\
**Replies:** 19\
**Last updated:** [September 30, 2026, 3:02am UTC](https://forums.freertos.org/t/portenter-critical-and-portexit-critical-implementation-case/25161 "2026-09-30T03:02:36Z")

</div>

Hello, I have a silicon vendor FreeRTOS port that does this #define portENTER\_CRITICAL() vTaskEnterCritical() #define portEXIT\_CRITICAL() vTaskExitCritical() which does not seem to be correct port implementation to m…

---

## [SMP: are two vTaskSuspendAll()/xTaskResumeAll() regions on different cores mutually exclusive?](https://forums.freertos.org/t/smp-are-two-vtasksuspendall-xtaskresumeall-regions-on-different-cores-mutually-exclusive/25162)

<div class="topic-metadata">

**Author:** [@parmi](https://forums.freertos.org/u/parmi)\
**Replies:** 1\
**Last updated:** [September 26, 2026, 5:06pm UTC](https://forums.freertos.org/t/smp-are-two-vtasksuspendall-xtaskresumeall-regions-on-different-cores-mutually-exclusive/25162 "2026-09-26T17:06:31Z")

</div>

Hi, On the SMP kernel, two regions bracketed by vTaskSuspendAll() / xTaskResumeAll() and running on different cores already exclude each other. In tasks.c (V11.1.0+) the configNUMBER\_OF\_CORES \> 1 branch of vTaskSuspendA…

---

## [Cortex-M MPU ports delay high priority ISRs](https://forums.freertos.org/t/cortex-m-mpu-ports-delay-high-priority-isrs/25115)

<div class="topic-metadata">

**Author:** [@dbrunner4](https://forums.freertos.org/u/dbrunner4)\
**Replies:** 3\
**Last updated:** [September 25, 2026, 8:21pm UTC](https://forums.freertos.org/t/cortex-m-mpu-ports-delay-high-priority-isrs/25115 "2026-09-25T20:21:16Z")

</div>

The documentation says that interrupts above configMAX\_SYSCALL\_INTERRUPT\_PRIORITY are not delayed by the kernel. (Among other places, in the FreeRTOS customization page’s configKERNEL\_INTERRUPT\_PRIORITY section: “Interru…

---

## [Why requiring to include FreeRTOS.h but not including it?](https://forums.freertos.org/t/why-requiring-to-include-freertos-h-but-not-including-it/25164)

<div class="topic-metadata">

**Author:** [@jona](https://forums.freertos.org/u/jona)\
**Replies:** 1\
**Last updated:** [September 25, 2026, 3:25pm UTC](https://forums.freertos.org/t/why-requiring-to-include-freertos-h-but-not-including-it/25164 "2026-09-25T15:25:25Z")

</div>

In task.h (L35), we can find: \`\`\`C #ifndef INC\_FREERTOS\_H #error “include FreeRTOS.h must appear in source files before include task.h” #endif \`\`\` Why not just including it ? Thank you, Jona

---

## [Semaphore may block](https://forums.freertos.org/t/semaphore-may-block/24773)

<div class="topic-metadata">

**Author:** [@svenb](https://forums.freertos.org/u/svenb)\
**Replies:** 29\
**Last updated:** [September 22, 2026, 3:09pm UTC](https://forums.freertos.org/t/semaphore-may-block/24773 "2026-09-22T15:09:47Z")

</div>

I’ve studied Your Semaphore in the documentation. You have implemented a counter to provide simultanous reads. Two reading threads may block a thread trying to write. To make it safe, You need to prevent reading as soon …

---

## [Documentation. Add FreeRTOS porting notes](https://forums.freertos.org/t/documentation-add-freertos-porting-notes/25140)

<div class="topic-metadata">

**Author:** [@Nikolay-Po](https://forums.freertos.org/u/Nikolay-Po)\
**Replies:** 5\
**Last updated:** [September 10, 2026, 7:43pm UTC](https://forums.freertos.org/t/documentation-add-freertos-porting-notes/25140 "2026-09-10T19:43:39Z")

</div>

@aggarg In a replay of Race in xTaskGenericNotifyWait() when cache enabled - #32 by aggarg Have tried to add a page here (not finished yet) add a page for porting notes. Take a look, please. When ready, I will submit …

---

## [Cortex-Rx MPU - Reprogramming Active MPU Region Potentially Creates Abort](https://forums.freertos.org/t/cortex-rx-mpu-reprogramming-active-mpu-region-potentially-creates-abort/25141)

<div class="topic-metadata">

**Author:** [@Brandon](https://forums.freertos.org/u/Brandon)\
**Replies:** 4\
**Last updated:** [September 6, 2026, 8:31am UTC](https://forums.freertos.org/t/cortex-rx-mpu-reprogramming-active-mpu-region-potentially-creates-abort/25141 "2026-09-06T08:31:36Z")

</div>

Hello, I’m looking at the “Cortex-Rx” MPU port (for a Cortex-R5F target), specifically where we program the MPU regions in portASM.S around portable/GCC/ARM\_CRx\_MPU/portASM.S#L118 MOV R5, #portFIRST\_CONFIGURABL…

---

## [ANyone thought of an EL2 layer of FreeRTOS for Zynq US+ as a static partitioner for EL1 FreeRTOS applications on A53s?](https://forums.freertos.org/t/anyone-thought-of-an-el2-layer-of-freertos-for-zynq-us-as-a-static-partitioner-for-el1-freertos-applications-on-a53s/25131)

<div class="topic-metadata">

**Author:** [@EM1SSNuke](https://forums.freertos.org/u/EM1SSNuke)\
**Replies:** 1\
**Last updated:** [September 2, 2026, 9:05pm UTC](https://forums.freertos.org/t/anyone-thought-of-an-el2-layer-of-freertos-for-zynq-us-as-a-static-partitioner-for-el1-freertos-applications-on-a53s/25131 "2026-09-02T21:05:13Z")

</div>

I’m interested in working on a FreeRTOS at EL2 for static partitioning for the 4 A53s, such that each A53 can run an AMP FreeRTOS setup at EL1. Initially hard coded, maybe, to support interrupts, peripherals and DMA fo…

---

## [Race in xTaskGenericNotifyWait() when cache enabled](https://forums.freertos.org/t/race-in-xtaskgenericnotifywait-when-cache-enabled/24983)

<div class="topic-metadata">

**Author:** [@posner](https://forums.freertos.org/u/posner)\
**Replies:** 31\
**Last updated:** [September 1, 2026, 11:36am UTC](https://forums.freertos.org/t/race-in-xtaskgenericnotifywait-when-cache-enabled/24983 "2026-09-01T11:36:28Z")

</div>

Hi everyone, I am debugging an issue on my costum Cortex-R5 FreeRTOS port. I’m currently using FreeRTOS Kernel V11.1.0. I traced my wait API call OS\_WaitForNotificationIndexed() down to xTaskNotifyWaitIndexed, which ma…

---

## [FreeRTOS MPU v10.3.1 with STM32H7 Core](https://forums.freertos.org/t/freertos-mpu-v10-3-1-with-stm32h7-core/25122)

<div class="topic-metadata">

**Author:** [@tanvi2931](https://forums.freertos.org/u/tanvi2931)\
**Replies:** 10\
**Last updated:** [September 1, 2026, 6:09am UTC](https://forums.freertos.org/t/freertos-mpu-v10-3-1-with-stm32h7-core/25122 "2026-09-01T06:09:06Z")

</div>

Has anyone ported the FreeRTOS v10.3.1 with MPU Support with M7? I am facing multiple problems in doing so eg. LDREX instruction throwing a HardFault, Cache issues in context switching (task heap corruption), 16 MPU port…

---

## [What is best approach to delete static task safely?](https://forums.freertos.org/t/what-is-best-approach-to-delete-static-task-safely/25138)

<div class="topic-metadata">

**Author:** [@Nikolay-Po](https://forums.freertos.org/u/Nikolay-Po)\
**Replies:** 2\
**Last updated:** [August 30, 2026, 3:06pm UTC](https://forums.freertos.org/t/what-is-best-approach-to-delete-static-task-safely/25138 "2026-08-30T15:06:16Z")

</div>

I’m developing FLASH memory driver under current LTS FreeRTOS version. For some types of hardware failures I’d prefer to re-initialise the whole driver including the task deletion. As far as I know from FreeRTOS documen…

---

## [User-defined misaligned MPU regions can override kernel-defined regions on ARM\_CM3\_MPU](https://forums.freertos.org/t/user-defined-misaligned-mpu-regions-can-override-kernel-defined-regions-on-arm-cm3-mpu/25130)

<div class="topic-metadata">

**Author:** [@CocoDico78](https://forums.freertos.org/u/CocoDico78)\
**Replies:** 3\
**Last updated:** [August 24, 2026, 10:44am UTC](https://forums.freertos.org/t/user-defined-misaligned-mpu-regions-can-override-kernel-defined-regions-on-arm-cm3-mpu/25130 "2026-08-24T10:44:57Z")

</div>

While the docs are extensively mentioning that all regions should be aligned to power of two for correct MPU configuration, it is not explicit enough that not aligning (or not sanitizing) a user-defined region or a stack…

---

## [Can the \`configUSE\_NEWLIB\_REENTRANT\` be applicable to FreeRTOS?](https://forums.freertos.org/t/can-the-configuse-newlib-reentrant-be-applicable-to-freertos/24777)

<div class="topic-metadata">

**Author:** [@Saiiijchan](https://forums.freertos.org/u/Saiiijchan)\
**Replies:** 17\
**Last updated:** [August 13, 2026, 6:17am UTC](https://forums.freertos.org/t/can-the-configuse-newlib-reentrant-be-applicable-to-freertos/24777 "2026-08-13T06:17:45Z")

</div>

Not very familiar with the newlib reentrant feature, I’d like to ask whether it can be used on an SMP system. Thanks

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