Skip to content

Commit 00313b3

Browse files
dgarskedanielinux
authored andcommitted
Rename LPC54S018M to LPC54S0XX
1 parent eee953f commit 00313b3

11 files changed

Lines changed: 21 additions & 21 deletions

File tree

.github/workflows/test-configs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ jobs:
211211
arch: ppc
212212
config-file: ./config/examples/nxp-t2080.config
213213

214-
nxp_lpc54s018m_test:
214+
nxp_lpc54s0xx_test:
215215
uses: ./.github/workflows/test-build.yml
216216
with:
217217
arch: arm
218-
config-file: ./config/examples/nxp_lpc54s018m.config
218+
config-file: ./config/examples/nxp_lpc54s0xx.config
219219

220220
nxp_ls1028a_test:
221221
uses: ./.github/workflows/test-build.yml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ wolfboot.efi: wolfboot.elf
334334
wolfboot.bin: wolfboot.elf
335335
@echo "\t[BIN] $@"
336336
$(Q)$(OBJCOPY) $(OBJCOPY_FLAGS) -O binary $^ $@
337-
ifeq ($(TARGET),nxp_lpc54s018m)
337+
ifeq ($(TARGET),nxp_lpc54s0xx)
338338
@echo "\t[LPC] enhanced boot block"
339339
$(Q)python3 -c "import struct,os;f=open('$@','r+b');sz=os.path.getsize('$@');f.seek(0x24);f.write(struct.pack('<2I',0xEDDC94BD,0x160));f.seek(0x160);f.write(struct.pack('<25I',0xFEEDA5A5,3,0x10000000,sz-4,0,0,0,0,0,0xEDDC94BD,0,0,0,0x001640EF,0,0,0x1301001D,0,0,0,0x00000100,0,0,0x04030050,0x14110D09));f.seek(0);d=f.read(28);w=struct.unpack('<7I',d);s=sum(w)&0xFFFFFFFF;ck=(0x100000000-s)&0xFFFFFFFF;f.seek(0x1C);f.write(struct.pack('<I',ck));f.close();print('\tvector checksum: 0x%08X'%ck)"
340340
endif

arch.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ ifeq ($(TARGET),lpc)
11891189
endif
11901190
endif
11911191

1192-
ifeq ($(TARGET),nxp_lpc54s018m)
1192+
ifeq ($(TARGET),nxp_lpc54s0xx)
11931193
ARCH_FLASH_OFFSET=0x10000000
11941194
LDFLAGS+=-Wl,--no-warn-rwx-segments
11951195
# Bare-metal HAL — no NXP SDK dependencies
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# Target: NXP LPC54S018M (Cortex-M4F, 180 MHz)
44
# Boot: ROM boot loads wolfBoot from external SPIFI QSPI flash at 0x10000000
5-
# HAL: Bare-metal (hal/nxp_lpc54s018m.c) — no NXP MCUXpresso SDK required
5+
# HAL: Bare-metal (hal/nxp_lpc54s0xx.c) — no NXP MCUXpresso SDK required
66
#
77
# Flash layout (SPIFI QSPI, 16 MB total):
88
# 0x10000000 wolfBoot (up to BOOT partition base)
@@ -11,7 +11,7 @@
1111
# 0x101F0000 SWAP sector (4 KB)
1212

1313
ARCH?=ARM
14-
TARGET?=nxp_lpc54s018m
14+
TARGET?=nxp_lpc54s0xx
1515

1616
# Signature and hash algorithms
1717
SIGN?=ECC256

docs/Targets.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ variants LPC54018M / LPC54S018M). These are Cortex-M4F parts at 180 MHz with
19531953
address `0x10000000`. The boot ROM loads the image from SPIFI via an
19541954
"enhanced boot block" descriptor embedded in the vector table area.
19551955

