wolfBoot/config/examples/nxp_lpc54s0xx.config

54 lines
1.4 KiB
Plaintext

# 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, 4 MB total — Winbond W25Q32JV):
# 0x10000000 wolfBoot (up to BOOT partition base)
# 0x10010000 BOOT partition (960 KB, signed application)
# 0x10100000 UPDATE partition (960 KB)
# 0x101F0000 SWAP sector (4 KB)
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