Skip to content

tooling: Add firmware build, deploy and run targets to Makefile. #245

@nedseb

Description

@nedseb

Description

Add Makefile targets to automate the firmware build, deploy, and script execution workflow.

Architecture

The firmware source (micropython-steami) is cloned into .build/ (gitignored). A symbolic link replaces the submodule lib/micropython-steami-lib with the local working directory, so the firmware always includes the latest driver changes — even uncommitted ones.

Targets

Target Description
make firmware Clone (if absent), pull latest, symlink local drivers, build
make deploy Flash firmware via OpenOCD
make run SCRIPT=... Run a script with live output via mpremote run
make deploy-script SCRIPT=... Copy script as main.py for autonomous execution
make run-main Re-execute the deployed main.py
make firmware-clean Clean build artifacts

Requirements

  • arm-none-eabi-gcc toolchain
  • OpenOCD for flashing
  • mpremote for running scripts on the board

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions