micro-ROS / micro-ROS/micro_ros_setup

rclc_support_init is corrupting FreeRTOS Heap

未關閉
#657 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Shell
星號
509
分支
183
平均合併
22 小時 26 分鐘
30 天內合併 PR
7

描述

Issue template

  • Hardware description: STM32L4
  • RTOS: FreeRTOS
  • Installation type: standard
  • Version or commit hash: humble
Steps to reproduce the issue

I created a FreeRTOS heap with 16kByte and a 'Standard Task' with 12000 Bytes. Additionally I created 2 binary Semaphores.

Expected behavior

Semaphores stay as they are, completely independent of the micro ROS function cals

Actual behavior

in the function call rclc_support_init it seems that the FreeRTOS Heap gets corrupted and the semaphores get affected. Maybe other FreeRTOS elements as well
beforeCorruption

Additional information

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,在 STM32L4 上使用 FreeRTOS,透過 16 kB 堆積、一个 12,000 位元組的 Standard Task 和兩個二進位 semaphore 來重現問題。比較 rclc_support_init 前後的 semaphore 狀態;完成的標準是識別並防止堆積損壞,同時不影響 semaphore。

由索引模型根據 Issue 內容生成。

評估

領域
embedded-iot, operating-systems
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。