Skip to content
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

Update spsdk to v2.0 and adapt #499

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Update spsdk to v2.0 and adapt #499

merged 1 commit into from
Feb 1, 2024

Conversation

daringer
Copy link
Collaborator

This PR updates spsdk to version >= 2.0 <2.1 - this needed some adaptations as interfaces changed

Changes

  • StatusCode import location updated to .error_codes
  • McuBoot import location updated to .mcuboot
  • use UsbDevice instead of RawHid
  • use MbootUSBInterface(device) to init McuBoot
  • CertBlockV1 corrected the naming for "root key table hashes" from rkht to rkth, applied where needed

Checklist

Make sure to run make check and make fix before creating a PR, otherwise the CI will fail.

  • tested with Python3.11
  • signed commits

Test Environment and Execution

  • OS: Arch
  • device's model: nk3an
  • device's firmware version: v1.6

Fixes #486

as a side note: spsdk still uses oscrypt <1.4 so we are still stuck with the openssl bug it introduces...

@daringer daringer merged commit 6640fba into master Feb 1, 2024
10 checks passed
@daringer daringer deleted the upd-spsdk branch February 1, 2024 00:36
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.

Update to spsdk 2.0.0
2 participants