platformio / platformio/platformio-core

Allow to enable the OpenOCD -rtos flag from platformio.

Open
#4,649 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

config debugging feature
Dominant language
Python
Stars
9.5k
Forks
905
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Description of problem

Per the discussion in the thread below , in order to enable paltformio debugger's thread awareness, the flag -rtos auto or -rtos FreeRTOS, need to be patched manually in a file that is managed by platformio.

https://community.platformio.org/t/how-to-make-the-stm32-debugger-aware-of-freertos-tasks/34073/2?u=zapta

Please provide a way to inject this flag from platformio.ini, or from small configuration file or script in the project area.

This flag is discussed in this OpenOCD's documentation https://www.openocd.org/doc-release/pdf/openocd.pdf

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked community discussion and OpenOCD documentation to understand the -rtos options and expected behavior. Then trace how debugger settings from platformio.ini are handled, and verify that a project-level configuration or script can enable -rtos auto or -rtos FreeRTOS without manually patching PlatformIO-managed files.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, embedded-iot, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.