EPIC 1: Platform Foundation & System Infrastructure
Zephyr RTOS foundation with hardware support and safety systems
Overview
This EPIC establishes the foundational Zephyr RTOS platform with primary hardware support, safety systems, power management, and development infrastructure for the OpenAstroFirmware project.
Epic Components
1.1 Zephyr RTOS Platform Setup
🔴 priority:critical
Requirements: REQ-SYS-002, REQ-SYS-003, REQ-HW-001, REQ-HW-002
Acceptance Criteria:
1.2 Hardware Abstraction & Extensibility
🟠 priority:high
Requirements: REQ-HW-004, REQ-HW-EXT-001, REQ-HW-EXT-002, REQ-HW-EXT-003, REQ-HW-EXT-004
Acceptance Criteria:
1.3 Safety & Emergency Systems
🔴 priority:critical
Requirements: REQ-SAF-001, REQ-SAF-002, REQ-SAF-003, REQ-SAF-004, REQ-SAF-005
Acceptance Criteria:
1.4 Power Management & System Monitoring
🔴 priority:critical
Requirements: REQ-PWR-001, REQ-PWR-002, REQ-MON-001, REQ-REL-001 through REQ-REL-007
Acceptance Criteria:
1.5 Development & Testing Infrastructure
🟠 priority:high
Requirements: REQ-DEV-001, REQ-DEV-002, REQ-DEV-003, REQ-DEV-004, REQ-TEST-001, REQ-TEST-002, REQ-TEST-003
Acceptance Criteria:
Implementation Context
Current State
- Zephyr RTOS v4.1.0 is currently configured (needs upgrade to v4.2.0)
- MKS Robin Nano board support exists in
boards/mks/robin_nano/
- Basic west build system and CMake integration functional
- Zephyr logging infrastructure established with
LOG_MODULE_REGISTER pattern
Architecture Requirements
- Dual-app architecture:
app/ (main firmware) + lib/ (reusable components)
- C++20 for application layer, C for low-level implementations
- Zephyr module structure for reusability (
zephyr/module.yml)
Build & Test Infrastructure
west build -b robin_nano # Standard build
west build -b robin_nano -- -DEXTRA_CONF_FILE=debug.conf # Debug build
west twister -T . -p robin_nano # Run all tests
Success Metrics
Dependencies
None - This is the foundation EPIC that enables all other EPICs
Next Steps
Upon completion of this EPIC, the following EPICs can begin:
- EPIC 2: LX200 Protocol Implementation (after 1.1)
- EPIC 3: Stepper Motor Control System (after 1.1)
- EPIC 5: Configuration & Persistence Systems (after 1.1)
EPIC 1: Platform Foundation & System Infrastructure
Zephyr RTOS foundation with hardware support and safety systems
Overview
This EPIC establishes the foundational Zephyr RTOS platform with primary hardware support, safety systems, power management, and development infrastructure for the OpenAstroFirmware project.
Epic Components
1.1 Zephyr RTOS Platform Setup
🔴 priority:critical
Requirements: REQ-SYS-002, REQ-SYS-003, REQ-HW-001, REQ-HW-002
Acceptance Criteria:
1.2 Hardware Abstraction & Extensibility
🟠 priority:high
Requirements: REQ-HW-004, REQ-HW-EXT-001, REQ-HW-EXT-002, REQ-HW-EXT-003, REQ-HW-EXT-004
Acceptance Criteria:
1.3 Safety & Emergency Systems
🔴 priority:critical
Requirements: REQ-SAF-001, REQ-SAF-002, REQ-SAF-003, REQ-SAF-004, REQ-SAF-005
Acceptance Criteria:
1.4 Power Management & System Monitoring
🔴 priority:critical
Requirements: REQ-PWR-001, REQ-PWR-002, REQ-MON-001, REQ-REL-001 through REQ-REL-007
Acceptance Criteria:
1.5 Development & Testing Infrastructure
🟠 priority:high
Requirements: REQ-DEV-001, REQ-DEV-002, REQ-DEV-003, REQ-DEV-004, REQ-TEST-001, REQ-TEST-002, REQ-TEST-003
Acceptance Criteria:
Implementation Context
Current State
boards/mks/robin_nano/LOG_MODULE_REGISTERpatternArchitecture Requirements
app/(main firmware) +lib/(reusable components)zephyr/module.yml)Build & Test Infrastructure
Success Metrics
Dependencies
None - This is the foundation EPIC that enables all other EPICs
Next Steps
Upon completion of this EPIC, the following EPICs can begin: