DocsRTOS Support
RTOS Support
Neural Inverse provides RTOS-aware debugging for FreeRTOS, Zephyr, and Embassy (Rust async).
Detection
> fw_rtos_detectScans the project for RTOS indicators:
- FreeRTOS:
FreeRTOS.h,FreeRTOSConfig.h,xTaskCreatecalls - Zephyr:
prj.conf,K_THREAD_DEFINE, Kconfig symbols - Embassy:
embassy-executorin Cargo.toml
Thread Inspection
> fw_rtos_threadsLists all running threads/tasks with:
- Task name
- State (running, ready, blocked, suspended, deleted)
- Priority
- Stack usage (used / total)
- Program counter
- Block reason (mutex, semaphore, queue, delay)
State Snapshot
> fw_rtos_snapshotCaptures complete RTOS state:
- All threads with their states
- Mutex ownership
- Semaphore counts
- Queue fill levels
- Timer states
- Heap fragmentation
Heap Analysis
> fw_rtos_heapShows heap usage:
- Total heap size
- Current allocation
- Largest free block
- Fragmentation percentage
- Per-task allocation (if tracked)
- High watermark
Deadlock Detection
When threads are blocked on mutexes, the RTOS debug service can detect circular dependency chains (deadlocks) by analyzing mutex ownership vs. wait lists.
Symbol Sync
> fw_rtos_syncSynchronizes RTOS symbol tables (TCB offsets, list structures) with the debug session. Required after firmware rebuild if RTOS internals changed.
Agent Tools
| Tool | Description |
|---|---|
fw_rtos_detect | Detect RTOS in project |
fw_rtos_snapshot | Full RTOS state capture |
fw_rtos_sync | Sync RTOS symbols |
fw_rtos_threads | List running threads |
fw_rtos_heap | Heap usage analysis |
Was this page helpful?
Last edited