[Feature Request] <Support CmBacktrace to avoid repeated code modifications能否原生支持 CmBacktrace?减少重复修改代码的麻烦>
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- c
- Ambito
- embedded-iot
Direzione di ricerca
The request mentions task.c and freertos.h, and proposes exposing task stack size and task information for CmBacktrace. Start by reading those files and the task creation and inspection APIs to understand how task details are represented. Done would mean an agreed interface that provides the needed task details without repeated manual edits; the issue does not specify that interface or its scope.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Dear FreeRTOS Team,
First of all, I'd like to express my sincere gratitude for your selfless contributions. FreeRTOS has made multi-tasking development on MCUs incredibly convenient, and I've been using it extensively—it’s always performed stably and reliably.
Recently, I encountered occasional HardFault issues while working on a complex project. To quickly identify the root cause, I integrated the CmBacktrace debugging component. However, I ran into a small problem: for CmBacktrace to trace faults in a FreeRTOS environment, it needs access to task-specific information like stack address, stack size, and task name. This requires manual modifications to FreeRTOS’s task.c and freertos.h (e.g., adding a stack size member to the TCB, implementing simple APIs to retrieve task info).
The hassle is that every time I regenerate code with CubeMX, these manual changes get overwritten, forcing me to reapply them repeatedly. It’s become quite tedious over time—my wrist is practically begging for mercy (haha).
So I’m writing to propose: Could you consider adding these basic variables (e.g., task stack size) and simple interfaces directly into the FreeRTOS source code? This would enable native support for debugging tools like CmBacktrace, lowering the debugging barrier for developers and enhancing FreeRTOS’s ecosystem compatibility.
Thank you again for all your hard work. Looking forward to your thoughts!
各位 FreeRTOS 项目组的大佬好!
首先由衷感谢大家的无私贡献,让我们能在 MCU 上便捷地开发多任务项目。我一直深度使用 FreeRTOS,它的稳定性和易用性都非常出色。
近期我在开发一个复杂项目时,偶尔会遇到 HardFault 问题。为了快速定位故障根源,我引入了 CmBacktrace 调试组件,但遇到了一个小麻烦:CmBacktrace 在 FreeRTOS 环境下追踪故障时,需要获取任务的栈地址、栈大小和任务名等信息,这就要求我手动修改 FreeRTOS 的 task.c 和 freertos.h(比如在 TCB 中新增栈大小成员、添加获取任务信息的接口函数)。
问题在于,我使用 CubeMX 频繁重新生成代码时,这些手动修改会被覆盖,每次都要重新调整 —— 长期下来重复操作繁琐,手腕都快扛不住了(笑)。
所以想向各位大佬提议:能否在 FreeRTOS 源码中直接添加这些基础变量(如任务栈大小)和简单接口,以原生支持 CmBacktrace 这类调试工具的集成?这样既能降低开发者的调试门槛,也能让 FreeRTOS 的生态兼容性更完善。
再次感谢大家的付出,期待各位的回复!
- Lingua principale
- C
- Stelle
- 8k
- Fork
- 2.1k
- Merge medio
- 18g 1h
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di FreeRTOS/FreeRTOS
-
[BUG] task-stats sample overflow its output buffer as the application task set growsForse già presa @20000419 l’ha presa 69 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
-
enhancement feature request help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
-
[BUG] SMP Testing Issue on AARCH64: Individual Tests Pass but Combined Tests FailForse di nuovo libera @chinglee-iot l’ha presa 491 giorni fa e non c’è nessuna pull request aperta. Apertabug
-
FreeRTOS & Sparc V8Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Tutte le issue di FreeRTOS/FreeRTOS
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 63/100
FreeRTOS/FreeRTOS-Plus-TCP#1395 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
qoretechnologies/qore#8222 ·
I maintainer di solito rispondono entro 1 giorno
-
c easy first-contributor first-contributors good first issue help wanted up-for-grabs
Difficoltà 1/5 1-3 ore Idoneità per principianti 96/100
fork-commit-merge/fork-commit-merge#8696 ·
I maintainer di solito rispondono entro 1 giorno