1956-
The wolfBoot HAL (`hal/nxp_lpc54s018m.c`) is bare-metal (no NXP SDK
1956+
The wolfBoot HAL (`hal/nxp_lpc54s0xx.c`) is bare-metal (no NXP SDK
19571957
dependency) and targets this whole SPIFI-boot subseries. It has been
19581958
verified on the LPC54S018M-EVK, which uses an on-package Winbond W25Q32JV
19591959
(4MB) and provides an on-board Link2 debug probe (CMSIS-DAP / J-Link) with
@@ -2043,7 +2043,7 @@ The sector size is 4KB, matching the W25Q32JV minimum erase size.
20432043
Copy the example configuration file and build with make:
20442044

20452045
```sh
2046-
cp config/examples/nxp_lpc54s018m.config .config
2046+
cp config/examples/nxp_lpc54s0xx.config .config
20472047
make
20482048
```
20492049

@@ -2075,7 +2075,7 @@ pyocd reset -t LPC54S018J4MET180
20752075
**Note:** The LPC54S018M boot ROM requires two post-processing steps on
20762076
`wolfboot.bin` before the chip can boot from SPIFI flash. Both are applied
20772077
automatically by the top-level `Makefile` (see the `wolfboot.bin:` rule,
2078-
gated on `TARGET=nxp_lpc54s018m`), so no user action is needed — but they
2078+
gated on `TARGET=nxp_lpc54s0xx`), so no user action is needed — but they
20792079
are documented here because the patched binary will not match the ELF output
20802080
and this affects any external flashing or signing workflow.
20812081

@@ -2109,10 +2109,10 @@ either message means the binary is not bootable on this chip.
21092109

21102110
### LPC54S018M: Testing firmware update
21112111

2112-
The helper script [`tools/scripts/nxp-lpc54s018m-flash.sh`](../tools/scripts/nxp-lpc54s018m-flash.sh)
2112+
The helper script [`tools/scripts/nxp-lpc54s0xx-flash.sh`](../tools/scripts/nxp-lpc54s0xx-flash.sh)
21132113
automates the full **build → sign → flash** cycle for the LPC54S018M-EVK:
21142114

2115-
1. Copies `config/examples/nxp_lpc54s018m.config` to `.config`
2115+
1. Copies `config/examples/nxp_lpc54s0xx.config` to `.config`
21162116
2. Runs `make` to produce `factory.bin` (wolfBoot + signed v1 test-app)
21172117
3. Parses the active `.config` to resolve partition and trailer addresses
21182118
4. Erases the BOOT and UPDATE partition trailer sectors (clean boot state)
@@ -2127,13 +2127,13 @@ boards. Run with `--help` for the full option list.
21272127

21282128
```sh
21292129
# Build and flash v1 only
2130-
./tools/scripts/nxp-lpc54s018m-flash.sh
2130+
./tools/scripts/nxp-lpc54s0xx-flash.sh
21312131

21322132
# Build, sign v2, and flash both (full update test)
2133-
./tools/scripts/nxp-lpc54s018m-flash.sh --test-update
2133+
./tools/scripts/nxp-lpc54s0xx-flash.sh --test-update
21342134

21352135
# Flash existing images without rebuilding
2136-
./tools/scripts/nxp-lpc54s018m-flash.sh --test-update --skip-build
2136+
./tools/scripts/nxp-lpc54s0xx-flash.sh --test-update --skip-build
21372137
```
21382138

21392139
**Manual steps** (if not using the script):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* nxp_lpc54s018m.c
1+
/* nxp_lpc54s0xx.c
22
*
33
* Copyright (C) 2025 wolfSSL Inc.
44
*

test-app/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,8 +699,8 @@ ifeq ($(TARGET),lpc55s69)
699699
LDFLAGS+=-Wl,--no-warn-rwx-segments
700700
endif
701701

702-
ifeq ($(TARGET),nxp_lpc54s018m)
703-
LSCRIPT_TEMPLATE=ARM-nxp_lpc54s018m.ld
702+
ifeq ($(TARGET),nxp_lpc54s0xx)
703+
LSCRIPT_TEMPLATE=ARM-nxp_lpc54s0xx.ld
704704
# Enable RAMFUNCTION for test app (flash ops must run from RAM)
705705
CFLAGS+=-DRAM_CODE -D__WOLFBOOT
706706
# string.o provides RAMFUNCTION memcpy; already added when DEBUG_UART=1 (line ~108)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* app_nxp_lpc54s018m.c
1+
/* app_nxp_lpc54s0xx.c
22
*
33
* Test application for LPC54S018M-EVK
44
*

0 commit comments

Comments
 (0)