-
Notifications
You must be signed in to change notification settings - Fork 147
Add wolfBoot support for NXP LPC54S018M-EVK #752
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
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8a71881
Add wolfBoot support for NXP LPC54S018M-EVK
dgarske ecd4e77
Fix NXP LPC54S018M SPIFI flash operations and complete boot+update cycle
aidangarske fdb8163
Clean up NXP LPC54S018M port and align with LPC55S69 patterns
aidangarske 4ac6e9a
Fixes for clocks and testing updates.
dgarske 177ab14
Expand documentation for the enhaced boot block
dgarske e2edbe9
Add tests and improve docs
dgarske 821ca80
Rename LPC54S018M to LPC54S0XX
dgarske 8751994
Peer review fixes
dgarske 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
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
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,53 @@ | ||
| # wolfBoot configuration for NXP LPCXpresso54S018M-EVK | ||
| # | ||
| # Target: NXP LPC54S018M (Cortex-M4F, 180 MHz) | ||
| # Boot: ROM boot loads wolfBoot from external SPIFI QSPI flash at 0x10000000 | ||
| # HAL: Bare-metal (hal/nxp_lpc54s0xx.c) — no NXP MCUXpresso SDK required | ||
| # | ||
| # Flash layout (SPIFI QSPI, 16 MB total): | ||
| # 0x10000000 wolfBoot (up to BOOT partition base) | ||
| # 0x10010000 BOOT partition (960 KB, signed application) | ||
| # 0x10100000 UPDATE partition (960 KB) | ||
| # 0x101F0000 SWAP sector (4 KB) | ||
|
dgarske marked this conversation as resolved.
Outdated
|
||
|
|
||
| ARCH?=ARM | ||
| TARGET?=nxp_lpc54s0xx | ||
|
|
||
| # Signature and hash algorithms | ||
| SIGN?=ECC256 | ||
| HASH?=SHA256 | ||
|
|
||
| DEBUG?=0 | ||
| DEBUG_UART?=1 | ||
|
|
||
| # Vector table relocation is required — ROM boot leaves VTOR at 0 | ||
| VTOR?=1 | ||
|
|
||
| NO_ASM?=0 | ||
|
|
||
| # Single-flash layout (all partitions in internal SPIFI region) | ||
| EXT_FLASH?=0 | ||
| SPI_FLASH?=0 | ||
|
|
||
| ALLOW_DOWNGRADE?=0 | ||
| NVM_FLASH_WRITEONCE?=0 | ||
| WOLFBOOT_VERSION?=0 | ||
| V?=0 | ||
|
|
||
| # Single-precision math (reduced footprint, no ASM) | ||
| SPMATH?=1 | ||
|
|
||
| # RAM_CODE required: flash erase/program routines must execute from SRAM | ||
| # because SPIFI cannot service instruction fetches while being written | ||
| RAM_CODE?=1 | ||
|
|
||
| DUALBANK_SWAP?=0 | ||
|
|
||
| # Enable NXP LPC PKA peripheral for ECC acceleration | ||
| PKA?=1 | ||
|
|
||
| WOLFBOOT_PARTITION_SIZE?=0xF0000 | ||
| WOLFBOOT_SECTOR_SIZE?=0x1000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x10010000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x10100000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x101F0000 | ||
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.
Uh oh!
There was an error while loading. Please reload this page.