Skip to content

Add make install-firmware command#17

Merged
hrfarmer merged 5 commits intomainfrom
download-firmware
May 9, 2025
Merged

Add make install-firmware command#17
hrfarmer merged 5 commits intomainfrom
download-firmware

Conversation

@hrfarmer
Copy link
Copy Markdown
Member

@hrfarmer hrfarmer commented May 8, 2025

Closes proveskit/pysquared#241

Summary

This adds the make install-firmware command to the Makefile, which pulls the install_firmware script from https://github.com/proveskit/install-firmware. Tested that it works on macOS & Windows, but Linux still needs to be tested

How was this tested

  • Added new unit tests
  • Ran code on hardware (screenshots are helpful)
  • Other (Please describe)
Screen.Recording.2025-05-08.at.16.04.19-1.mov

@hrfarmer hrfarmer requested a review from Mikefly123 May 8, 2025 21:07
@Mikefly123 Mikefly123 requested a review from Copilot May 8, 2025 22:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Makefile target, install-firmware, to allow users to install board firmware from a remote source. In addition, it fixes a minor typo in the sync-time target's description.

  • Corrected the description for sync-time.
  • Added a new install-firmware target and command.


# install-firmware
.PHONY: install-firmware
install-firmware: uv ## Install the board firmware onto a connected PROVES Kit
Copy link

Copilot AI May 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider documenting the significance of the 'v4' argument to enhance maintainability by clarifying its purpose.

Suggested change
install-firmware: uv ## Install the board firmware onto a connected PROVES Kit
install-firmware: uv ## Install the board firmware onto a connected PROVES Kit
# The 'v4' argument specifies the firmware version to be installed. Update this if a new version is required.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

@Mikefly123 Mikefly123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks for the hard work.

I ran this on a Mac installing to a V4b board and it seemed to work like a charm!

@hrfarmer hrfarmer merged commit 7424f50 into main May 9, 2025
3 checks passed
@hrfarmer hrfarmer deleted the download-firmware branch May 9, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] make install firmware

3 participants