Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
86fa6c123This file is pinned to the selected release. Download the original to open it in your design tool.
# Copilot Instructions (Workspace Axioms)
These are hard rules for this repository. Apply them unless a user explicitly overrides.
## Development Plan
- There are no public users of this software, only the code you see in this repo. Compatibility shims are not required.
- The priority is functional, stable and secure firmware. Everything else is secondary.
## Interop Management
- The interop surface should change as little as possible but may change if it improves the firmware's functional stability or security.
- When the interop surface changes, the change must be clearly documented and time stamped in the commit message. The commit message must also include a brief rationale for the change.
- The interop guard script must validate any changes.
## Deployment
- The developer uses the VSCode nanoFramework extension to deploy managed apps to the target device.
- This also deploys assemblies. You can see the configuration in `.vscode/launch.json` and the `preLaunchTask` setting.
- There is also a manual deployment script in `toolchain/build-CubleyControl.sh` that can be used to deploy the firmware and managed assemblies. This MAY produce a different result than the VSCode extension, so it is not recommended to mix deployment methods. Use one or the other.
## Firmware Source of Truth
- Edit firmware target files in `firmware/targets-local/CUBLEY_F407_0_5/`.
- `firmware/nf-interpreter/targets-community/ChibiOS/CUBLEY_F407_0_5/` is populated during build flow and is not the canonical edit location.
- When debugging runtime behavior, verify the built artifacts are sourced from targets-local inputs.
## Network Hardware Source of Truth
- Cubley v0.5 uses the STM32F407 internal Ethernet MAC over RMII with a LAN8742A PHY.
- W5500 was removed from the current plan and hardware design. Treat W5500 references in historical logs, stale documents, scripts, and unused KiCad library assets as legacy residue; never infer the current network architecture from them.
- Verify network work against `firmware/targets-local/CUBLEY_F407_0_5/`, `hardware/kicad-project/ethernet.kicad_sch`, and the current PCB before selecting firmware or managed networking APIs.
## Transport Separation
- `/dev/ttyUSB0` is wire protocol transport for `nanoff` and deployment operations.
- User interactive CLI commands (`show`, `get`, `set`, etc.) are validated on USB CDC console (PuTTY path), not wire protocol UART.
- USB CDC console is not accessible from this container environment. The user must issue commands and report back results.
## LNB Diagnostics Expectation
- Prefer native firmware fixes for LNBH26 issues.
- Avoid managed fallbacks as long-term behavior; they are temporary diagnostics only.
- Keep managed console output user-clean (`OK`/`Fail`) and put detailed diagnostics in debug logs.