-
Notifications
You must be signed in to change notification settings - Fork 156
MAX32666 port #804
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
Open
mattia-moffa
wants to merge
16
commits into
wolfSSL:master
Choose a base branch
from
mattia-moffa:20260323-max32666
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
MAX32666 port #804
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8ba8cda
Support for MAX32666
dgarske 3bc8f0d
Fix UART; support FTHR2 board
mattia-moffa 83d5525
Implementation of test-app crypto test
mattia-moffa e178c52
SHA256 acceleration for bootloader
mattia-moffa 17b79b6
Use bank-relative offsets instead of addresses in FLC registers
mattia-moffa 33d9e9a
Support older Maxim SDK ("LPSDK")
mattia-moffa 1bc31ad
Clean up build flag usage, use trng healthtest in test-app
mattia-moffa 16f3947
Don't define WOLFSSL_HAVE_SP_ECC under SP_MATH_ALL (fixes CI)
mattia-moffa eedab94
Restore to previous bump allocator
mattia-moffa 6387189
Fix issues found by Copilot
mattia-moffa 091aa1a
Fixes for old Maxim SDK
mattia-moffa 5029b0d
Add MAX32666 CI
mattia-moffa 7646ec3
Add failure diagnostics example on MAX32666
mattia-moffa 0040e6b
Update wolfssl submodule
mattia-moffa 8dc9512
Fix warnings for test-app crypto test
mattia-moffa c7c6efa
Remove NAND info from Targets.md
mattia-moffa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Wolfboot Reusable Build Workflow for Analog Devices MSDK | ||
|
|
||
| on: | ||
|
|
||
| workflow_call: | ||
| inputs: | ||
| arch: | ||
| required: true | ||
| type: string | ||
| config-file: | ||
| required: true | ||
| type: string | ||
| make-args: | ||
| required: false | ||
| type: string | ||
|
|
||
| jobs: | ||
|
|
||
| build: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ghcr.io/wolfssl/wolfboot-ci-arm:v1.3 | ||
| timeout-minutes: 30 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - uses: actions/checkout@main | ||
| with: | ||
| repository: analogdevicesinc/msdk | ||
| path: msdk | ||
|
|
||
| - name: Trust workspace | ||
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
|
|
||
| - name: make distclean | ||
| run: | | ||
| make distclean | ||
|
|
||
| - name: Select config | ||
| run: | | ||
| cp ${{inputs.config-file}} .config | ||
|
|
||
| - name: Build tools | ||
| run: | | ||
| make -C tools/keytools && make -C tools/bin-assemble | ||
|
|
||
| - name: Build wolfboot | ||
| run: | | ||
| make MSDK_DIR="$GITHUB_WORKSPACE/msdk" ${{inputs.make-args}} V=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| ARCH?=ARM | ||
| TARGET?=max32666 | ||
| SIGN?=ECC256 | ||
| HASH?=SHA256 | ||
| VTOR?=1 | ||
| NO_ASM?=0 | ||
| SPMATH?=1 | ||
| RAM_CODE?=1 | ||
| NVM_FLASH_WRITEONCE?=1 | ||
| NO_MPU?=1 | ||
| DEBUG_UART?=1 | ||
| MAX32666_FTHR2?=0 | ||
| MAX3266X_TPU?=0 | ||
| MAX3266X_OLD?=0 | ||
| MSDK_DIR?=$(PWD)/../msdk | ||
| WOLFBOOT_SECTOR_SIZE?=0x2000 | ||
|
|
||
| WOLFBOOT_PARTITION_SIZE?=0x40000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x10008000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x10048000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x10088000 | ||
|
|
||
| # Alternative configuration for debugging | ||
| #WOLFBOOT_PARTITION_SIZE?=0x40000 | ||
| #WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x10010000 | ||
| #WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x10050000 | ||
| #WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x10090000 | ||
|
|
||
| # Persistent failure diagnostics (set to 1 to enable). | ||
| # The region occupies WOLFBOOT_DIAGNOSTICS_SECTORS flash sectors of 0x2000 each. | ||
| WOLFBOOT_PERSIST_FAILURE_STATUS?=0 | ||
| WOLFBOOT_DIAGNOSTICS_SECTORS?=2 | ||
|
|
||
| # Normal configuration | ||
| WOLFBOOT_DIAGNOSTICS_ADDRESS?=0x1008A000 | ||
|
|
||
| # Debug configuration | ||
| #WOLFBOOT_DIAGNOSTICS_ADDRESS?=0x10092000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change does not seem related to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes an issue that arose after updating the wolfssl submodule which caused PPC builds to fail (e.g. nxp-t1024). wolfSSL's
sha512.cnow declaresextern void Transform_Sha512_LenwhenWOLFSSL_PPC32_ASMis defined, so the implementation fromppc32-sha512-asm_c.cis needed.