feat(rp2040): wire up RP2040/RP2350 build orchestrator#13
Conversation
Replace the stub orchestrator that returned "Rp2040Cores package not wired up" with a real implementation following the STM32 pattern: ARM GCC toolchain + arduino-pico cores + generic ArmCompiler/ArmLinker. Simplify mcu_config.rs to reuse ArmMcuConfig instead of the redundant Rp2040McuConfig type.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe changes consolidate RP2040 MCU configuration onto a shared Changes
Sequence Diagram(s)sequenceDiagram
participant Orchestrator as RP2040<br/>Orchestrator
participant Toolchain as ARM GCC<br/>Toolchain
participant Cores as RP2040<br/>Cores Package
participant Config as MCU Config<br/>(ArmMcuConfig)
participant Compiler as ArmCompiler
participant Linker as ArmLinker
participant Pipeline as Build<br/>Pipeline
Orchestrator->>Orchestrator: Create BuildContext
Orchestrator->>Toolchain: Ensure installed
Toolchain-->>Orchestrator: Tool paths & versions
Orchestrator->>Cores: Ensure installed
Cores-->>Orchestrator: Core sources available
Orchestrator->>Orchestrator: Scan source files<br/>(sketch + framework)
Orchestrator->>Config: Fetch MCU config<br/>(now ArmMcuConfig)
Config-->>Orchestrator: Arch, compiler flags,<br/>linker script
Orchestrator->>Orchestrator: Build include path list<br/>(project + framework +<br/>toolchain + SDK)
Orchestrator->>Compiler: Instantiate with config
Orchestrator->>Linker: Instantiate with<br/>linker script & memory
Orchestrator->>Pipeline: Execute compilation<br/>& linking
Pipeline->>Compiler: Compile sources
Pipeline->>Linker: Link objects
Pipeline-->>Orchestrator: Build artifacts
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ArmMcuConfiginstead of the redundantRp2040McuConfigtypeTest plan
-D warnings)Summary by CodeRabbit
New Features
Refactor