Skip to content

Add make install-firmware command #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 9, 2025
Merged

Add make install-firmware command #17

merged 5 commits into from
May 9, 2025

Conversation

hrfarmer
Copy link
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

@Copilot 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.

@@ -54,6 +54,11 @@ else
$(call rsync_to_dest,artifacts/proves,$(BOARD_MOUNT_POINT))
endif

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

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
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
2 participants